Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
ce15df0f
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce15df0f
编写于
6月 20, 2017
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unnecessary code
上级
8b2ea6ca
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
3 addition
and
21 deletion
+3
-21
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
+0
-4
src/vs/base/browser/ui/scrollbar/verticalScrollbar.ts
src/vs/base/browser/ui/scrollbar/verticalScrollbar.ts
+0
-4
src/vs/editor/browser/view/viewImpl.ts
src/vs/editor/browser/view/viewImpl.ts
+1
-1
src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.ts
...itor/browser/viewParts/editorScrollbar/editorScrollbar.ts
+0
-4
src/vs/editor/browser/viewParts/minimap/minimap.ts
src/vs/editor/browser/viewParts/minimap/minimap.ts
+1
-7
tslint.json
tslint.json
+1
-1
未找到文件。
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
浏览文件 @
ce15df0f
...
...
@@ -152,10 +152,6 @@ export class ScrollableElement extends Widget {
this
.
_verticalScrollbar
.
delegateSliderMouseDown
(
e
,
onDragFinished
);
}
public
getVerticalSliderVerticalCenter
():
number
{
return
this
.
_verticalScrollbar
.
getVerticalSliderVerticalCenter
();
}
public
updateState
(
newState
:
INewScrollState
):
void
{
this
.
_scrollable
.
updateState
(
newState
);
}
...
...
src/vs/base/browser/ui/scrollbar/verticalScrollbar.ts
浏览文件 @
ce15df0f
...
...
@@ -59,10 +59,6 @@ export class VerticalScrollbar extends AbstractScrollbar {
this
.
_createSlider
(
0
,
Math
.
floor
((
options
.
verticalScrollbarSize
-
options
.
verticalSliderSize
)
/
2
),
options
.
verticalSliderSize
,
null
);
}
public
getVerticalSliderVerticalCenter
():
number
{
return
this
.
_scrollbarState
.
getArrowSize
()
+
this
.
_scrollbarState
.
getSliderCenter
();
}
protected
_updateSlider
(
sliderSize
:
number
,
sliderPosition
:
number
):
void
{
this
.
slider
.
setHeight
(
sliderSize
);
this
.
slider
.
setTop
(
sliderPosition
);
...
...
src/vs/editor/browser/view/viewImpl.ts
浏览文件 @
ce15df0f
...
...
@@ -209,7 +209,7 @@ export class View extends ViewEventHandler {
let
rulers
=
new
Rulers
(
this
.
_context
);
this
.
viewParts
.
push
(
rulers
);
let
minimap
=
new
Minimap
(
this
.
_context
,
this
.
_scrollbar
);
let
minimap
=
new
Minimap
(
this
.
_context
);
this
.
viewParts
.
push
(
minimap
);
// -------------- Wire dom nodes up
...
...
src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.ts
浏览文件 @
ce15df0f
...
...
@@ -119,10 +119,6 @@ export class EditorScrollbar extends ViewPart {
this
.
scrollbar
.
delegateSliderMouseDown
(
e
,
onDragFinished
);
}
public
getVerticalSliderVerticalCenter
():
number
{
return
this
.
scrollbar
.
getVerticalSliderVerticalCenter
();
}
// --- begin event handlers
public
onConfigurationChanged
(
e
:
viewEvents
.
ViewConfigurationChangedEvent
):
boolean
{
...
...
src/vs/editor/browser/viewParts/minimap/minimap.ts
浏览文件 @
ce15df0f
...
...
@@ -18,7 +18,6 @@ import { ViewLineData } from 'vs/editor/common/viewModel/viewModel';
import
{
ColorId
}
from
'
vs/editor/common/modes
'
;
import
{
FastDomNode
,
createFastDomNode
}
from
'
vs/base/browser/fastDomNode
'
;
import
{
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
EditorScrollbar
}
from
'
vs/editor/browser/viewParts/editorScrollbar/editorScrollbar
'
;
import
{
RenderedLinesCollection
,
ILine
}
from
'
vs/editor/browser/view/viewLayer
'
;
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
RGBA
}
from
'
vs/base/common/color
'
;
...
...
@@ -207,7 +206,6 @@ class MinimapLayout {
viewportHeight
:
number
,
viewportContainsWhitespaceGaps
:
boolean
,
lineCount
:
number
,
scrollbarSliderCenter
:
number
,
scrollTop
:
number
,
scrollHeight
:
number
):
MinimapLayout
{
...
...
@@ -409,8 +407,6 @@ class MinimapBuffers {
export
class
Minimap
extends
ViewPart
{
private
readonly
_editorScrollbar
:
EditorScrollbar
;
private
readonly
_domNode
:
FastDomNode
<
HTMLElement
>
;
private
readonly
_shadow
:
FastDomNode
<
HTMLElement
>
;
private
readonly
_canvas
:
FastDomNode
<
HTMLCanvasElement
>
;
...
...
@@ -427,9 +423,8 @@ export class Minimap extends ViewPart {
private
_lastRenderData
:
RenderData
;
private
_buffers
:
MinimapBuffers
;
constructor
(
context
:
ViewContext
,
editorScrollbar
:
EditorScrollbar
)
{
constructor
(
context
:
ViewContext
)
{
super
(
context
);
this
.
_editorScrollbar
=
editorScrollbar
;
this
.
_options
=
new
MinimapOptions
(
this
.
_context
.
configuration
);
this
.
_lastRenderData
=
null
;
...
...
@@ -655,7 +650,6 @@ export class Minimap extends ViewPart {
renderingCtx
.
viewportHeight
,
(
renderingCtx
.
viewportData
.
whitespaceViewportData
.
length
>
0
),
this
.
_context
.
model
.
getLineCount
(),
this
.
_editorScrollbar
.
getVerticalSliderVerticalCenter
(),
renderingCtx
.
scrollTop
,
renderingCtx
.
scrollHeight
);
...
...
tslint.json
浏览文件 @
ce15df0f
...
...
@@ -217,7 +217,7 @@
"**/vs/base/parts/*/{common,browser}/**"
,
"**/vs/platform/*/{common,browser}/**"
,
"**/vs/editor/{common,browser}/**"
,
"**/vs/editor/contrib/
quickOpen/
**"
,
"**/vs/editor/contrib/**"
,
"**/vs/editor/standalone/{common,browser}/**"
]
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录