mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
api tests: avoid rootPath
This commit is contained in:
@@ -75,7 +75,7 @@ suite('workspace-namespace', () => {
|
||||
});
|
||||
|
||||
test('openTextDocument, untitled is dirty', function () {
|
||||
return vscode.workspace.openTextDocument(vscode.Uri.parse('untitled:' + join(vscode.workspace.rootPath || '', './newfile.txt'))).then(doc => {
|
||||
return vscode.workspace.openTextDocument(vscode.Uri.parse('untitled:' + join(vscode.workspace.workspaceFolders![0].uri.toString() || '', './newfile.txt'))).then(doc => {
|
||||
assert.equal(doc.uri.scheme, 'untitled');
|
||||
assert.ok(doc.isDirty);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user