-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Consolidate util code to src/util/*. #2489
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
Consolidate util code to src/util/*. #2489
Conversation
| const mockVariables: EnvironmentVariables = {}; | ||
| if (envVars) { | ||
| for (const [key, value] of envVars.entries!) { | ||
| if (envVars && envVars.keys) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can't we use .entries
|
|
||
| // tslint:disable-next-line: no-suspicious-comment | ||
| // TODO: Usage of these should be replaced by OSInfo.* or | ||
| // IPlatformService.* (from src/client/common/platform). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove commented code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a TODO comment. There is no commented code.
| protected debugSession: DebugSession; | ||
|
|
||
| protected isRunning: boolean; | ||
| protected isRunning?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No change required:
Or you could just change this to initialize isRunning to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
FYI the |
Has a news entry file (remember to thank yourself!)Any new/changed dependencies inpackage.jsonare pinned (e.g."1.2.3", not"^1.2.3"for the specified version)package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed)This is a follow-up to #2456. I've pulled many of the "util" modules out of
src/client/commoninto a new sibling package toclient:utils. This helps us separate the extension-specific code from the generic code we use for the extension.Note that this PR includes only the following: