-
Notifications
You must be signed in to change notification settings - Fork 318
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
Switching SDK version should be reflected in terminal ("dart.addSdkToTerminalPath" setting) #737
Comments
Seems like we don't have any control over the terminal creation, so I think the best we can probably do is to read from the terminals env settings. Some info here: So the user would set something like: {
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};C:\bin"
}
} Ugh, except I tried it and we just get that literal string, not the resolved value. We could parse it manually but it's getting hacky. I've opened microsoft/vscode#46696 to see if they can suggest a better way. |
Currently blocked on microsoft/vscode#99878. |
The VS Code issue has been resolved for macOS, so we should be able to do this after the next stable VS Code release. WIP is at https://github.com/Dart-Code/Dart-Code/tree/add-sdk-path-to-env-path, but there needs to be a setting to opt-out. |
When I switch my SDK version using the status bar and then I open a terminal I don't see the new version when I run
dart --version
.This could maybe be set in to the path when a new terminal is created?
The text was updated successfully, but these errors were encountered: