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.

Feature Request: include language keywords in command completion results

See original GitHub issue

Summary of the new feature/enhancement

Include language keywords, such as ‘continue’, ‘switch’, ‘foreach’, etc… in with the command completions offered by intellisense/tab completion.

Proposed technical implementation details (optional)

I don’t yet know if its possible to restrict the keywords when the insertion point is not the first command in a pipeline, but there is already 1 case in the completion logic that has decided that foreach should not have an ampersand & (invoke) operator inserted before it (its actually in the completions because its an alias for ForEach-Object) because its more likely what the user wanted, but none of the other keywords get this treatment. Including the keywords would actually eliminate this special case.

I am sure somewhere there is a complete list of keywords in the code, I’m just not sure if there is anything to use as a tooltip text readily available.

I may experiment on this while working the other bugs out of the completion code.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
msftrncscommented, Jul 24, 2019

Thanks, @vexx32, sometimes I speak better computer than English. 😃

1reaction
SeeminglySciencecommented, Feb 27, 2023

Aside from complexity and demand not that I know of. It’s not exactly as simple as it first seems since you have to add logic for only returning a keyword completion result when it’s actually applicable and that branch of code doesn’t exist yet. That’s pretty minor, but still

Read more comments on GitHub >

github_iconTop Results From Across the Web

include language keywords in command completion results
Feature Request : include language keywords in command completion results · Summary · Jobs. backport · Run details. Usage · Workflow file.
Read more >
include language keywords in command completion results
Feature Request : include language keywords in command completion results · Summary · Jobs. reminder · Run details. Usage · Workflow file.
Read more >
about Language Keywords - PowerShell
Describes the keywords in the PowerShell scripting language. ... results of the Get-Member cmdlet, IntelliSense, and tab completion results.
Read more >
IntelliSense in Visual Studio Code
IntelliSense is a general term for various code editing features including: code completion, parameter info, quick info, and member lists.
Read more >
TestComplete Feature Requests
Currently, once the tests are executed in TestComplete, we can export the results and the summary into MHT format but not in Excel....
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