Skip to content

Commit 9842f38

Browse files
Fixed autocomplete
When path to node has spaces (C:\Program Files) the child process exec cannot run the command. Need to place it in "" to run it without errors. Update FileSystemStub with new method from interface.
1 parent 67f7a8f commit 9842f38

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/stubs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ export class FileSystemStub implements IFileSystem {
169169
renameIfExists(oldPath: string, newPath: string): IFuture<boolean> {
170170
return undefined;
171171
}
172+
173+
rm(options: string, ...files: string[]): void {
174+
// Mock
175+
}
172176
}
173177

174178
export class ErrorsStub implements IErrors {

0 commit comments

Comments
 (0)