Skip to content

Commit ae6a50a

Browse files
Merge pull request #9 from aminya/windows_server
Fixes windows server
2 parents ff7acfe + ae26516 commit ae6a50a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ class BashLanguageClient extends AutoLanguageClient {
2323
// loaded
2424
await new Promise(resolve => atom.whenShellEnvironmentLoaded(resolve));
2525

26-
const command = 'bash-language-server'
26+
if ( process.platform == 'win32') {
27+
const command = 'bash-language-server.cmd'
28+
} else {
29+
const command = 'bash-language-server'
30+
}
31+
2732
const args = ["start"]
2833

2934
const childProcess = ChildProcess.spawn(command, args, {

0 commit comments

Comments
 (0)