-
Notifications
You must be signed in to change notification settings - Fork 500
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
The language service could not be started #3034
Comments
🤔 I wonder if there should be a setting to configure what Execution Policy is sent on startup? Naturally it might be difficult to build and debug locally if you're not locally signing code and you pick an Execution Policy other than Unrestricted or Bypass. Out of curiosity @J0ska what anti-virus are you running? |
Right, softcoding the Execution Policy would be indeed ideal. We use McAfee Endpoint Security. It is blocked by Exploit Prevention rule ID 6073 "Exection Policy Bypass in Powershell". By default it is disabled but in out set-up it's not :( |
Thanks @J0ska we may need to introduce a configuration setting for execution policy, it would great to know what you saw before taking that code out? A screenshot or GIF is even better--thanks! |
since the bypass is not allowed in the org and is being blocked by McAfee or Symantec or other AV tools, it is hard to get approval from security to byass and use visual studio code app. Are there any progress made on this to fix the issue? we have large number of users complaining on this. |
Thanks @eskonr we do plan to investigate this issue further in the next 6 months or so, and will have a better idea then, how/if we may be able to work around these AV tools...unfortunately these AV tools can be quite complex and unpredictable...in the meantime if you do have specifics about your environment and what you are seeing that you can share that is helpful. |
Whoops sorry this took so long to get it, it was a 5 minute fix to give you the option. |
The language service doesn't start due to "-ExecutionPolicy Bypass" command line option is prohibited by antivirus policy.
vscode-powershell.log
Removing the code below fixed the problem
vscode-powershell/src/process.ts
Lines 79 to 82 in e45fd25
vscode-powershell.log
Cheers
The text was updated successfully, but these errors were encountered: