|
126 | 126 | "title": "Apply Memory from File...", |
127 | 127 | "enablement": "memory-inspector.canWrite", |
128 | 128 | "category": "Memory" |
| 129 | + }, |
| 130 | + { |
| 131 | + "command": "memory-inspector.show-columns-options", |
| 132 | + "title": "Show Columns Visibility Options", |
| 133 | + "enablement": "optionsMenu && !showColumnsOptions", |
| 134 | + "category": "Memory" |
| 135 | + }, |
| 136 | + { |
| 137 | + "command": "memory-inspector.hide-columns-options", |
| 138 | + "title": "Hide Columns Visibility Options", |
| 139 | + "enablement": "optionsMenu && showColumnsOptions", |
| 140 | + "category": "Memory" |
| 141 | + }, |
| 142 | + { |
| 143 | + "command": "memory-inspector.show-memory-options", |
| 144 | + "title": "Show Memory Format Options", |
| 145 | + "enablement": "optionsMenu && !showMemoryOptions", |
| 146 | + "category": "Memory" |
| 147 | + }, |
| 148 | + { |
| 149 | + "command": "memory-inspector.hide-memory-options", |
| 150 | + "title": "Hide Memory Format Options", |
| 151 | + "enablement": "optionsMenu && showMemoryOptions", |
| 152 | + "category": "Memory" |
| 153 | + }, |
| 154 | + { |
| 155 | + "command": "memory-inspector.show-address-options", |
| 156 | + "title": "Show Address Format Options", |
| 157 | + "enablement": "optionsMenu && !showAddressOptions", |
| 158 | + "category": "Memory" |
| 159 | + }, |
| 160 | + { |
| 161 | + "command": "memory-inspector.hide-address-options", |
| 162 | + "title": "Hide Address Format Options", |
| 163 | + "enablement": "optionsMenu && showAddressOptions", |
| 164 | + "category": "Memory" |
| 165 | + }, |
| 166 | + { |
| 167 | + "command": "memory-inspector.show-refresh-options", |
| 168 | + "title": "Show Refresh Options", |
| 169 | + "enablement": "optionsMenu && !showRefreshOptions", |
| 170 | + "category": "Memory" |
| 171 | + }, |
| 172 | + { |
| 173 | + "command": "memory-inspector.hide-refresh-options", |
| 174 | + "title": "Hide Refresh Options", |
| 175 | + "enablement": "optionsMenu && showRefreshOptions", |
| 176 | + "category": "Memory" |
| 177 | + }, |
| 178 | + { |
| 179 | + "command": "memory-inspector.reset-display-options-to-debugger-defaults", |
| 180 | + "title": "Reset to Debugger Defaults", |
| 181 | + "enablement": "optionsMenu && hasDebuggerDefaults", |
| 182 | + "category": "Memory" |
| 183 | + }, |
| 184 | + { |
| 185 | + "command": "memory-inspector.reset-display-options", |
| 186 | + "title": "Reset to Defaults", |
| 187 | + "enablement": "optionsMenu", |
| 188 | + "category": "Memory" |
129 | 189 | } |
130 | 190 | ], |
131 | 191 | "menus": { |
|
183 | 243 | { |
184 | 244 | "command": "memory-inspector.toggle-variables-column", |
185 | 245 | "group": "a_display@1", |
186 | | - "when": "webviewId === memory-inspector.memory" |
| 246 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
187 | 247 | }, |
188 | 248 | { |
189 | 249 | "command": "memory-inspector.toggle-ascii-column", |
190 | 250 | "group": "a_display@2", |
191 | | - "when": "webviewId === memory-inspector.memory" |
| 251 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
192 | 252 | }, |
193 | 253 | { |
194 | 254 | "command": "memory-inspector.toggle-radix-prefix", |
195 | 255 | "group": "a_display@3", |
196 | | - "when": "webviewId === memory-inspector.memory" |
| 256 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
197 | 257 | }, |
198 | 258 | { |
199 | 259 | "command": "memory-inspector.store-file", |
200 | 260 | "group": "c_store-and-restore@1", |
201 | | - "when": "webviewId === memory-inspector.memory" |
| 261 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
202 | 262 | }, |
203 | 263 | { |
204 | 264 | "command": "memory-inspector.apply-file", |
205 | 265 | "group": "c_store-and-restore@2", |
206 | | - "when": "webviewId === memory-inspector.memory" |
| 266 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
207 | 267 | }, |
208 | 268 | { |
209 | 269 | "command": "memory-inspector.show-advanced-display-options", |
210 | 270 | "group": "z_more", |
211 | | - "when": "webviewId === memory-inspector.memory" |
| 271 | + "when": "webviewId === memory-inspector.memory && !optionsMenu" |
212 | 272 | }, |
213 | 273 | { |
214 | 274 | "command": "memory-inspector.go-to-value", |
215 | 275 | "group": "display@7", |
216 | | - "when": "webviewId === memory-inspector.memory && memory-inspector.variable.isPointer" |
| 276 | + "when": "webviewId === memory-inspector.memory && memory-inspector.variable.isPointer && !optionsMenu" |
| 277 | + }, |
| 278 | + { |
| 279 | + "command": "memory-inspector.reset-display-options-to-debugger-defaults", |
| 280 | + "group": "a_reset@1", |
| 281 | + "when": "webviewId === memory-inspector.memory && optionsMenu && hasDebuggerDefaults" |
| 282 | + }, |
| 283 | + { |
| 284 | + "command": "memory-inspector.reset-display-options", |
| 285 | + "group": "a_reset@2", |
| 286 | + "when": "webviewId === memory-inspector.memory && optionsMenu" |
| 287 | + }, |
| 288 | + { |
| 289 | + "command": "memory-inspector.show-columns-options", |
| 290 | + "group": "b_advancedOptions@1", |
| 291 | + "when": "webviewId === memory-inspector.memory && optionsMenu && !showColumnsOptions" |
| 292 | + }, |
| 293 | + { |
| 294 | + "command": "memory-inspector.hide-columns-options", |
| 295 | + "group": "b_advancedOptions@1", |
| 296 | + "when": "webviewId === memory-inspector.memory && optionsMenu && showColumnsOptions" |
| 297 | + }, |
| 298 | + { |
| 299 | + "command": "memory-inspector.show-memory-options", |
| 300 | + "group": "b_advancedOptions@2", |
| 301 | + "when": "webviewId === memory-inspector.memory && optionsMenu && !showMemoryOptions" |
| 302 | + }, |
| 303 | + { |
| 304 | + "command": "memory-inspector.hide-memory-options", |
| 305 | + "group": "b_advancedOptions@2", |
| 306 | + "when": "webviewId === memory-inspector.memory && optionsMenu && showMemoryOptions" |
| 307 | + }, |
| 308 | + { |
| 309 | + "command": "memory-inspector.show-address-options", |
| 310 | + "group": "b_advancedOptions@3", |
| 311 | + "when": "webviewId === memory-inspector.memory && optionsMenu && !showAddressOptions" |
| 312 | + }, |
| 313 | + { |
| 314 | + "command": "memory-inspector.hide-address-options", |
| 315 | + "group": "b_advancedOptions@3", |
| 316 | + "when": "webviewId === memory-inspector.memory && optionsMenu && showAddressOptions" |
| 317 | + }, |
| 318 | + { |
| 319 | + "command": "memory-inspector.show-refresh-options", |
| 320 | + "group": "b_advancedOptions@4", |
| 321 | + "when": "webviewId === memory-inspector.memory && optionsMenu && !showRefreshOptions" |
| 322 | + }, |
| 323 | + { |
| 324 | + "command": "memory-inspector.hide-refresh-options", |
| 325 | + "group": "b_advancedOptions@4", |
| 326 | + "when": "webviewId === memory-inspector.memory && optionsMenu && showRefreshOptions" |
217 | 327 | } |
218 | 328 | ] |
219 | 329 | }, |
|
407 | 517 | "type": "boolean", |
408 | 518 | "default": true, |
409 | 519 | "description": "Display the radix prefix (e.g., '0x' for hexadecimal, '0b' for binary) before memory addresses." |
| 520 | + }, |
| 521 | + "memory-inspector.allowSettingsExtension": { |
| 522 | + "type": "boolean", |
| 523 | + "default": true, |
| 524 | + "description": "Allow other extensions to overwrite the default memory display settings." |
410 | 525 | } |
411 | 526 | } |
412 | 527 | } |
|
0 commit comments