WIP lsp-manager effort 4
This commit is contained in:
@@ -2,6 +2,10 @@ import { Component } from "@angular/core";
|
||||
|
||||
// Import Ace and its modes/themes so that `ace` global is defined
|
||||
import * as ace from "ace-builds/src-min-noconflict/ace";
|
||||
|
||||
// Note: https://github.com/mkslanc/ace-linters/blob/c286d85c558530aa1b0597d02108bc782abd4736/packages/demo/file-api-websockets/client.ts#L27
|
||||
// import { AceLayout, Box, TabManager, Button, dom, AceTreeWrapper, FileSystemWeb, Pane, AceEditor, Tab } from "ace-layout";
|
||||
|
||||
import "ace-builds/src-min-noconflict/ext-settings_menu";
|
||||
import "ace-builds/src-min-noconflict/ext-keybinding_menu";
|
||||
import "ace-builds/src-min-noconflict/ext-command_bar";
|
||||
|
@@ -103,6 +103,7 @@ export class LspManagerComponent {
|
||||
this.editor.session,
|
||||
this.activeFile.path
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +125,7 @@ export class LspManagerComponent {
|
||||
|
||||
// Note: hack for issue with setActiveEditor TODO
|
||||
setTimeout(() => {
|
||||
this.innerEditor.setSession(this.editor.session);
|
||||
this.innerEditor.setSession(this.editor.getSession());
|
||||
}, 10);
|
||||
}
|
||||
|
||||
@@ -145,6 +146,7 @@ export class LspManagerComponent {
|
||||
this.editor.session,
|
||||
this.activeFile.path
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
private closeFile(message: ServiceMessage) {
|
||||
|
Reference in New Issue
Block a user