diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5e973d..11117adb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - [#878](https://github.com/estruyf/vscode-front-matter/issues/878): Allow the `select all` button to work on other pages when there is a selection present - [#882](https://github.com/estruyf/vscode-front-matter/issues/882): Dynamic evaluation of the `node` executable path +- [#884](https://github.com/estruyf/vscode-front-matter/issues/884): Hide WYSIWYG actions when the file is in git diff mode ### 🐞 Fixes diff --git a/package.json b/package.json index 98026e38..747b6d01 100644 --- a/package.json +++ b/package.json @@ -2421,32 +2421,32 @@ "editor/title": [{ "command": "frontMatter.markup.heading", "group": "navigation@-133", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.bold", "group": "navigation@-132", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.italic", "group": "navigation@-131", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.hyperlink", "group": "navigation@-130", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.insertSnippet", "group": "navigation@-129", - "when": "frontMatter:file:isValid == true && frontMatter:dashboard:snippets:enabled" + "when": "frontMatter:file:isValid == true && frontMatter:dashboard:snippets:enabled && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.insertMedia", "group": "navigation@-128", - "when": "frontMatter:file:isValid == true" + "when": "frontMatter:file:isValid == true && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.i18n.createOrOpen", @@ -2456,37 +2456,37 @@ { "command": "frontMatter.markup.options", "group": "navigation@-126", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.orderedlist", "group": "1_markup@1", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.unorderedlist", "group": "1_markup@2", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.tasklist", "group": "1_markup@3", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.code", "group": "1_markup@4", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.codeblock", "group": "1_markup@5", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.markup.blockquote", "group": "1_markup@6", - "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg" + "when": "frontMatter:file:isValid == true && frontMatter:markdown:wysiwyg && activeEditor == 'workbench.editors.files.textFileEditor'" }, { "command": "frontMatter.dashboard",