Skip to content

Commit e93bb7d

Browse files
committed
(GH-663) Quote Workspace path
This commit fixes a bug that occurs if the workspace path has a space or other non-standard character. This would cause a command line parsing error when trying to execute the language server.
1 parent 3c656bc commit e93bb7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/commandHelper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ export class CommandEnvironmentHelper {
143143

144144
args.push('--timeout=' + settings.workspace.editorService.timeout);
145145
if (vscode.workspace.workspaceFolders !== undefined) {
146-
args.push('--local-workspace=' + vscode.workspace.workspaceFolders[0].uri.fsPath);
146+
const path = `--local-workspace='${vscode.workspace.workspaceFolders[0].uri.fsPath}'`;
147+
args.push(path);
147148
}
148149

149150
// Convert the individual puppet settings into the --puppet-settings

0 commit comments

Comments
 (0)