|
78 | 78 | "editor/title": [ |
79 | 79 | { |
80 | 80 | "command": "markdown.showPreviewToSide", |
81 | | - "when": "editorLangId == markdown", |
| 81 | + "when": "editorLangId == markdown && !notebookEditorFocused", |
82 | 82 | "alt": "markdown.showPreview", |
83 | 83 | "group": "navigation" |
84 | 84 | }, |
|
120 | 120 | "commandPalette": [ |
121 | 121 | { |
122 | 122 | "command": "markdown.showPreview", |
123 | | - "when": "editorLangId == markdown", |
| 123 | + "when": "editorLangId == markdown && !notebookEditorFocused", |
124 | 124 | "group": "navigation" |
125 | 125 | }, |
126 | 126 | { |
127 | 127 | "command": "markdown.showPreviewToSide", |
128 | | - "when": "editorLangId == markdown", |
| 128 | + "when": "editorLangId == markdown && !notebookEditorFocused", |
129 | 129 | "group": "navigation" |
130 | 130 | }, |
131 | 131 | { |
132 | 132 | "command": "markdown.showLockedPreviewToSide", |
133 | | - "when": "editorLangId == markdown", |
| 133 | + "when": "editorLangId == markdown && !notebookEditorFocused", |
134 | 134 | "group": "navigation" |
135 | 135 | }, |
136 | 136 | { |
|
140 | 140 | }, |
141 | 141 | { |
142 | 142 | "command": "markdown.showPreviewSecuritySelector", |
143 | | - "when": "editorLangId == markdown" |
| 143 | + "when": "editorLangId == markdown && !notebookEditorFocused" |
144 | 144 | }, |
145 | 145 | { |
146 | 146 | "command": "markdown.showPreviewSecuritySelector", |
|
152 | 152 | }, |
153 | 153 | { |
154 | 154 | "command": "markdown.preview.refresh", |
155 | | - "when": "editorLangId == markdown" |
| 155 | + "when": "editorLangId == markdown && !notebookEditorFocused" |
156 | 156 | }, |
157 | 157 | { |
158 | 158 | "command": "markdown.preview.refresh", |
|
165 | 165 | "command": "markdown.showPreview", |
166 | 166 | "key": "shift+ctrl+v", |
167 | 167 | "mac": "shift+cmd+v", |
168 | | - "when": "editorLangId == markdown" |
| 168 | + "when": "editorLangId == markdown && !notebookEditorFocused" |
169 | 169 | }, |
170 | 170 | { |
171 | 171 | "command": "markdown.showPreviewToSide", |
172 | 172 | "key": "ctrl+k v", |
173 | 173 | "mac": "cmd+k v", |
174 | | - "when": "editorLangId == markdown" |
| 174 | + "when": "editorLangId == markdown && !notebookEditorFocused" |
175 | 175 | } |
176 | 176 | ], |
177 | 177 | "configuration": { |
|
0 commit comments