fix: Switching data source Default editor content is reset (close #134)

This commit is contained in:
qianmoQ 2022-11-11 00:13:07 +08:00
parent 5480ec50e1
commit 5ad9a1a47c

View File

@ -204,11 +204,11 @@ export default defineComponent({
const suggestions = new LanguageService().transSuggestions([], language);
if (newEditor) {
editorMap.set(newEditor, editor);
editorValueMap.set(activeKey.value, '');
}
else {
editorMap.set(activeKey.value, editor);
}
editorValueMap.set(activeKey.value, '');
this.editorCompletionProvider = monaco.languages.registerCompletionItemProvider("sql", {
provideCompletionItems(): any
{