MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / isMultirootTest

Function isMultirootTest

src/test/constants.ts:55–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55function isMultirootTest() {
56 // No need to run smoke nor perf tests in a multi-root environment.
57 if (IS_SMOKE_TEST() || IS_PERF_TEST()) {
58 return false;
59 }
60 try {
61 const workspace = vscode.workspace;
62 return Array.isArray(workspace.workspaceFolders) && workspace.workspaceFolders.length > 1;
63 } catch {
64 // being accessed, when VS Code hasn't been launched.
65 return false;
66 }
67}
68
69export function setTestSettings(newSettings: Partial<TestSettingsType>) {
70 testSettings = { ...testSettings, ...newSettings };

Callers

nothing calls this directly

Calls 2

IS_SMOKE_TESTFunction · 0.85
IS_PERF_TESTFunction · 0.85

Tested by

no test coverage detected