Skip to content

PowerShell Intellisense and most right-click features stop working #2596

Closed

Description

@messy17

Issue Description

When I author PowerShell scripts, I notice that after a non-deterministic amount of time, Intellisense for the cmdlets stops working. When this happens, the "PowerShell" progress message spins indefinitely. What else happens is that most of the right-click functions such as Go to references or Go to definition do not work. A blue progress-like indicator starts scrolling from the left to right across the top of the screen. The only way to fix this is to close VSC completely (reloading the extension of VSC does not resolve the issue). I first noticed this behavior two releases ago.
Filed with VSCode, who pointed the finger at the extension PowerShell Intellisense and most right-click feature stop working #93607 Closed
Attached Logs
microsoft/vscode#93607 [Closed]
StartEditorServices.zip
StartEditorServices.zip
StartEditorServices.zip

=====

Follow the instructions in the README about
capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.18363
VSCode 1.43.2
PowerShell Extension Version 2020.3.0

PowerShell Information

Name Value
PSVersion 5.1.18362.628
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.18362.628
BuildVersion 10.0.18362.628
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
code-spell-checker streetsidesoftware 1.8.0
docs-article-templates docsmsft 0.2.7
docs-images docsmsft 0.0.6
docs-linting docsmsft 0.0.2
docs-metadata docsmsft 1.0.4
docs-preview docsmsft 0.3.44
docs-yaml docsmsft 0.2.4
LinkCheckMD blackmist 0.3.1
powershell ms-vscode 2020.3.0
vscode-markdownlint DavidAnson 0.34.0
vscode-sidebar Acrolinx 1.1.2
vscode-yaml redhat 0.7.2

Activity

  1. ghost added
    Needs: Triage
    on Mar 31, 2020
  2. TylerLeonhardt commented on Apr 2, 2020

    @TylerLeonhardt
    Member

    Can you give this a go in the PowerShell Preview extension? It has a few performance fixes in it and it might be fixed in that already.

  3. added and removed
    Needs: Triage
    on Apr 2, 2020
  4. messy17 commented on Apr 3, 2020

    @messy17
    Author

    TylerLeonhardt Thank you for the direction. I disabled the current and installed the preview. Encountered the same problem using the preview. Additional info-- it does not seem to matter how big the script is. One script is 800 lines while the other is 200. the same side effects occur the PowerShell extension progress message just spins endlessly. Also, when in this state, code folding does not work either. It is visible, but if you click the chevron, it does not respond.

  5. ghost added
    Needs: Maintainer Attention
    on Apr 3, 2020
  6. PrzemyslawKlys commented on Apr 4, 2020

    @PrzemyslawKlys
    Contributor

    I've been seeing the same thing. I'm using the newest preview. First, few autocomplete features work fine and then it suddenly stops. Terminal continues to work (PSReadLine).

  7. TylerLeonhardt commented on Apr 5, 2020

    @TylerLeonhardt
    Member

    Thanks for the info! Can you also attach the logs here so we can get a better idea of what's going on?

  8. removed
    Needs: Maintainer Attention
    on Apr 5, 2020
  9. PrzemyslawKlys commented on Apr 5, 2020

    @PrzemyslawKlys
    Contributor

    1586085787-b4f071c6-ec13-4ba6-8d6d-7552d19a59661586085785900.zip

    When I stumble on the issue IntelliSense doesn't work. But if you wait enough time it comes back from time to time.

  10. ghost added
    Needs: Maintainer Attention
    on Apr 5, 2020
  11. PrzemyslawKlys commented on Apr 6, 2020

    @PrzemyslawKlys
    Contributor
  12. SydneyhSmith commented on Apr 7, 2020

    @SydneyhSmith
    Collaborator

    We are working on the fix for this issue right now, but I am going to mark as duplicate of #2522

  13. ghost closed this as completedon Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IntelliSenseIssue-PerformanceResolution-Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions