diff --git a/public/lsp-servers-config.json b/public/lsp-servers-config.json index d92b98c..6f1506b 100644 --- a/public/lsp-servers-config.json +++ b/public/lsp-servers-config.json @@ -199,8 +199,8 @@ "enabled": true }, "rope_completion": { - "enabled": true, - "eager": true + "enabled": false, + "eager": false }, "jedi_rename": { "enabled": true diff --git a/src/app/common/configs/editor.config.ts b/src/app/common/configs/editor.config.ts index 42722aa..6e91015 100644 --- a/src/app/common/configs/editor.config.ts +++ b/src/app/common/configs/editor.config.ts @@ -8,6 +8,7 @@ export const EditorSettings: any = { behavioursEnabled: true, fontSize: "12px", theme: "ace/theme/one_dark", + mode: "ace/mode/text", printMarginColumn: 80, enableBasicAutocompletion: true, enableLiveAutocompletion: true, diff --git a/src/app/editor/ace/ace-editor.component.ts b/src/app/editor/ace/ace-editor.component.ts index cc16bbc..fbdecd8 100644 --- a/src/app/editor/ace/ace-editor.component.ts +++ b/src/app/editor/ace/ace-editor.component.ts @@ -5,6 +5,8 @@ import { AceLanguageClient, LanguageClientConfig } from 'ace-linters/build/ace-l // Import Ace and its modes/themes so that `ace` global is defined import * as ace from 'ace-builds/src-noconflict/ace'; import 'ace-builds/src-noconflict/theme-one_dark'; +import "ace-builds/src-noconflict/ext-language_tools"; + import { LanguageProvider } from "ace-linters"; import { EditorSettings } from "../../common/configs/editor.config"; @@ -76,23 +78,16 @@ export class AceEditorComponent { if (Object.keys(this.lspConfigData).length !== 0) { // _initializationOptions = this.lspConfigData[ this.editor.session.getMode() ]["initialization-options"]; _initializationOptions = this.lspConfigData[ "python" ]["initialization-options"]; -// _initializationOptions = this.lspConfigData[ "java" ]["initialization-options"]; -// _initializationOptions = this.lspConfigData[ "cpp" ]["initialization-options"]; - console.log(_initializationOptions.toString()); } let servers: LanguageClientConfig[] = [ { module: () => import("ace-linters/build/language-client"), modes: "python", -// modes: "java", -// modes: "cpp", type: "socket", socket: new WebSocket("ws://127.0.0.1:9999/python"), -// socket: new WebSocket("ws://127.0.0.1:9999/?name=clangd"), -// socket: new WebSocket("ws://127.0.0.1:9999/?name=jdtls"), // socket: new WebSocket("ws://127.0.0.1:9999/?name=pylsp"), -// initializationOptions: _initializationOptions + initializationOptions: _initializationOptions } ];