Skip to content

Commit 22fba08

Browse files
authored
Merge pull request #55 from fachammer/master
Added automatic nREPL startup for Windows
2 parents 95c9422 + d06e6a9 commit 22fba08

3 files changed

Lines changed: 62 additions & 3 deletions

File tree

package-lock.json

Lines changed: 58 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
},
7979
"dependencies": {
8080
"bencoder": "^0.0.5",
81+
"cross-spawn": "^5.1.0",
8182
"jszip": "^3.1.1"
8283
},
8384
"repository": {

src/nreplController.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'process';
22
import * as vscode from 'vscode';
3-
import { spawn, ChildProcess } from 'child_process';
3+
import { spawn } from 'cross-spawn';
4+
import { ChildProcess } from 'child_process';
45

56
import { CljConnectionInformation } from './cljConnection';
67

@@ -33,7 +34,7 @@ const start = (): Promise<CljConnectionInformation> => {
3334
if (isStarted())
3435
return Promise.reject({ nreplError: 'nREPL already started.' });
3536

36-
nreplProcess = spawn('lein', LEIN_ARGS, { cwd: vscode.workspace.rootPath, detached: true });
37+
nreplProcess = spawn('lein', LEIN_ARGS, { cwd: vscode.workspace.rootPath });
3738

3839
return new Promise((resolve, reject) => {
3940
nreplProcess.stdout.addListener('data', data => {

0 commit comments

Comments
 (0)