Testing python LSP with ace-linters

This commit is contained in:
itdominator 2024-03-22 20:31:40 -05:00
parent b0c519dce5
commit be5e159fd4
1 changed files with 20 additions and 9 deletions

View File

@ -74,13 +74,26 @@ const setSession = (ftype, fhash, session) => {
importScripts("${await importScriptFromNetwork(baseLink + "/service-manager.js")}"); importScripts("${await importScriptFromNetwork(baseLink + "/service-manager.js")}");
let manager = new ServiceManager(self); 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: () => { module: () => {
importScripts("${await importScriptFromNetwork(baseLink + "/python-service.js")}"); importScripts("${await importScriptFromNetwork(baseLink + "/language-client.js")}");
return {PythonService}; return {LanguageClient};
}, },
className: "PythonService",
modes: "python|python3", 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);
} }
); );
//provider.registerEditor(editor);
} }
} }