Skip to content

Snippets doesn't follow the new word separator standard #3404

Closed
@Schillman

Description

@Schillman

System Details Output

### VSCode version: 1.56.2 054a9295330880ed74ceaedda236253b4f39a335 x64

### VSCode extensions:
antfu.icons-carbon@0.2.4
eamodio.gitlens@11.4.1
formulahendry.code-runner@0.11.4
hashicorp.terraform@2.11.0
mohsen1.prettify-json@0.0.3
ms-python.python@2021.5.842923320
ms-toolsai.jupyter@2021.6.832593372
ms-vscode-remote.remote-ssh@0.65.4
ms-vscode-remote.remote-ssh-edit@0.65.6
ms-vscode-remote.vscode-remote-extensionpack@0.21.0
ms-vscode.azure-account@0.9.8
ms-vscode.azurecli@0.5.0
ms-vscode.powershell-preview@2021.5.0
ms-vsliveshare.vsliveshare@1.0.4360
msjsdiag.debugger-for-chrome@4.12.12
msjsdiag.debugger-for-edge@1.0.15
PKief.material-icon-theme@4.7.0
quicktype.quicktype@12.0.46
rangav.vscode-thunder-client@1.4.0
zhuangtongfa.material-theme@3.10.14


### PSES version: 2.4.2.0

### PowerShell version:

Name                           Value                                                                                                          
----                           -----                                                                                                          
PSVersion                      5.1.19041.1023                                                                                                 
PSEdition                      Desktop                                                                                                        
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                        
BuildVersion                   10.0.19041.1023                                                                                                
CLRVersion                     4.0.30319.42000                                                                                                
WSManStackVersion              3.0                                                                                                            
PSRemotingProtocolVersion      2.3                                                                                                            
SerializationVersion           1.1.0.1                                                                                                        

Issue Description

The Snippet behaviour still matches the old separators. It doesn't select the $ to be replaced when inserting a snippet.
image

Expected Behaviour

I would expect it to match the behaviour of the word separators by default for PowerShell files.

Actual Behaviour

When inserting a snippet, it should not only select the word in the variables, but the entire variable, including '$' as that follows the new standard.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions