Remove usage of deprecated API (#1317)
This commit is contained in:
Родитель
e79b38a219
Коммит
3fcc544f57
|
@ -43,7 +43,7 @@ class TestTerminal implements vscode.Terminal {
|
|||
private _disposed: boolean = false;
|
||||
|
||||
constructor(private _terminal: vscode.Terminal) {
|
||||
let root = vscode.workspace.rootPath || os.tmpdir();
|
||||
let root = (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 0 && vscode.workspace.workspaceFolders[0].uri.fsPath) || os.tmpdir();
|
||||
this._suffix = TestTerminal._lastSuffix++;
|
||||
|
||||
this._outputFilePath = path.join(root, `.out${this._suffix}`);
|
||||
|
|
Загрузка…
Ссылка в новой задаче