Skip to content

Commit 6a0ce96

Browse files
TewanStefanH-AT
authored andcommitted
Prevent qc and caption compile buttons from showing on unsaved files and make use of resourceLangId instead of editorLangId
1 parent 2f6bbb8 commit 6a0ce96

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
@@ -267,12 +267,12 @@
267267
"menus": {
268268
"editor/title": [
269269
{
270-
"when": "editorLangId == captions",
270+
"when": "resourceLangId == captions && resourceScheme == 'file'",
271271
"command": "captions.compile",
272272
"group": "navigation"
273273
},
274274
{
275-
"when": "editorLangId == qc",
275+
"when": "resourceLangId == qc && resourceScheme == 'file'",
276276
"command": "mdl.compile",
277277
"group": "navigation"
278278
}

0 commit comments

Comments
 (0)