Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
ea47e6a1
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ea47e6a1
编写于
6月 29, 2016
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes #8412: Rename editor.indentGuides to editor.renderIndentGuides
上级
973c3bda
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
20 addition
and
20 deletion
+20
-20
src/vs/editor/browser/viewParts/indentGuides/indentGuides.ts
src/vs/editor/browser/viewParts/indentGuides/indentGuides.ts
+3
-3
src/vs/editor/common/config/commonEditorConfig.ts
src/vs/editor/common/config/commonEditorConfig.ts
+6
-6
src/vs/editor/common/config/defaultConfig.ts
src/vs/editor/common/config/defaultConfig.ts
+1
-1
src/vs/editor/common/editorCommon.ts
src/vs/editor/common/editorCommon.ts
+7
-7
src/vs/monaco.d.ts
src/vs/monaco.d.ts
+3
-3
未找到文件。
src/vs/editor/browser/viewParts/indentGuides/indentGuides.ts
浏览文件 @
ea47e6a1
...
@@ -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
.
i
ndentGuides
;
this
.
_enabled
=
this
.
_context
.
configuration
.
editor
.
viewInfo
.
renderI
ndentGuides
;
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
.
i
ndentGuides
)
{
if
(
e
.
viewInfo
.
renderI
ndentGuides
)
{
this
.
_enabled
=
this
.
_context
.
configuration
.
editor
.
viewInfo
.
i
ndentGuides
;
this
.
_enabled
=
this
.
_context
.
configuration
.
editor
.
viewInfo
.
renderI
ndentGuides
;
}
}
return
true
;
return
true
;
}
}
...
...
src/vs/editor/common/config/commonEditorConfig.ts
浏览文件 @
ea47e6a1
...
@@ -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
.
i
ndentGuides
),
renderIndentGuides
:
toBoolean
(
opts
.
renderI
ndentGuides
),
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.i
ndentGuides': {
'
editor.renderI
ndentGuides
'
:
{
//
'type': 'boolean',
'
type
'
:
'
boolean
'
,
// default: DefaultConfig.editor.i
ndentGuides,
default
:
DefaultConfig
.
editor
.
renderI
ndentGuides
,
// description: nls.localize('i
ndentGuides', "Controls whether the editor should render indent guides")
description
:
nls
.
localize
(
'
renderI
ndentGuides
'
,
"
Controls whether the editor should render indent guides
"
)
//
},
},
'
editor.referenceInfos
'
:
{
'
editor.referenceInfos
'
:
{
'
type
'
:
'
boolean
'
,
'
type
'
:
'
boolean
'
,
'
default
'
:
DefaultConfig
.
editor
.
referenceInfos
,
'
default
'
:
DefaultConfig
.
editor
.
referenceInfos
,
...
...
src/vs/editor/common/config/defaultConfig.ts
浏览文件 @
ea47e6a1
...
@@ -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
,
i
ndentGuides
:
false
,
renderI
ndentGuides
:
false
,
useTabStops
:
true
,
useTabStops
:
true
,
fontFamily
:
(
fontFamily
:
(
...
...
src/vs/editor/common/editorCommon.ts
浏览文件 @
ea47e6a1
...
@@ -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.
*/
*/
i
ndentGuides
?:
boolean
;
renderI
ndentGuides
?:
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
;
i
ndentGuides
:
boolean
;
renderI
ndentGuides
:
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
;
i
ndentGuides
:
boolean
;
renderI
ndentGuides
:
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
.
i
ndentGuides
);
this
.
renderIndentGuides
=
Boolean
(
source
.
renderI
ndentGuides
);
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
.
i
ndentGuides
&&
this
.
renderIndentGuides
===
other
.
renderI
ndentGuides
&&
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
.
i
ndentGuides
,
renderIndentGuides
:
this
.
renderIndentGuides
!==
newOpts
.
renderI
ndentGuides
,
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
;
i
ndentGuides
:
boolean
;
renderI
ndentGuides
:
boolean
;
scrollbar
:
boolean
;
scrollbar
:
boolean
;
}
}
...
...
src/vs/monaco.d.ts
浏览文件 @
ea47e6a1
...
@@ -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.
*/
*/
i
ndentGuides
?:
boolean
;
renderI
ndentGuides
?:
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
;
i
ndentGuides
:
boolean
;
renderI
ndentGuides
:
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
;
i
ndentGuides
:
boolean
;
renderI
ndentGuides
:
boolean
;
scrollbar
:
boolean
;
scrollbar
:
boolean
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录