generated from itdominator/Python-With-Gtk-Template
Testing python LSP with ace-linters
This commit is contained in:
parent
b0c519dce5
commit
be5e159fd4
|
@ -74,13 +74,26 @@ const setSession = (ftype, fhash, session) => {
|
|||
importScripts("${await importScriptFromNetwork(baseLink + "/service-manager.js")}");
|
||||
let manager = new ServiceManager(self);
|
||||
|
||||
manager.registerService("python", {
|
||||
/* Works but isn't websocket */
|
||||
// manager.registerService("python", {
|
||||
// module: () => {
|
||||
// importScripts("${await importScriptFromNetwork(baseLink + "/python-service.js")}");
|
||||
// return {PythonService};
|
||||
// },
|
||||
// className: "PythonService",
|
||||
// modes: "python|python3",
|
||||
// });
|
||||
|
||||
/* Works and is websocket */
|
||||
manager.registerServer("python", {
|
||||
module: () => {
|
||||
importScripts("${await importScriptFromNetwork(baseLink + "/python-service.js")}");
|
||||
return {PythonService};
|
||||
importScripts("${await importScriptFromNetwork(baseLink + "/language-client.js")}");
|
||||
return {LanguageClient};
|
||||
},
|
||||
className: "PythonService",
|
||||
modes: "python|python3",
|
||||
type: "socket", // "socket|worker"
|
||||
socket: new WebSocket("ws://127.0.0.1:3030/python"),
|
||||
initializationOptions: {}
|
||||
});
|
||||
|
||||
}()
|
||||
|
@ -91,8 +104,6 @@ const setSession = (ftype, fhash, session) => {
|
|||
provider.registerEditor(editor);
|
||||
}
|
||||
);
|
||||
|
||||
//provider.registerEditor(editor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue