Wiring lsp config editor to update lspManagerService.lspConfigDataStr; removed redundant check; update lsp config

This commit is contained in:
2025-07-19 02:13:52 -05:00
parent 79adb86d25
commit 90c8c9b3ee
3 changed files with 13 additions and 6 deletions

View File

@@ -55,6 +55,11 @@ export class LspManagerComponent {
this.lspTextEditor = this.lspEditorComponent.editor;
this.innerEditor = this.sessionEditorComponent.editor;
this.lspTextEditor.on("input", () => {
this.lspManagerService.lspConfigDataStr =
this.lspTextEditor.session.getValue();
});
this.lspManagerService.loadLspConfigData().then((lspConfigData) => {
this.lspTextEditor.session.setMode("ace/mode/json");
this.lspTextEditor.session.setValue(lspConfigData);