From 0ac1032a5fa3b4dec98f834211d355633ff550a3 Mon Sep 17 00:00:00 2001 From: Aaron Bockover Date: Thu, 20 Jun 2019 13:49:24 -0400 Subject: Sync with vs-editor-core@8ff5248b --- .../Text/Def/TextUI/EditorOptions/ViewOptions.cs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor/Text/Def/TextUI/EditorOptions/ViewOptions.cs b/src/Editor/Text/Def/TextUI/EditorOptions/ViewOptions.cs index 38457c4..3af982d 100644 --- a/src/Editor/Text/Def/TextUI/EditorOptions/ViewOptions.cs +++ b/src/Editor/Text/Def/TextUI/EditorOptions/ViewOptions.cs @@ -499,6 +499,12 @@ namespace Microsoft.VisualStudio.Text.Editor /// public static readonly EditorOptionKey ShouldMoveCaretOnSelectAllId = new EditorOptionKey(ShouldMoveCaretOnSelectAllName); public const string ShouldMoveCaretOnSelectAllName = "TextView/ShouldMoveCaretOnSelectAll"; + + /// + /// Defines where vertical rulers, if any, are to be drawn in the editor. + /// + public const string VerticalRulersName = "TextView/VerticalRulers"; + public static readonly EditorOptionKey VerticalRulersId = new EditorOptionKey(VerticalRulersName); #endregion } @@ -1374,4 +1380,15 @@ namespace Microsoft.VisualStudio.Text.Editor /// public override EditorOptionKey Key => DefaultTextViewOptions.ShouldMoveCaretOnSelectAllId; } -} + + /// + /// Determines whether to display the vertical ruler or not. + /// + [Export(typeof(EditorOptionDefinition))] + [Name(DefaultTextViewOptions.VerticalRulersName)] + internal sealed class VerticalRulersOption : EditorOptionDefinition + { + public override int[] Default => Array.Empty(); + public override EditorOptionKey Key => DefaultTextViewOptions.VerticalRulersId; + } +} \ No newline at end of file -- cgit v1.2.3