Skip to content

Commit 6fb9434

Browse files
committed
improve tests
1 parent 04152e4 commit 6fb9434

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/integrationTests/workspaceSymbolProvider.integration.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import * as path from 'path';
76
import * as vscode from 'vscode';
87
import { should, expect } from 'chai';
98
import { activateCSharpExtension } from './integrationHelpers';
@@ -20,11 +19,8 @@ suite(`WorkspaceSymbolProvider: ${testAssetWorkspace.description}`, function ()
2019
await testAssetWorkspace.restore();
2120
await activateCSharpExtension();
2221

23-
let fileName = 'documentSymbols.cs';
24-
let projectDirectory = testAssetWorkspace.projects[0].projectDirectoryPath;
25-
let filePath = path.join(projectDirectory, fileName);
26-
let fileUri = vscode.Uri.file(filePath);
27-
await vscode.commands.executeCommand("vscode.open", fileUri);
22+
let projectDirectory = vscode.Uri.file(testAssetWorkspace.projects[0].projectDirectoryPath);
23+
await vscode.commands.executeCommand("vscode.openFolder", projectDirectory);
2824
});
2925

3026
suiteTeardown(async () => {

0 commit comments

Comments
 (0)