Use new environment variable parser#362
Conversation
Archive of 0.7.0
* 'master' of https://github.com/Microsoft/vscode-python: Fixes #56 list all environments (#219) Fixes #57 Disable activation on debugging (#220) Fixes #26 Do not run linters when linters are disabled (#222)
* upstream/master: Fix typo in README.md (#252) Disable linter without workspaces (#241)
* FixCodeExecInLinters: fix code review comments
* upstream/master: Fix linters to make use of the new python code execution framework (#360) Update the versioning scheme (#356) Make npm happy in regards to line endings (#357)
* master: Fix linters to make use of the new python code execution framework (#360) Update the versioning scheme (#356) Make npm happy in regards to line endings (#357)
* upstream/master: Ensure python path is not set if already set in user settings (#369) Use 'an' rather than 'a' before vowel words (#373)
* master: Ensure python path is not set if already set in user settings (#369) Use 'an' rather than 'a' before vowel words (#373)
|
@brettcannon @MikhailArkhipov could one of you please review this PR. |
|
@brettcannon , never mind will get Mikhail, forgot its friday. |
| // If debug server has started, then don't display errors. | ||
| // The debug adapter will get this info from the debugger (e.g. ptvsd lib). | ||
| if (!this.debugServer && this.debugServer.IsRunning) { | ||
| if (!this.debugServer && this.debugServer!.IsRunning) { |
There was a problem hiding this comment.
Not sure I understand the syntax. debugServer is undefined and it is also IsRunning? Should it be !this.debugServer || !this.debugServer!.IsRunning ?
| return; | ||
| } | ||
| const pathVariable = this.isWidows ? WINDOWS_PATH_VARIABLE_NAME : NON_WINDOWS_PATH_VARIABLE_NAME; | ||
| const pathVariable = this.isWindows ? WINDOWS_PATH_VARIABLE_NAME : NON_WINDOWS_PATH_VARIABLE_NAME; |
There was a problem hiding this comment.
Might be worth making a small helper like getPathVeriableName()
There was a problem hiding this comment.
Agreed, now i can create the PathUtils class I've always wanted (to translate HOME and other environment varaibels and back)... for prettier displays of paths..
| resolve(); | ||
| }, error => { | ||
| if (!this.debugServer && this.debugServer.IsRunning) { | ||
| if (!this.debugServer && this.debugServer!.IsRunning) { |
There was a problem hiding this comment.
Also may be worth encapsulating the condition into a small helper function.
|
👍 |
* upstream/master: Use new environment variable parser (#362)
No description provided.