Vscode-powershell: Custom tabexpansion tooltip shows in ISE but not VS Code

Created on 8 Jan 2020  路  5Comments  路  Source: PowerShell/vscode-powershell

ISE

image

VS Code

image

Script

function MyTestCompletion {
    param($wordToComplete, $commandAst)

    $commandTree = & {
            New-CommandTree build "Compile the current package" {
                New-CommandTree "--quiet" "output printed to stdout"
                New-CommandTree "--package" "Package to build (see `cargo help pkgid`)"
                New-CommandTree "--all" "for --workspace (deprecated)"
                New-CommandTree "-workspace" "all packages in the workspace"
                New-CommandTree "-exclude" "Exclude packages from the build"
        }
    }

    Get-CommandTreeCompletion $wordToComplete $commandAst $commandTree
}

Register-ArgumentCompleter -CommandName mytest -Native -ScriptBlock $function:MyTestCompletion
Area-UI ISE-Compatibility

Most helpful comment

I've got a fix out for this. ^

All 5 comments

@dfinke thanks for opening this issue, and providing the screenshots...it would be really helpful if you could also attach the logs so that we can see where the message is getting lost--instructions for how to do that are here

Here's the log, let me know if I need to provide other info.

vscode.log

I've got a fix out for this. ^

What version of the ext is this expected in? Tried in the latest, doesn't seem to work.

The next version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inthemedium picture inthemedium  路  3Comments

daviwil picture daviwil  路  4Comments

lukegriffith picture lukegriffith  路  3Comments

TheDanishDynamo picture TheDanishDynamo  路  3Comments

GQnzo picture GQnzo  路  3Comments