Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
3507d224
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,发现更多精彩内容 >>
提交
3507d224
编写于
10月 30, 2017
作者:
D
David Weber
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
No need for this setting here
上级
b664633d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1 addition
and
72 deletion
+1
-72
src/vs/editor/common/config/editorOptions.ts
src/vs/editor/common/config/editorOptions.ts
+0
-2
src/vs/editor/test/common/viewLayout/editorLayoutProvider.test.ts
...ditor/test/common/viewLayout/editorLayoutProvider.test.ts
+1
-70
未找到文件。
src/vs/editor/common/config/editorOptions.ts
浏览文件 @
3507d224
...
...
@@ -1832,7 +1832,6 @@ export class InternalEditorOptionsFactory {
showGlyphMargin
:
opts
.
viewInfo
.
glyphMargin
,
lineHeight
:
env
.
fontInfo
.
lineHeight
,
showLineNumbers
:
opts
.
viewInfo
.
renderLineNumbers
,
lineNumberInterval
:
opts
.
viewInfo
.
lineNumberInterval
,
lineNumbersMinChars
:
opts
.
lineNumbersMinChars
,
lineNumbersDigitCount
:
env
.
lineNumbersDigitCount
,
lineDecorationsWidth
:
lineDecorationsWidth
,
...
...
@@ -1961,7 +1960,6 @@ export interface IEditorLayoutProviderOpts {
lineHeight
:
number
;
showLineNumbers
:
boolean
;
lineNumberInterval
:
number
;
lineNumbersMinChars
:
number
;
lineNumbersDigitCount
:
number
;
...
...
src/vs/editor/test/common/viewLayout/editorLayoutProvider.test.ts
浏览文件 @
3507d224
...
...
@@ -21,7 +21,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -78,7 +77,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -135,7 +133,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -192,7 +189,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -249,7 +245,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
5
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -306,7 +301,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
true
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
5
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -363,7 +357,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
true
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
5
,
lineNumbersDigitCount
:
5
,
lineDecorationsWidth
:
10
,
...
...
@@ -420,7 +413,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
true
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
5
,
lineNumbersDigitCount
:
6
,
lineDecorationsWidth
:
10
,
...
...
@@ -477,7 +469,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
true
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
5
,
lineNumbersDigitCount
:
6
,
lineDecorationsWidth
:
10
,
...
...
@@ -534,7 +525,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
true
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
5
,
lineNumbersDigitCount
:
6
,
lineDecorationsWidth
:
10
,
...
...
@@ -591,7 +581,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -648,7 +637,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -705,7 +693,6 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
...
...
@@ -754,60 +741,4 @@ suite('Editor ViewLayout - EditorLayoutProvider', () => {
}
});
});
test
(
'
EditorLayoutProvider 10 - render editor with lineNumberInterval = 1
'
,
()
=>
{
doTest
({
outerWidth
:
1000
,
outerHeight
:
800
,
showGlyphMargin
:
false
,
lineHeight
:
16
,
showLineNumbers
:
false
,
lineNumberInterval
:
1
,
lineNumbersMinChars
:
0
,
lineNumbersDigitCount
:
1
,
lineDecorationsWidth
:
10
,
typicalHalfwidthCharacterWidth
:
10
,
maxDigitWidth
:
10
,
verticalScrollbarWidth
:
0
,
horizontalScrollbarHeight
:
0
,
scrollbarArrowSize
:
0
,
verticalScrollbarHasArrows
:
false
,
minimap
:
false
,
minimapRenderCharacters
:
true
,
minimapMaxColumn
:
150
,
pixelRatio
:
1
,
},
{
width
:
1000
,
height
:
800
,
glyphMarginLeft
:
0
,
glyphMarginWidth
:
0
,
glyphMarginHeight
:
800
,
lineNumbersLeft
:
0
,
lineNumbersWidth
:
0
,
lineNumbersHeight
:
800
,
decorationsLeft
:
0
,
decorationsWidth
:
10
,
decorationsHeight
:
800
,
contentLeft
:
10
,
contentWidth
:
990
,
contentHeight
:
800
,
renderMinimap
:
RenderMinimap
.
None
,
minimapWidth
:
0
,
viewportColumn
:
99
,
verticalScrollbarWidth
:
0
,
horizontalScrollbarHeight
:
0
,
overviewRuler
:
{
top
:
0
,
width
:
0
,
height
:
800
,
right
:
0
}
});
});
});
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录