question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom tabexpansion tooltip shows in ISE but not VS Code

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
TylerLeonhardtcommented, Jan 10, 2020

I’ve got a fix out for this. ^

1reaction
dfinkecommented, Jan 10, 2020

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

vscode.log

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode not showing @returns on tooltip's function description
I'm using VSCode, with Node.js and let's say I have a function: /** * Check if a user is an admin. * *...
Read more >
How to replicate the ISE experience in Visual Studio Code
To do this, open the command palette ( F1 OR Ctrl + Shift + P OR Cmd + Shift + P on macOS)...
Read more >
PowerShell TabCompletion++ or TabCompletion
This module includes the custom tab completers for some PowerShell which don't have them and some for legacy programs. Think about that for...
Read more >
Chapter 15. The PowerShell ISE and debugger
The PowerShell ISE editor is built on the same editor control used in recent versions of Microsoft Visual Studio and the Expression Blend...
Read more >
PSFramework.psm1 0.10.29.160 - PowerShell Gallery
Major -lt 6) -or ($PSVersionTable. ... End it here, do not load compiled code below ... The tooltip to show in tooltip-aware hosts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found