mirror of
https://github.com/jlengrand/elm-language-client-vscode.git
synced 2026-03-10 08:11:17 +00:00
Fix plugin activation
This commit is contained in:
@@ -50,6 +50,8 @@ export async function activate(context: ExtensionContext) {
|
||||
const elmJsonFolder = getElmJsonFolder(uri);
|
||||
stopClient(elmJsonFolder);
|
||||
});
|
||||
let packageDisposables = Package.activatePackage()
|
||||
packageDisposables.forEach(d => context.subscriptions.push(d))
|
||||
}
|
||||
|
||||
function findTopLevelFolders(listOfElmJsonFolders: Uri[]) {
|
||||
@@ -166,7 +168,6 @@ function startClient(context: ExtensionContext, elmWorkspace: Uri) {
|
||||
|
||||
// Start the client. This will also launch the server
|
||||
languageClient.start();
|
||||
Package.activatePackage()
|
||||
clients.set(elmWorkspace.fsPath, languageClient);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user