You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS code will by default trigger IntelliSense when you start typing, however you can turn this off and only have it get triggered when certain characters are typed. This is controlled by the following settings:
This setting used to work just fine back in 2021 when I added $ as a trigger character: PowerShell/PowerShellEditorServices#1427 but I have no idea when it stopped working.
PowerShell Version
Name Value---- -----PSVersion 7.5.0-preview.3PSEdition CoreGitCommitId 7.5.0-preview.3OS Microsoft Windows 10.0.19045Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0Name : Visual Studio Code HostVersion : 2024.3.2InstanceId : 7aca87d3-2cd2-4ec6-984c-9d163813f6d5UI : System.Management.Automation.Internal.Host.InternalHostUserInterfaceCurrentCulture : da-DKCurrentUICulture : da-DKPrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxyDebuggerEnabled : TrueIsRunspacePushed : FalseRunspace : System.Management.Automation.Runspaces.LocalRunspace
Type in $ or Get- or $global: and notice how none of them trigger IntelliSense.
Type in "". or C:\ and notice that IntelliSense is triggered as expected.
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Summary
VS code will by default trigger IntelliSense when you start typing, however you can turn this off and only have it get triggered when certain characters are typed. This is controlled by the following settings:
If you set these settings and try to edit the VS code settings.json file you will see that IntelliSense is automatically triggered when you type in
"
but not when you type normal words, so it works exactly as you'd expect. In PowerShell the only trigger characters that work are.
and\
but there are more triggers defined in editor services: https://github.com/PowerShell/PowerShellEditorServices/blob/main/src/PowerShellEditorServices/Services/TextDocument/Handlers/CompletionHandler.cs#L56This setting used to work just fine back in 2021 when I added
$
as a trigger character: PowerShell/PowerShellEditorServices#1427 but I have no idea when it stopped working.PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
Configure the following VS code settings:
Type in
$
orGet-
or$global:
and notice how none of them trigger IntelliSense.Type in
"".
orC:\
and notice that IntelliSense is triggered as expected.Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: