Skip to content

Commit

Permalink
feature: add option to disable overviewRuler
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSiefke committed Jul 22, 2024
1 parent 54f90d6 commit cfafb19
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/vs/editor/common/config/editorOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ export interface IEditorOptions {
* Defaults to `true`.
*/
overviewRulerBorder?: boolean;
/**
* Whether or not overviewRuler is enabled.
* Defaults to `true`.
*/
overviewRulerEnabled?: boolean;
/**
* Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'.
* Defaults to 'blink'.
Expand Down Expand Up @@ -5398,6 +5403,7 @@ export const enum EditorOption {
multiCursorLimit,
occurrencesHighlight,
overviewRulerBorder,
overviewRulerEnabled,
overviewRulerLanes,
padding,
pasteAs,
Expand Down Expand Up @@ -5915,6 +5921,10 @@ export const EditorOptions = {
EditorOption.overviewRulerBorder, 'overviewRulerBorder', true,
{ description: nls.localize('overviewRulerBorder', "Controls whether a border should be drawn around the overview ruler.") }
)),
overviewRulerEnabled: register(new EditorBooleanOption(
EditorOption.overviewRulerEnabled, 'overviewRulerEnabled', true,
{ description: nls.localize('overviewRulerEnabled', "Controls whether the overview ruler is enabled.") }
)),
overviewRulerLanes: register(new EditorIntOption(
EditorOption.overviewRulerLanes, 'overviewRulerLanes',
3, 0, 3
Expand Down

0 comments on commit cfafb19

Please sign in to comment.