Fix plugin activation

This commit is contained in:
Krzysztof Cieslak
2019-08-06 12:20:17 +02:00
parent 3a6d948fc5
commit fc5f32293d

View File

@@ -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);
}