+ AllUsersCurrentHost: C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.VSCode_profile.ps1 + AllUsersAllHosts: C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1 Bundled modules path: c:\Users\user\.vscode\extensions\ms-vscode.powershell-preview-2022.3.0\modules PowerShell host type: .Host.InternalHostĬ:\Users\user\.vscode\extensions\ms-vscode.powershell-preview-2022.3.0\sessions\PSES-VSCode-35772-736086 VERBOSE: Adding AssemblyResolve event handler for dependency loading N/A Logs Terminal Log Output DEBUG: Logging started Get-Command -Module '' | Select-Object -Unique -Property Version Close all instances of VS Code.Įxecute below in VS Code Integrated Terminal Get-Command 'Import-PowershellDataFile' Set Integrated Console in VS Code to Windows Powershell (圆4). Visual Studio Code Version PS> code -versionĮxtension Version PS> code -list-extensions -show-versions | Select-String powershell7:58 to Reproduce I still need to use this version due to SOAP endpoints like SQL Server Reporting Services ( e.g. See this comment on the code links to the PowerShell code base. C:\Program Files\PowerShell\Modules and C:\program files\powershell\7\Modules ). powershell.exe on it’s own purges the pwsh.exe paths from the module path ( e.g. The $env:PSModulePath is retained from the parent pwsh.exe session and causes issues in the powershell.exe session within code.exe. $Host ) on powershell.exe 5.1 when user launches code.cmd from pwsh.exe. The libraries version is incorrect within the Visual Studio Code Host ( e.g. Issue found when Import-PowerShellDataFile was not recognized because 7.0.0 is loaded in 5.1 Integrated Console. If this is a security issue, I have read the security issue reporting guidance.I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.I have searched all issues to ensure it has not already been reported.I have written a descriptive issue title.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |