Skip to content

extract Windows shim launching into tested executable helper - #5

Merged
daveshanley merged 1 commit into
mainfrom
updates
Jul 24, 2026
Merged

extract Windows shim launching into tested executable helper#5
daveshanley merged 1 commit into
mainfrom
updates

Conversation

@daveshanley

Copy link
Copy Markdown
Member

Move the cmd.exe .cmd/.bat shim handling out of extension.ts into a new buildLanguageServerExecutable() in src/executable.ts, now spawning with windowsVerbatimArguments and caret-escaping metacharacters so shim paths with spaces and special characters launch correctly.

Add unit tests (node --test) covering shim invocation, escaping, and direct execution, plus a test:unit script. Run the tests in a new reusable Test workflow on ubuntu/windows for PRs, gate release tagging on it, and run it before packaging in the Open VSX workflow. Exclude out/test/** from the VSIX.

Move the cmd.exe .cmd/.bat shim handling out of extension.ts into a new
buildLanguageServerExecutable() in src/executable.ts, now spawning with
windowsVerbatimArguments and caret-escaping metacharacters so shim paths
with spaces and special characters launch correctly.

Add unit tests (node --test) covering shim invocation, escaping, and
direct execution, plus a test:unit script. Run the tests in a new
reusable Test workflow on ubuntu/windows for PRs, gate release tagging
on it, and run it before packaging in the Open VSX workflow. Exclude
out/test/** from the VSIX.
@daveshanley
daveshanley merged commit 5407b2d into main Jul 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant