提交 e668e32f 编写于 作者: I isidor

reintroduce editor.glyphMargin

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