提交 ea47e6a1 编写于 作者: A Alex Dima

Fixes #8412: Rename editor.indentGuides to editor.renderIndentGuides

上级 973c3bda
...@@ -24,7 +24,7 @@ export class IndentGuidesOverlay extends DynamicViewOverlay { ...@@ -24,7 +24,7 @@ export class IndentGuidesOverlay extends DynamicViewOverlay {
this._context = context; this._context = context;
this._lineHeight = this._context.configuration.editor.lineHeight; this._lineHeight = this._context.configuration.editor.lineHeight;
this._spaceWidth = this._context.configuration.editor.fontInfo.spaceWidth; this._spaceWidth = this._context.configuration.editor.fontInfo.spaceWidth;
this._enabled = this._context.configuration.editor.viewInfo.indentGuides; this._enabled = this._context.configuration.editor.viewInfo.renderIndentGuides;
this._renderResult = null; this._renderResult = null;
this._context.addEventHandler(this); this._context.addEventHandler(this);
...@@ -56,8 +56,8 @@ export class IndentGuidesOverlay extends DynamicViewOverlay { ...@@ -56,8 +56,8 @@ export class IndentGuidesOverlay extends DynamicViewOverlay {
if (e.fontInfo) { if (e.fontInfo) {
this._spaceWidth = this._context.configuration.editor.fontInfo.spaceWidth; this._spaceWidth = this._context.configuration.editor.fontInfo.spaceWidth;
} }
if (e.viewInfo.indentGuides) { if (e.viewInfo.renderIndentGuides) {
this._enabled = this._context.configuration.editor.viewInfo.indentGuides; this._enabled = this._context.configuration.editor.viewInfo.renderIndentGuides;
} }
return true; return true;
} }
......
...@@ -202,7 +202,7 @@ class InternalEditorOptionsHelper { ...@@ -202,7 +202,7 @@ class InternalEditorOptionsHelper {
stopRenderingLineAfter: stopRenderingLineAfter, stopRenderingLineAfter: stopRenderingLineAfter,
renderWhitespace: toBoolean(opts.renderWhitespace), renderWhitespace: toBoolean(opts.renderWhitespace),
renderControlCharacters: toBoolean(opts.renderControlCharacters), renderControlCharacters: toBoolean(opts.renderControlCharacters),
indentGuides: toBoolean(opts.indentGuides), renderIndentGuides: toBoolean(opts.renderIndentGuides),
scrollbar: scrollbar, scrollbar: scrollbar,
}); });
...@@ -697,11 +697,11 @@ let editorConfiguration:IConfigurationNode = { ...@@ -697,11 +697,11 @@ let editorConfiguration:IConfigurationNode = {
default: DefaultConfig.editor.renderControlCharacters, default: DefaultConfig.editor.renderControlCharacters,
description: nls.localize('renderControlCharacters', "Controls whether the editor should render control characters") description: nls.localize('renderControlCharacters', "Controls whether the editor should render control characters")
}, },
// 'editor.indentGuides': { 'editor.renderIndentGuides': {
// 'type': 'boolean', 'type': 'boolean',
// default: DefaultConfig.editor.indentGuides, default: DefaultConfig.editor.renderIndentGuides,
// description: nls.localize('indentGuides', "Controls whether the editor should render indent guides") description: nls.localize('renderIndentGuides', "Controls whether the editor should render indent guides")
// }, },
'editor.referenceInfos' : { 'editor.referenceInfos' : {
'type': 'boolean', 'type': 'boolean',
'default': DefaultConfig.editor.referenceInfos, 'default': DefaultConfig.editor.referenceInfos,
......
...@@ -89,7 +89,7 @@ class ConfigClass implements IConfiguration { ...@@ -89,7 +89,7 @@ class ConfigClass implements IConfiguration {
folding: true, folding: true,
renderWhitespace: false, renderWhitespace: false,
renderControlCharacters: false, renderControlCharacters: false,
indentGuides: false, renderIndentGuides: false,
useTabStops: true, useTabStops: true,
fontFamily: ( fontFamily: (
......
...@@ -425,7 +425,7 @@ export interface IEditorOptions { ...@@ -425,7 +425,7 @@ export interface IEditorOptions {
* Enable rendering of indent guides. * Enable rendering of indent guides.
* Defaults to true. * Defaults to true.
*/ */
indentGuides?: boolean; renderIndentGuides?: boolean;
/** /**
* Inserting and deleting whitespace follows tab stops. * Inserting and deleting whitespace follows tab stops.
*/ */
...@@ -618,7 +618,7 @@ export class InternalEditorViewOptions { ...@@ -618,7 +618,7 @@ export class InternalEditorViewOptions {
stopRenderingLineAfter: number; stopRenderingLineAfter: number;
renderWhitespace: boolean; renderWhitespace: boolean;
renderControlCharacters: boolean; renderControlCharacters: boolean;
indentGuides: boolean; renderIndentGuides: boolean;
scrollbar:InternalEditorScrollbarOptions; scrollbar:InternalEditorScrollbarOptions;
/** /**
...@@ -644,7 +644,7 @@ export class InternalEditorViewOptions { ...@@ -644,7 +644,7 @@ export class InternalEditorViewOptions {
stopRenderingLineAfter: number; stopRenderingLineAfter: number;
renderWhitespace: boolean; renderWhitespace: boolean;
renderControlCharacters: boolean; renderControlCharacters: boolean;
indentGuides: boolean; renderIndentGuides: boolean;
scrollbar:InternalEditorScrollbarOptions; scrollbar:InternalEditorScrollbarOptions;
}) { }) {
this.theme = String(source.theme); this.theme = String(source.theme);
...@@ -666,7 +666,7 @@ export class InternalEditorViewOptions { ...@@ -666,7 +666,7 @@ export class InternalEditorViewOptions {
this.stopRenderingLineAfter = source.stopRenderingLineAfter|0; this.stopRenderingLineAfter = source.stopRenderingLineAfter|0;
this.renderWhitespace = Boolean(source.renderWhitespace); this.renderWhitespace = Boolean(source.renderWhitespace);
this.renderControlCharacters = Boolean(source.renderControlCharacters); this.renderControlCharacters = Boolean(source.renderControlCharacters);
this.indentGuides = Boolean(source.indentGuides); this.renderIndentGuides = Boolean(source.renderIndentGuides);
this.scrollbar = source.scrollbar.clone(); this.scrollbar = source.scrollbar.clone();
} }
...@@ -722,7 +722,7 @@ export class InternalEditorViewOptions { ...@@ -722,7 +722,7 @@ export class InternalEditorViewOptions {
&& this.stopRenderingLineAfter === other.stopRenderingLineAfter && this.stopRenderingLineAfter === other.stopRenderingLineAfter
&& this.renderWhitespace === other.renderWhitespace && this.renderWhitespace === other.renderWhitespace
&& this.renderControlCharacters === other.renderControlCharacters && this.renderControlCharacters === other.renderControlCharacters
&& this.indentGuides === other.indentGuides && this.renderIndentGuides === other.renderIndentGuides
&& this.scrollbar.equals(other.scrollbar) && this.scrollbar.equals(other.scrollbar)
); );
} }
...@@ -751,7 +751,7 @@ export class InternalEditorViewOptions { ...@@ -751,7 +751,7 @@ export class InternalEditorViewOptions {
stopRenderingLineAfter: this.stopRenderingLineAfter !== newOpts.stopRenderingLineAfter, stopRenderingLineAfter: this.stopRenderingLineAfter !== newOpts.stopRenderingLineAfter,
renderWhitespace: this.renderWhitespace !== newOpts.renderWhitespace, renderWhitespace: this.renderWhitespace !== newOpts.renderWhitespace,
renderControlCharacters: this.renderControlCharacters !== newOpts.renderControlCharacters, renderControlCharacters: this.renderControlCharacters !== newOpts.renderControlCharacters,
indentGuides: this.indentGuides !== newOpts.indentGuides, renderIndentGuides: this.renderIndentGuides !== newOpts.renderIndentGuides,
scrollbar: (!this.scrollbar.equals(newOpts.scrollbar)), scrollbar: (!this.scrollbar.equals(newOpts.scrollbar)),
}; };
} }
...@@ -784,7 +784,7 @@ export interface IViewConfigurationChangedEvent { ...@@ -784,7 +784,7 @@ export interface IViewConfigurationChangedEvent {
stopRenderingLineAfter: boolean; stopRenderingLineAfter: boolean;
renderWhitespace: boolean; renderWhitespace: boolean;
renderControlCharacters: boolean; renderControlCharacters: boolean;
indentGuides: boolean; renderIndentGuides: boolean;
scrollbar: boolean; scrollbar: boolean;
} }
......
...@@ -1277,7 +1277,7 @@ declare module monaco.editor { ...@@ -1277,7 +1277,7 @@ declare module monaco.editor {
* Enable rendering of indent guides. * Enable rendering of indent guides.
* Defaults to true. * Defaults to true.
*/ */
indentGuides?: boolean; renderIndentGuides?: boolean;
/** /**
* Inserting and deleting whitespace follows tab stops. * Inserting and deleting whitespace follows tab stops.
*/ */
...@@ -1369,7 +1369,7 @@ declare module monaco.editor { ...@@ -1369,7 +1369,7 @@ declare module monaco.editor {
stopRenderingLineAfter: number; stopRenderingLineAfter: number;
renderWhitespace: boolean; renderWhitespace: boolean;
renderControlCharacters: boolean; renderControlCharacters: boolean;
indentGuides: boolean; renderIndentGuides: boolean;
scrollbar: InternalEditorScrollbarOptions; scrollbar: InternalEditorScrollbarOptions;
} }
...@@ -1393,7 +1393,7 @@ declare module monaco.editor { ...@@ -1393,7 +1393,7 @@ declare module monaco.editor {
stopRenderingLineAfter: boolean; stopRenderingLineAfter: boolean;
renderWhitespace: boolean; renderWhitespace: boolean;
renderControlCharacters: boolean; renderControlCharacters: boolean;
indentGuides: boolean; renderIndentGuides: boolean;
scrollbar: boolean; scrollbar: boolean;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册