Skip to content

Commit

Permalink
chore: enable command for test folder and files
Browse files Browse the repository at this point in the history
  • Loading branch information
floralan committed Apr 20, 2022
1 parent 1b6004a commit 5e0cfad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/salesforcedx-vscode-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
},
{
"command": "sfdx.lightning.rename",
"when": "sfdx:project_opened && resource =~ /.*/(lwc|aura)/[^/]+(/[^/]+\\.(html|css|js|xml|svg|cmp|app|design|auradoc))?$/"
"when": "sfdx:project_opened && resource =~ /.*/(lwc|aura)/[^/]+(/([^/]+\\.(html|css|js|xml|svg|cmp|app|design|auradoc)|__tests__))?(/[^/]+\\.js)?$/"
}
],
"commandPalette": [
Expand Down

0 comments on commit 5e0cfad

Please sign in to comment.