Skip to content

Support spaces for workspaceFolder on Windows #298

@apupier

Description

@apupier

in .vscode-test.mjs file, if I proivide something like:

import { defineConfig } from '@vscode/test-cli';

export default defineConfig({
	files: 'out/test/**/*.test.js',
	workspaceFolder: './with space',
	launchArgs: ['--verbose'],
	mocha: {
		ui: 'tdd',
		color: true,
		timeout: 100000,
		reporter: 'mocha-jenkins-reporter'
	}
});

on Windows, in the log I can see:

[main 2025-01-23T13:38:05.050Z] Starting VS Code
[main 2025-01-23T13:38:05.050Z] from: d:\a\vscode-kaoto\vscode-kaoto\.vscode-test\vscode-win32-x64-archive-1.96.4\resources\app
[main 2025-01-23T13:38:05.051Z] args: {
  _: [
    'D:\\a\\vscode-kaoto\\vscode-kaoto\\with',
    'D:\\a\\vscode-kaoto\\vscode-kaoto\\space'
  ],

on Linux, it is workign fine:

[main 2025-01-23T13:36:50.112Z] Starting VS Code
[main 2025-01-23T13:36:50.112Z] from: /home/runner/work/vscode-kaoto/vscode-kaoto/.vscode-test/vscode-linux-x64-1.96.4/resources/app
[main 2025-01-23T13:36:50.112Z] args: {
  _: [
    '/home/runner/work/vscode-kaoto/vscode-kaoto/with space'
  ],

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions