提交 e668e32f 编写于 作者: I isidor

reintroduce editor.glyphMargin

fixes #13212
上级 a549c5c4
...@@ -852,6 +852,11 @@ let editorConfiguration: IConfigurationNode = { ...@@ -852,6 +852,11 @@ let editorConfiguration: IConfigurationNode = {
'default': DefaultConfig.editor.folding, 'default': DefaultConfig.editor.folding,
'description': nls.localize('folding', "Controls whether the editor has code folding enabled") 'description': nls.localize('folding', "Controls whether the editor has code folding enabled")
}, },
'editor.glyphMargin': {
'type': 'boolean',
'default': DefaultConfig.editor.glyphMargin,
'description': nls.localize('glyphMargin', "Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")
},
'editor.useTabStops': { 'editor.useTabStops': {
'type': 'boolean', 'type': 'boolean',
'default': DefaultConfig.editor.useTabStops, 'default': DefaultConfig.editor.useTabStops,
......
...@@ -43,7 +43,7 @@ class ConfigClass implements IConfiguration { ...@@ -43,7 +43,7 @@ class ConfigClass implements IConfiguration {
lineNumbers: 'on', lineNumbers: 'on',
selectOnLineNumbers: true, selectOnLineNumbers: true,
lineNumbersMinChars: 5, lineNumbersMinChars: 5,
glyphMargin: false, glyphMargin: true,
lineDecorationsWidth: 10, lineDecorationsWidth: 10,
revealHorizontalRightPadding: 30, revealHorizontalRightPadding: 30,
roundedSelection: true, roundedSelection: true,
......
...@@ -221,7 +221,7 @@ export interface IEditorOptions { ...@@ -221,7 +221,7 @@ export interface IEditorOptions {
lineNumbersMinChars?: number; lineNumbersMinChars?: number;
/** /**
* Enable the rendering of the glyph margin. * Enable the rendering of the glyph margin.
* Defaults to false. * Defaults to true.
*/ */
glyphMargin?: boolean; glyphMargin?: boolean;
/** /**
......
...@@ -1085,7 +1085,7 @@ declare module monaco.editor { ...@@ -1085,7 +1085,7 @@ declare module monaco.editor {
lineNumbersMinChars?: number; lineNumbersMinChars?: number;
/** /**
* Enable the rendering of the glyph margin. * Enable the rendering of the glyph margin.
* Defaults to false. * Defaults to true.
*/ */
glyphMargin?: boolean; glyphMargin?: boolean;
/** /**
......
...@@ -118,7 +118,6 @@ export abstract class BaseTextEditor extends BaseEditor { ...@@ -118,7 +118,6 @@ export abstract class BaseTextEditor extends BaseEditor {
protected getCodeEditorOptions(): IEditorOptions { protected getCodeEditorOptions(): IEditorOptions {
return { return {
overviewRulerLanes: 3, overviewRulerLanes: 3,
glyphMargin: true,
lineNumbersMinChars: 3, lineNumbersMinChars: 3,
theme: this.themeService.getColorTheme() theme: this.themeService.getColorTheme()
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册