Skip to content

PowerShell: CompletionItemProvider Doesn't Display Options #2969

@0xNinshu

Description

@0xNinshu

Describe the bug

I am using the dotnet-interactive kernel with the #!pwsh magic command. When attempting to trigger suggestions (quick, trigger character, or control + space) the completion list will not be presented when attempting to get a list of options for function names, parameters and snippets. I have tried the dotnet-interactive Jupiter kernel the completion list shows.

It's taken me some time to make sure that I hadn't misconfigured something. I have tried reinstalling vscode, dotnet, the PowerShell extension, nothing is changing this issue. I initially thought this was just a limitation of polyglot notebooks. I changed the log level of the extension and switched the output panel to Polyglot Notebook: Logging and noticed the completion items were being logged when pressing ctrl + space to get a list of parameters for the function New-ModuleManifest. But the completion list is not being presented.


I have attached 2 log files that give the messages I could find, and a video of the issue below.

VSCode profile settings.json

settings.txt


Logs

output.log
20230505-00001.log


Issue Clip

DotNet-Interactive-PowerShell-Issue.mp4

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

 Version: 1.0.420401+9ca2fc354b82d355712f8bbc0c36194e36fe9ee7
 Library version: 1.0.0-beta.23204.1+9ca2fc354b82d355712f8bbc0c36194e36fe9ee7
 Build date: 2023-04-13T00:12:39.8874746Z

  • OS

    • [x ] Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Frontend

    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • [x ] Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions