Skip to content

Extension randomly runs something in the background when writing in the code pane #4773

Open
@o-l-a-v

Description

@o-l-a-v

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Related issues:

While writing PowerShell in the code pane the terminal suddenly seems to have ran something on my unfinished code, and must be exited with CTRL+C to stop.

image

In this example I was going to write Get-AzResource, only got to Get-AzResour before a warning pops up saying WARNING: Get-AzResour is not found. The most similar Azure PowerShell command is: Get-AzResource.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.3.7
PSEdition                      Core
GitCommitId                    7.3.7
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Modules

Name                              Version
----                              -------
Az.Accounts                       2.13.1
Az.Network                        6.2.0
Az.Resources                      6.11.1
Microsoft.PowerShell.Management   7.0.0.0
Microsoft.PowerShell.Security     7.0.0.0
Microsoft.PowerShell.Utility      7.0.0.0
PowerShellEditorServices.Commands 0.2.0
PowerShellEditorServices.VSCode   0.2.0
PSReadLine                        2.2.6

Visual Studio Code Version

1.83.0
e7e037083ff4455cf320e344325dacb480062c3c
x64

Extension Version

ms-vscode.powershell@2023.6.0

Steps to Reproduce

Write PowerShell in the code view, suddenly something (vscode-powershell? PSReadLine?) triggers something that outputs to the terminal.

Visuals

See summary.

Logs

Tried following https://github.com/PowerShell/vscode-powershell/blob/main/docs/troubleshooting.md#logs
But there's no log directory inside %USERPROFILE%\.vscode\extensions\ms-vscode.powershell-2023.6.0, even after I added following to settings.json:

"powershell editor services.trace.server": "verbose",
"powershell.developer.editorServicesLogLevel": "Diagnostic"

Edit: Logs are apprently located at %APPDATA%\Code\User\globalStorage\ms-vscode.powershell\logs, with one new directory created at each new session.

Edit 2: I reproduced with mentioned changes to settings.json above, sent logs per email.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions