You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Switching SDK version should be reflected in terminal ("dart.addSdkToTerminalPath" setting) #737
changed the title [-]Switching SDK version should be reflected in terminal[/-][+]Switching SDK version should be reflected in terminal ("dart.addSdkToTerminalPath" setting)[/+]on Feb 20, 2023
Activity
DanTup commentedon Mar 27, 2018
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:
microsoft/vscode#34337
So the user would set something like:
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.
DanTup commentedon Nov 12, 2020
Currently blocked on microsoft/vscode#99878.
[-]Switching SDK version reflected in terminal[/-][+]Switching SDK version should be reflected in terminal[/+]Push SDK paths onto Terminal environment PATH
DanTup commentedon Jan 16, 2023
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.
Push SDK paths onto Terminal environment PATH
[-]Switching SDK version should be reflected in terminal[/-][+]Switching SDK version should be reflected in terminal ("dart.addSdkToTerminalPath" setting)[/+]