-
Notifications
You must be signed in to change notification settings - Fork 44
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
Plugin appends value to PATH for terminal such that terminal PATH is different than VSCode's #3597
Comments
You can turn this off with the setting |
@connor4312 I set that setting and the path in the terminal still contains |
After changing that setting, you'll need to reload any existing terminals you have or recreate a new terminal where that path won't be present |
I restarted vscode. |
Also, I tried appending this to the path before launching vscode (in hopes that the path would remain the same if that string was already on the path) and it results in duplicate entries in the path:
|
I added some code in {
"_store": { "_toDispose": {}, "_isDisposed": false },
// ...
"config": {
// ...
"chat": {
// ...
"startDebugging": { "enabled": false },
// ...
}
}
} |
This appears to work well for me 🤔 25-01-922c4da0-b763-412f-bbdf-5b1a409e4755.mp4 |
Hmmm weird. I tried setting: "github.copilot.chat.startDebugging.enabled": false,
"github.copilot.chat.copilotDebugCommand.enabled": false In both my user settings and local project .vscode settings. Then I tried the pre-release of the extension and vscode insiders, but no luck. This would be a lot easier if this extension was open source because I could debug it locally without having to wade through minified code. |
Figured it out. I needed to comment out the third parameter in this code otherwise it always returns true:
I think due to it being internal && valueIgnoredForExternals? My guess is that it works for you being a developer on the team, but not for me due to that.
|
I faced the same issue:
These settings don’t solve the problem. The PATH variable in VS Code picks up this unescaped string. Can you tell me where you are making these changes? |
@sgoev in the folder where extensions are installed, there is a I just realized that might go against the extension's license and I did not mean to break it (I'm not 100% sure though). I'm only providing this information in hopes of getting this issue fixed. |
Ahh, good debugging. I never removed that check when the feature was released 🤦 |
Oh yes, this works! Thank you so much! I’m also eagerly waiting for fixes; this issue ruined my first day at work… |
Steps to Reproduce:
;c:\Users\david\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\debugCommand
appended so it differs from vscode)This is a problem because many tools will do stuff like recompile when changes to the env vars (specifically PATH) happen. So for example, you run
cargo check
in the terminal, then your editor doescargo check
and now a recompile happens because certain dependencies cache bust on the PATH changing.Related issue microsoft/vscode#237338
The text was updated successfully, but these errors were encountered: