-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Closed
Labels
editor-minimapCode/Text minimap widget issuesCode/Text minimap widget issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplan
Milestone
Description
Support rendering text decorations in the minimap, beginning with search results. We can add a new option to decorations, similar to overviewRuler
in IModelDecorationOptions
:
/**
* Options for rendering a model decoration in the overview ruler.
*/
export interface IModelDecorationOverviewRulerOptions {
/**
* CSS color to render in the overview ruler.
* e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
*/
color: string | ThemeColor | undefined;
/**
* CSS color to render in the overview ruler.
* e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
*/
darkColor?: string | ThemeColor;
/**
* The position in the overview ruler.
*/
position: OverviewRulerLane;
}
The new optional minimap
property could look like:
/**
* Options for rendering a model decoration in the overview ruler.
*/
export interface IModelDecorationMinimapOptions {
/**
* CSS color to render in the minimap.
* e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
*/
color: string | ThemeColor | undefined;
/**
* CSS color to render in the minimap.
* e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
*/
darkColor?: string | ThemeColor;
/**
* The position in the minimap.
*/
position: MinimapPosition; // 'Gutter' or 'Text', i.e. either drawn on the left side of the minimap or using the decoration position to draw it on a specific text range
}
The find widget can then set this property for its decorations, and the minimap can read the decorations from its text model.
Metadata
Metadata
Assignees
Labels
editor-minimapCode/Text minimap widget issuesCode/Text minimap widget issuesfeature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplan