Fixed auto completion not working
This commit is contained in:
parent
61e461e31a
commit
2a9be75835
@ -199,8 +199,8 @@
|
|||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
"rope_completion": {
|
"rope_completion": {
|
||||||
"enabled": true,
|
"enabled": false,
|
||||||
"eager": true
|
"eager": false
|
||||||
},
|
},
|
||||||
"jedi_rename": {
|
"jedi_rename": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
@ -8,6 +8,7 @@ export const EditorSettings: any = {
|
|||||||
behavioursEnabled: true,
|
behavioursEnabled: true,
|
||||||
fontSize: "12px",
|
fontSize: "12px",
|
||||||
theme: "ace/theme/one_dark",
|
theme: "ace/theme/one_dark",
|
||||||
|
mode: "ace/mode/text",
|
||||||
printMarginColumn: 80,
|
printMarginColumn: 80,
|
||||||
enableBasicAutocompletion: true,
|
enableBasicAutocompletion: true,
|
||||||
enableLiveAutocompletion: true,
|
enableLiveAutocompletion: true,
|
||||||
|
@ -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 Ace and its modes/themes so that `ace` global is defined
|
||||||
import * as ace from 'ace-builds/src-noconflict/ace';
|
import * as ace from 'ace-builds/src-noconflict/ace';
|
||||||
import 'ace-builds/src-noconflict/theme-one_dark';
|
import 'ace-builds/src-noconflict/theme-one_dark';
|
||||||
|
import "ace-builds/src-noconflict/ext-language_tools";
|
||||||
|
|
||||||
import { LanguageProvider } from "ace-linters";
|
import { LanguageProvider } from "ace-linters";
|
||||||
|
|
||||||
import { EditorSettings } from "../../common/configs/editor.config";
|
import { EditorSettings } from "../../common/configs/editor.config";
|
||||||
@ -76,23 +78,16 @@ export class AceEditorComponent {
|
|||||||
if (Object.keys(this.lspConfigData).length !== 0) {
|
if (Object.keys(this.lspConfigData).length !== 0) {
|
||||||
// _initializationOptions = this.lspConfigData[ this.editor.session.getMode() ]["initialization-options"];
|
// _initializationOptions = this.lspConfigData[ this.editor.session.getMode() ]["initialization-options"];
|
||||||
_initializationOptions = this.lspConfigData[ "python" ]["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[] = [
|
let servers: LanguageClientConfig[] = [
|
||||||
{
|
{
|
||||||
module: () => import("ace-linters/build/language-client"),
|
module: () => import("ace-linters/build/language-client"),
|
||||||
modes: "python",
|
modes: "python",
|
||||||
// modes: "java",
|
|
||||||
// modes: "cpp",
|
|
||||||
type: "socket",
|
type: "socket",
|
||||||
socket: new WebSocket("ws://127.0.0.1:9999/python"),
|
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"),
|
// socket: new WebSocket("ws://127.0.0.1:9999/?name=pylsp"),
|
||||||
// initializationOptions: _initializationOptions
|
initializationOptions: _initializationOptions
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user