mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-03 04:27:56 +08:00
fix: Switching data source Default editor content is reset (close #134)
This commit is contained in:
parent
5480ec50e1
commit
5ad9a1a47c
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user