mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-03 20:48:44 +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);
|
const suggestions = new LanguageService().transSuggestions([], language);
|
||||||
if (newEditor) {
|
if (newEditor) {
|
||||||
editorMap.set(newEditor, editor);
|
editorMap.set(newEditor, editor);
|
||||||
|
editorValueMap.set(activeKey.value, '');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
editorMap.set(activeKey.value, editor);
|
editorMap.set(activeKey.value, editor);
|
||||||
}
|
}
|
||||||
editorValueMap.set(activeKey.value, '');
|
|
||||||
this.editorCompletionProvider = monaco.languages.registerCompletionItemProvider("sql", {
|
this.editorCompletionProvider = monaco.languages.registerCompletionItemProvider("sql", {
|
||||||
provideCompletionItems(): any
|
provideCompletionItems(): any
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user