Skip to content

Commit fc504f3

Browse files
committed
Fix when clauses for Emmet commands
1 parent 8bb5c7a commit fc504f3

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

extensions/emmet/package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -422,91 +422,91 @@
422422
"commandPalette": [
423423
{
424424
"command": "editor.emmet.action.wrapWithAbbreviation",
425-
"when": "resourceScheme == file"
425+
"when": "!activeEditorIsReadonly"
426426
},
427427
{
428428
"command": "editor.emmet.action.removeTag",
429-
"when": "resourceScheme == file"
429+
"when": "!activeEditorIsReadonly"
430430
},
431431
{
432432
"command": "editor.emmet.action.updateTag",
433-
"when": "resourceScheme == file"
433+
"when": "!activeEditorIsReadonly"
434434
},
435435
{
436436
"command": "editor.emmet.action.matchTag",
437-
"when": "resourceScheme == file"
437+
"when": "!activeEditorIsReadonly"
438438
},
439439
{
440440
"command": "editor.emmet.action.balanceIn",
441-
"when": "resourceScheme == file"
441+
"when": "!activeEditorIsReadonly"
442442
},
443443
{
444444
"command": "editor.emmet.action.balanceOut",
445-
"when": "resourceScheme == file"
445+
"when": "!activeEditorIsReadonly"
446446
},
447447
{
448448
"command": "editor.emmet.action.prevEditPoint",
449-
"when": "resourceScheme == file"
449+
"when": "!activeEditorIsReadonly"
450450
},
451451
{
452452
"command": "editor.emmet.action.nextEditPoint",
453-
"when": "resourceScheme == file"
453+
"when": "!activeEditorIsReadonly"
454454
},
455455
{
456456
"command": "editor.emmet.action.mergeLines",
457-
"when": "resourceScheme == file"
457+
"when": "!activeEditorIsReadonly"
458458
},
459459
{
460460
"command": "editor.emmet.action.selectPrevItem",
461-
"when": "resourceScheme == file"
461+
"when": "!activeEditorIsReadonly"
462462
},
463463
{
464464
"command": "editor.emmet.action.selectNextItem",
465-
"when": "resourceScheme == file"
465+
"when": "!activeEditorIsReadonly"
466466
},
467467
{
468468
"command": "editor.emmet.action.splitJoinTag",
469-
"when": "resourceScheme == file"
469+
"when": "!activeEditorIsReadonly"
470470
},
471471
{
472472
"command": "editor.emmet.action.toggleComment",
473-
"when": "resourceScheme == file"
473+
"when": "!activeEditorIsReadonly"
474474
},
475475
{
476476
"command": "editor.emmet.action.evaluateMathExpression",
477-
"when": "resourceScheme == file"
477+
"when": "!activeEditorIsReadonly"
478478
},
479479
{
480480
"command": "editor.emmet.action.updateImageSize",
481-
"when": "resourceScheme == file"
481+
"when": "!activeEditorIsReadonly"
482482
},
483483
{
484484
"command": "editor.emmet.action.incrementNumberByOneTenth",
485-
"when": "resourceScheme == file"
485+
"when": "!activeEditorIsReadonly"
486486
},
487487
{
488488
"command": "editor.emmet.action.incrementNumberByOne",
489-
"when": "resourceScheme == file"
489+
"when": "!activeEditorIsReadonly"
490490
},
491491
{
492492
"command": "editor.emmet.action.incrementNumberByTen",
493-
"when": "resourceScheme == file"
493+
"when": "!activeEditorIsReadonly"
494494
},
495495
{
496496
"command": "editor.emmet.action.decrementNumberByOneTenth",
497-
"when": "resourceScheme == file"
497+
"when": "!activeEditorIsReadonly"
498498
},
499499
{
500500
"command": "editor.emmet.action.decrementNumberByOne",
501-
"when": "resourceScheme == file"
501+
"when": "!activeEditorIsReadonly"
502502
},
503503
{
504504
"command": "editor.emmet.action.decrementNumberByTen",
505-
"when": "resourceScheme == file"
505+
"when": "!activeEditorIsReadonly"
506506
},
507507
{
508508
"command": "editor.emmet.action.reflectCSSValue",
509-
"when": "resourceScheme == file"
509+
"when": "!activeEditorIsReadonly"
510510
}
511511
]
512512
}

0 commit comments

Comments
 (0)