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 a590f49 commit ca07b5eCopy full SHA for ca07b5e
src/providers/FormatPrivider.ts
@@ -68,7 +68,7 @@ abstract class FileBasedFormattingEditProvider implements vscode.DocumentFormatt
68
let binPath: string = this.config.get('path');
69
this.logger.info('Executing command: ' + binPath + ' ' + args.join(' '));
70
try {
71
- child_process.execFileSync(binPath, args, {});
+ child_process.execFileSync(binPath, args, {cwd: vscode.workspace.workspaceFolders[0].uri.fsPath});
72
let formattedText: string = tempFile.readFileSync({ encoding: 'utf-8' });
73
let wholeFileRange: vscode.Range = new vscode.Range(
74
document.positionAt(0),
0 commit comments