File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
test/integration-tests/documentation Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1515import * as vscode from "vscode" ;
1616import contextKeys from "../../../src/contextKeys" ;
1717import { expect } from "chai" ;
18- import { folderContextPromise , globalWorkspaceContextPromise } from "../extension.test " ;
18+ import { activateExtensionForSuite , folderInRootWorkspace } from "../utilities/testutilities " ;
1919import { waitForNoRunningTasks } from "../../utilities" ;
2020import { testAssetUri } from "../../fixtures" ;
2121import { FolderContext } from "../../../src/FolderContext" ;
@@ -32,11 +32,13 @@ suite("Documentation Preview", function () {
3232 let folderContext : FolderContext ;
3333 let workspaceContext : WorkspaceContext ;
3434
35- suiteSetup ( async function ( ) {
36- workspaceContext = await globalWorkspaceContextPromise ;
37- await waitForNoRunningTasks ( ) ;
38- folderContext = await folderContextPromise ( "SlothCreatorExample" ) ;
39- await workspaceContext . focusFolder ( folderContext ) ;
35+ activateExtensionForSuite ( {
36+ async setup ( ctx ) {
37+ workspaceContext = ctx ;
38+ await waitForNoRunningTasks ( ) ;
39+ folderContext = await folderInRootWorkspace ( "SlothCreatorExample" , ctx ) ;
40+ await ctx . focusFolder ( folderContext ) ;
41+ } ,
4042 } ) ;
4143
4244 suiteTeardown ( async ( ) => {
You can’t perform that action at this time.
0 commit comments