-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: Terminal PowerShell Intellisense #223130
Comments
I am not sure if I setup my environment correctly to test this plan item. I installed powershell on MacOS, then opened an integrated powershell in VS Code. I was typing Screen.Recording.2024-07-23.at.10.52.38.mov |
FYI what @aiday-mar was seeing is ghost text for history that is provided by pwsh itself, not us. So this feature is unrelated: |
Hmm. I can't seem to get completions on linux. @Tyriar do you know what I could be doing wrong? |
Currently blocked on this due to the problem above, which might be fixed by #223374 in the next release. |
Refs: #154662, #221977, #223063, #222408, #222302, #222068
Complexity: 5
Create Issue
Setup
"terminal.integrated.suggest.enabled": true
"terminal.integrated.shellIntegration.enabled": true
(default)"terminal.integrated.developer.devMode": true
. This is a hidden setting which enables this status bar item that shows VS Code's understanding of the prompt.To make sure everything is working, try open a pwsh terminal and make sure you see this circle in the gutter, that means that shell integration is working correctly:
You should be able to then type any character and an intellisense popup should appear:
When it's shown up is driven by
terminal.integrated.suggest.quickSuggestions
andterminal.integrated.suggest.suggestOnTriggerCharacters
, but can also be manually invoked with ctrl+space.Diagnostics
The dev mode status bar is useful to include in issue reports where the problem is likely caused by a bad prompt understanding:
Also when completions are incorrect the Pty Host output trace log is useful:
Test
This iteration saw a lot of changes to our experimental PowerShell intellisense:
Please try use the terminal with the feature enabled and see where it's good, where it gets in the way and test some of the improvements mentioned below.
cd <path>
experience:/
or\
is added to the end of suggestions such that they request completions immediately after accepting./
and\
are filtered the sameterminal.integrated.suggest.runOnEnter
setting which configures whether pressing enter will execute the command or just complete.Terminal: Clear Suggest Cache
command or just toggle thesuggest.enabled
setting.git
completions (terminal.integrated.suggest.builtinCompletions
)code
andcode-insiders
completions (terminal.integrated.suggest.builtinCompletions
)The text was updated successfully, but these errors were encountered: