|
126 | 126 | "title": "Apply Memory from File...", |
127 | 127 | "enablement": "memory-inspector.canWrite", |
128 | 128 | "category": "Memory" |
| 129 | + }, |
| 130 | + { |
| 131 | + "command": "memory-inspector.reset-display-options-to-debugger-defaults", |
| 132 | + "title": "Reset to Debugger Defaults", |
| 133 | + "enablement": "optionsMenu && hasDebuggerDefaults", |
| 134 | + "category": "Memory" |
| 135 | + }, |
| 136 | + { |
| 137 | + "command": "memory-inspector.reset-display-options", |
| 138 | + "title": "Reset to Defaults", |
| 139 | + "enablement": "optionsMenu", |
| 140 | + "category": "Memory" |
129 | 141 | } |
130 | 142 | ], |
131 | 143 | "menus": { |
|
183 | 195 | { |
184 | 196 | "command": "memory-inspector.toggle-variables-column", |
185 | 197 | "group": "a_display@1", |
186 | | - "when": "webviewId === memory-inspector.memory" |
| 198 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
187 | 199 | }, |
188 | 200 | { |
189 | 201 | "command": "memory-inspector.toggle-ascii-column", |
190 | 202 | "group": "a_display@2", |
191 | | - "when": "webviewId === memory-inspector.memory" |
| 203 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
192 | 204 | }, |
193 | 205 | { |
194 | 206 | "command": "memory-inspector.toggle-radix-prefix", |
195 | 207 | "group": "a_display@3", |
196 | | - "when": "webviewId === memory-inspector.memory" |
| 208 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
197 | 209 | }, |
198 | 210 | { |
199 | 211 | "command": "memory-inspector.store-file", |
200 | 212 | "group": "c_store-and-restore@1", |
201 | | - "when": "webviewId === memory-inspector.memory" |
| 213 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
202 | 214 | }, |
203 | 215 | { |
204 | 216 | "command": "memory-inspector.apply-file", |
205 | 217 | "group": "c_store-and-restore@2", |
206 | | - "when": "webviewId === memory-inspector.memory" |
| 218 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
207 | 219 | }, |
208 | 220 | { |
209 | 221 | "command": "memory-inspector.show-advanced-display-options", |
210 | 222 | "group": "z_more", |
211 | | - "when": "webviewId === memory-inspector.memory" |
| 223 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
212 | 224 | }, |
213 | 225 | { |
214 | 226 | "command": "memory-inspector.go-to-value", |
215 | 227 | "group": "display@7", |
216 | | - "when": "webviewId === memory-inspector.memory && memory-inspector.variable.isPointer" |
| 228 | + "when": "webviewId === memory-inspector.memory && memory-inspector.variable.isPointer && !optionsMenu" |
| 229 | + }, |
| 230 | + { |
| 231 | + "command": "memory-inspector.reset-display-options-to-debugger-defaults", |
| 232 | + "group": "a_reset@1", |
| 233 | + "when": "webviewId === memory-inspector.memory && optionsMenu && hasDebuggerDefaults" |
| 234 | + }, |
| 235 | + { |
| 236 | + "command": "memory-inspector.reset-display-options", |
| 237 | + "group": "a_reset@2", |
| 238 | + "when": "webviewId === memory-inspector.memory && optionsMenu" |
217 | 239 | } |
218 | 240 | ] |
219 | 241 | }, |
|
407 | 429 | "type": "boolean", |
408 | 430 | "default": true, |
409 | 431 | "description": "Display the radix prefix (e.g., '0x' for hexadecimal, '0b' for binary) before memory addresses." |
| 432 | + }, |
| 433 | + "memory-inspector.allowDebuggerOverwriteSettings": { |
| 434 | + "type": "boolean", |
| 435 | + "default": true, |
| 436 | + "description": "Allow debuggers to overwrite the default memory display settings." |
410 | 437 | } |
411 | 438 | } |
412 | 439 | } |
|
0 commit comments