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

Terminal suggest: Don't rely on isWindows in resolveResources #239411

Open
Tyriar opened this issue Feb 1, 2025 · 0 comments · May be fixed by #239540
Open

Terminal suggest: Don't rely on isWindows in resolveResources #239411

Tyriar opened this issue Feb 1, 2025 · 0 comments · May be fixed by #239540
Assignees
Labels
debt Code quality issues terminal-suggest
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Feb 1, 2025

We depend on isWindows a few places in this file:

https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.ts#L10

Doing so has a couple of problems:

  • It's not totally correct and will fall over when mac connects to a Windows machine for example.
  • It's not possible to test against all OS' on a single OS.

If we pass in isWindows from the extension host request, this will allow us to do that in tests too.

@Tyriar Tyriar added debt Code quality issues terminal-suggest labels Feb 1, 2025
@Tyriar Tyriar added this to the February 2025 milestone Feb 1, 2025
meganrogge added a commit that referenced this issue Feb 3, 2025
meganrogge added a commit that referenced this issue Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Code quality issues terminal-suggest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants