Skip to content

Commit 0389649

Browse files
committed
Use Import-Module also when process.platform !== win32
1 parent 6afed85 commit 0389649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/terminal/test/node/terminalEnvironment.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ suite('platform - terminalEnvironment', async () => {
4949
(getWindowsBuildNumber() < 18309 ? suite.skip : suite)('pwsh', async () => {
5050
const expectedPs1 = process.platform === 'win32'
5151
? `try { Import-Module "${repoRoot}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}`
52-
: `. "${repoRoot}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"`;
52+
: `Import-Module "${repoRoot}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"`;
5353
suite('should override args', async () => {
5454
const enabledExpectedResult = Object.freeze<IShellIntegrationConfigInjection>({
5555
type: 'injection',

0 commit comments

Comments
 (0)