You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. */exportinterfaceIModelDecorationOverviewRulerOptions{/** * 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. */exportinterfaceIModelDecorationMinimapOptions{/** * 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.
Activity
Minimap: Render find match decorations, fixes microsoft#75216