-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable extenders to overwrite default settings
Extenders can use the `AdapterCapabilities` to specify their own default settings, including the visible columns (see `MemoryDisplaySettings` interface). If an extension specifies such settings for a specific debug session (or type), those settings take priority over the user's VS Code settings of the Memory Inspector. To indicate that default settings are overwritten by an extension, an additional message is shown in the hover of the reset button in the options overlay. Extenders can specify this message to give more specific reasons for overwriting the settings. Users can prevent extenders from overwriting the default settings via a dedicated VS Code setting (`allowSettingsExtension`). Fixes #77
- Loading branch information
Showing
12 changed files
with
150 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/******************************************************************************** | ||
* Copyright (C) 2024 EclipseSource and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
|
||
import { Endianness, Radix } from './memory-range'; | ||
|
||
/** Specifies the settings for displaying memory addresses in the memory data table. */ | ||
export interface MemoryAddressDisplaySettings { | ||
addressPadding: AddressPadding; | ||
addressRadix: Radix; | ||
showRadixPrefix: boolean; | ||
} | ||
|
||
export type AddressPadding = 'Min' | 0 | 32 | 64; | ||
|
||
/** Specifies the settings for displaying memory data in the memory data table, including the memory addresses. */ | ||
export interface MemoryDataDisplaySettings extends MemoryAddressDisplaySettings { | ||
bytesPerMau: number; | ||
mausPerGroup: number; | ||
groupsPerRow: 'Autofit' | number; | ||
endianness: Endianness; | ||
scrollingBehavior: ScrollingBehavior; | ||
} | ||
|
||
export type ScrollingBehavior = 'Paginate' | 'Grow' | 'Auto-Append'; | ||
|
||
/** Specifies the display settings of the memory data table, including the memory data and addresses. */ | ||
export interface MemoryDisplaySettings extends MemoryDataDisplaySettings { | ||
visibleColumns: string[]; | ||
} | ||
|
||
/** An extender's contribution to the `MemoryDisplaySettings` via the `AdapterCapabilities`. */ | ||
export interface MemoryDisplaySettingsContribution { | ||
message?: string; | ||
settings?: Partial<MemoryDisplaySettings>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.