mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
2b63a583e4
commit
1fbacccbc9
|
@ -247,7 +247,7 @@ export default class PHPValidationProvider {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let options = vscode.workspace.rootPath ? { cwd: vscode.workspace.rootPath } : undefined;
|
let options = (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders[0]) ? { cwd: vscode.workspace.workspaceFolders[0].uri.fsPath } : undefined;
|
||||||
let args: string[];
|
let args: string[];
|
||||||
if (this.trigger === RunTrigger.onSave) {
|
if (this.trigger === RunTrigger.onSave) {
|
||||||
args = PHPValidationProvider.FileArgs.slice(0);
|
args = PHPValidationProvider.FileArgs.slice(0);
|
||||||
|
|
Loading…
Reference in a new issue