-
Notifications
You must be signed in to change notification settings - Fork 395
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
New: Install VS Code debugger extensions #48
Conversation
Install automatically VS Code debugger extensions for Chrome an Edge - - - - - - - - - - - - - - - - - - - Ref: microsoft#46
love it, thanks! |
@@ -15,6 +15,9 @@ Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\ | |||
|
|||
#--- Tools --- | |||
choco install -y vscode | |||
code --install-extension msjsdiag.debugger-for-chrome |
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.
@yodurr I "think" this might require a refreshenv in order to function. I gave a Chocolatey presentation yesterday, and the need to refreshenv was required for me.
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.
In PowerShell scripts, I'm not going to recommend a "refreshenv" as it is not deterministic to know if the PowerShell profile is installed - it is more deterministic to use Update-SessionEnvironment
after importing some of the Chocolatey module. cc @crutkas
I'll explain at the bottom on the need for updating environment variables.
why do you need to refreshenv? |
@gep13 can say more, but I believe it's because code will not be in the path after doing See #48 (comment) |
That is what I suspect it required yes. I ran into this during a demo I was given. Also, here in this package: https://chocolatey.org/packages/vscode-powershell A refresh is required, or at least, it was. |
One Thought, just have choco vs code and the vs packages to refresh. Where does one submit a PR for those? |
I am not sure that I follow your train of thought here. Can you please elaborate? |
sorry, if we need to do a refresh for the environment, wouldn't the better spot to do the adjustment is actually in the choco package? that way everyone gets the update versus only someone that uses our scripts |
@crutkas unfortunately Windows doesn't quite work that nicely. Even if those packages call Chocolatey however has a concept of Does all of that make sense? |
@ferventcoder so if I've understood correctly I have to replace |
@molant since everything here is running in PowerShell, yes, that would be the safest thing to do. |
Install automatically VS Code debugger extensions for Chrome an Edge
Ref: #46