Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integ/test: --disable-workspace-trust #1821

Merged
merged 1 commit into from
Jun 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test-scripts/integrationTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { runTests } from 'vscode-test'
import { VSCODE_EXTENSION_ID } from '../src/shared/extensions'
import { installVSCodeExtension, setupVSCodeTestInstance, getCliArgsToDisableExtensions } from './launchTestUtilities'

const DISABLE_WORKSPACE_TRUST = '--disable-workspace-trust'

async function setupVSCode(): Promise<string> {
console.log('Setting up VS Code Test instance...')
const vsCodeExecutablePath = await setupVSCodeTestInstance()
Expand Down Expand Up @@ -45,7 +47,7 @@ async function setupVSCode(): Promise<string> {
vscodeExecutablePath: vsCodeExecutablePath,
extensionDevelopmentPath: cwd,
extensionTestsPath: testEntrypoint,
launchArgs: [...disableExtensions, workspacePath],
launchArgs: [...disableExtensions, workspacePath, DISABLE_WORKSPACE_TRUST],
}
console.log(`runTests() args:\n${JSON.stringify(args, undefined, 2)}`)
const result = await runTests(args)
Expand Down