Skip to content

Commit 9d04a64

Browse files
corbobrjmholt
authored andcommitted
Change resourceLangId to editorLangId so right-click works properly with unsaved files (#1475)
Right Click will now work with a unsaved file, or a file with non-standard PowerShell extension that is manually set to PowerShell Language
1 parent 7892603 commit 9d04a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@
160160
"menus": {
161161
"editor/context": [
162162
{
163-
"when": "resourceLangId == powershell",
163+
"when": "editorLangId == powershell",
164164
"command": "PowerShell.RunSelection",
165165
"group": "2_powershell"
166166
},
167167
{
168-
"when": "resourceLangId == powershell",
168+
"when": "editorLangId == powershell",
169169
"command": "PowerShell.OnlineHelp",
170170
"group": "2_powershell"
171171
}

0 commit comments

Comments
 (0)