@@ -8,19 +8,14 @@ import { testCredentialsWithStub } from "../factories/authentication";
88import { Credentials } from "../../src/common/authentication" ;
99import { AppCommandManager } from "../../src/common/commands" ;
1010import { createMockCommandManager } from "./commandsMock" ;
11- import type {
12- Event ,
13- WorkspaceFolder ,
14- WorkspaceFoldersChangeEvent ,
15- } from "vscode" ;
11+ import type { Event , WorkspaceFoldersChangeEvent } from "vscode" ;
1612
1713export function createMockApp ( {
1814 extensionPath = "/mock/extension/path" ,
1915 workspaceStoragePath = "/mock/workspace/storage/path" ,
2016 globalStoragePath = "/mock/global/storage/path" ,
2117 createEventEmitter = < T > ( ) => new MockAppEventEmitter < T > ( ) ,
2218 workspaceState = createMockMemento ( ) ,
23- workspaceFolders = [ ] ,
2419 onDidChangeWorkspaceFolders = jest . fn ( ) ,
2520 credentials = testCredentialsWithStub ( ) ,
2621 commands = createMockCommandManager ( ) ,
@@ -31,7 +26,6 @@ export function createMockApp({
3126 globalStoragePath ?: string ;
3227 createEventEmitter ?: < T > ( ) => AppEventEmitter < T > ;
3328 workspaceState ?: Memento ;
34- workspaceFolders ?: readonly WorkspaceFolder [ ] | undefined ;
3529 onDidChangeWorkspaceFolders ?: Event < WorkspaceFoldersChangeEvent > ;
3630 credentials ?: Credentials ;
3731 commands ?: AppCommandManager ;
@@ -45,7 +39,6 @@ export function createMockApp({
4539 workspaceStoragePath,
4640 globalStoragePath,
4741 workspaceState,
48- workspaceFolders,
4942 onDidChangeWorkspaceFolders,
5043 createEventEmitter,
5144 credentials,
0 commit comments