Describe the bug
On startup TypeSpec VS Code extension throws an error:
[error] Launching server using command tsp failed. Error: spawn tsp ENOENT
[error] TypeSpec server executable was not found: 'tsp' is not found. Make sure either:
- TypeSpec is installed locally at the root of this workspace ("workspacePath") or in a parent directory.
- TypeSpec is installed globally with `npm install -g @typespec/compiler'.
- TypeSpec server path is configured with https://typespec.io/docs/introduction/editor/vscode/#configure.
[error] Error detail Launching server using command tsp failed. Error: spawn tsp ENOENT
However TypeSpec is installed globally and is accessible in PowerShell and set as VS Code's default terminal.
It is not accessible using the default system cmd
Reproduction
Install/configure node/npm/tsc in a system terminal that isn't cmd, configure Visual Studio Code to use that terminal. The TypeSpec still extension fails to load.
Checklist
Describe the bug
On startup TypeSpec VS Code extension throws an error:
However TypeSpec is installed globally and is accessible in PowerShell and set as VS Code's default terminal.
It is not accessible using the default system
cmdReproduction
Install/configure node/npm/tsc in a system terminal that isn't
cmd, configure Visual Studio Code to use that terminal. The TypeSpec still extension fails to load.Checklist