We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba3c59 commit e0a0279Copy full SHA for e0a0279
src/index.js
@@ -1,6 +1,7 @@
1
// @flow
2
3
import { LanguageClient, services, ExtensionContext, workspace } from 'coc.nvim';
4
+import os from 'os';
5
6
export function activate(context: ExtensionContext) {
7
const config = workspace.getConfiguration().get('elixir', {});
@@ -15,7 +16,8 @@ export function activate(context: ExtensionContext) {
15
16
return pathToElixirLS;
17
}
18
- return context.asAbsolutePath('./els-release/language_server.sh');
19
+ const lsFileExtension = os.platform() === 'win32' ? 'bat' : 'sh';
20
+ return context.asAbsolutePath(`./els-release/language_server.${lsFileExtension}`);
21
};
22
23
const command = getElsPath();
0 commit comments