Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
503a0f33
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,发现更多精彩内容 >>
提交
503a0f33
编写于
11月 07, 2017
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unused members
上级
4b4ac1b4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
29 deletion
+8
-29
src/vs/base/parts/tree/browser/treeImpl.ts
src/vs/base/parts/tree/browser/treeImpl.ts
+8
-13
src/vs/base/parts/tree/browser/treeModel.ts
src/vs/base/parts/tree/browser/treeModel.ts
+0
-3
src/vs/base/parts/tree/browser/treeView.ts
src/vs/base/parts/tree/browser/treeView.ts
+0
-3
src/vs/editor/browser/controller/textAreaHandler.ts
src/vs/editor/browser/controller/textAreaHandler.ts
+0
-6
src/vs/editor/browser/viewParts/rulers/rulers.ts
src/vs/editor/browser/viewParts/rulers/rulers.ts
+0
-4
未找到文件。
src/vs/base/parts/tree/browser/treeImpl.ts
浏览文件 @
503a0f33
...
...
@@ -64,9 +64,6 @@ const defaultStyles: _.ITreeStyles = {
export
class
Tree
extends
Events
.
EventEmitter
implements
_
.
ITree
{
private
container
:
HTMLElement
;
// @ts-ignore unused property
private
configuration
:
_
.
ITreeConfiguration
;
private
options
:
_
.
ITreeOptions
;
private
context
:
_
.
ITreeContext
;
private
model
:
Model
.
TreeModel
;
...
...
@@ -88,16 +85,14 @@ export class Tree extends Events.EventEmitter implements _.ITree {
this
.
toDispose
.
push
(
this
.
_onDispose
,
this
.
_onHighlightChange
);
this
.
container
=
container
;
this
.
configuration
=
configuration
;
this
.
options
=
options
;
mixin
(
this
.
options
,
defaultStyles
,
false
);
this
.
options
.
twistiePixels
=
typeof
this
.
options
.
twistiePixels
===
'
number
'
?
this
.
options
.
twistiePixels
:
32
;
this
.
options
.
showTwistie
=
this
.
options
.
showTwistie
===
false
?
false
:
true
;
this
.
options
.
indentPixels
=
typeof
this
.
options
.
indentPixels
===
'
number
'
?
this
.
options
.
indentPixels
:
12
;
this
.
options
.
alwaysFocused
=
this
.
options
.
alwaysFocused
===
true
?
true
:
false
;
this
.
options
.
useShadows
=
this
.
options
.
useShadows
===
false
?
false
:
true
;
this
.
options
.
paddingOnRow
=
this
.
options
.
paddingOnRow
===
false
?
false
:
true
;
mixin
(
options
,
defaultStyles
,
false
);
options
.
twistiePixels
=
typeof
options
.
twistiePixels
===
'
number
'
?
options
.
twistiePixels
:
32
;
options
.
showTwistie
=
options
.
showTwistie
===
false
?
false
:
true
;
options
.
indentPixels
=
typeof
options
.
indentPixels
===
'
number
'
?
options
.
indentPixels
:
12
;
options
.
alwaysFocused
=
options
.
alwaysFocused
===
true
?
true
:
false
;
options
.
useShadows
=
options
.
useShadows
===
false
?
false
:
true
;
options
.
paddingOnRow
=
options
.
paddingOnRow
===
false
?
false
:
true
;
this
.
context
=
new
TreeContext
(
this
,
configuration
,
options
);
this
.
model
=
new
Model
.
TreeModel
(
this
.
context
);
...
...
src/vs/base/parts/tree/browser/treeModel.ts
浏览文件 @
503a0f33
...
...
@@ -205,8 +205,6 @@ export class Item extends Events.EventEmitter {
public
next
:
Item
;
public
firstChild
:
Item
;
public
lastChild
:
Item
;
// @ts-ignore unused property
private
userContent
:
HTMLElement
;
private
height
:
number
;
private
depth
:
number
;
...
...
@@ -238,7 +236,6 @@ export class Item extends Events.EventEmitter {
this
.
firstChild
=
null
;
this
.
lastChild
=
null
;
this
.
userContent
=
null
;
this
.
traits
=
{};
this
.
depth
=
0
;
this
.
expanded
=
this
.
context
.
dataSource
.
shouldAutoexpand
&&
this
.
context
.
dataSource
.
shouldAutoexpand
(
this
.
context
.
tree
,
element
);
...
...
src/vs/base/parts/tree/browser/treeView.ts
浏览文件 @
503a0f33
...
...
@@ -392,8 +392,6 @@ export class TreeView extends HeightMap {
private
isRefreshing
=
false
;
private
refreshingPreviousChildrenIds
:
{
[
id
:
string
]:
string
[]
}
=
{};
// @ts-ignore unused property
private
dragAndDropListeners
:
{
():
void
;
}[];
private
currentDragAndDropData
:
_
.
IDragAndDropData
;
private
currentDropElement
:
any
;
private
currentDropElementReaction
:
_
.
IDragOverReaction
;
...
...
@@ -437,7 +435,6 @@ export class TreeView extends HeightMap {
this
.
modelListeners
=
[];
this
.
viewListeners
=
[];
this
.
dragAndDropListeners
=
[];
this
.
model
=
null
;
this
.
items
=
{};
...
...
src/vs/editor/browser/controller/textAreaHandler.ts
浏览文件 @
503a0f33
...
...
@@ -54,8 +54,6 @@ export class TextAreaHandler extends ViewPart {
private
readonly
_viewController
:
ViewController
;
private
readonly
_viewHelper
:
ITextAreaHandlerHelper
;
// @ts-ignore unused property
private
_pixelRatio
:
number
;
private
_accessibilitySupport
:
platform
.
AccessibilitySupport
;
private
_contentLeft
:
number
;
private
_contentWidth
:
number
;
...
...
@@ -86,7 +84,6 @@ export class TextAreaHandler extends ViewPart {
const
conf
=
this
.
_context
.
configuration
.
editor
;
this
.
_pixelRatio
=
conf
.
pixelRatio
;
this
.
_accessibilitySupport
=
conf
.
accessibilitySupport
;
this
.
_contentLeft
=
conf
.
layoutInfo
.
contentLeft
;
this
.
_contentWidth
=
conf
.
layoutInfo
.
contentWidth
;
...
...
@@ -306,9 +303,6 @@ export class TextAreaHandler extends ViewPart {
if
(
e
.
lineHeight
)
{
this
.
_lineHeight
=
conf
.
lineHeight
;
}
if
(
e
.
pixelRatio
)
{
this
.
_pixelRatio
=
conf
.
pixelRatio
;
}
if
(
e
.
accessibilitySupport
)
{
this
.
_accessibilitySupport
=
conf
.
accessibilitySupport
;
this
.
_textAreaInput
.
writeScreenReaderContent
(
'
strategy changed
'
);
...
...
src/vs/editor/browser/viewParts/rulers/rulers.ts
浏览文件 @
503a0f33
...
...
@@ -20,8 +20,6 @@ export class Rulers extends ViewPart {
public
domNode
:
FastDomNode
<
HTMLElement
>
;
private
_renderedRulers
:
FastDomNode
<
HTMLElement
>
[];
private
_rulers
:
number
[];
// @ts-ignore unused property
private
_height
:
number
;
private
_typicalHalfwidthCharacterWidth
:
number
;
constructor
(
context
:
ViewContext
)
{
...
...
@@ -32,7 +30,6 @@ export class Rulers extends ViewPart {
this
.
domNode
.
setClassName
(
'
view-rulers
'
);
this
.
_renderedRulers
=
[];
this
.
_rulers
=
this
.
_context
.
configuration
.
editor
.
viewInfo
.
rulers
;
this
.
_height
=
this
.
_context
.
configuration
.
editor
.
layoutInfo
.
contentHeight
;
this
.
_typicalHalfwidthCharacterWidth
=
this
.
_context
.
configuration
.
editor
.
fontInfo
.
typicalHalfwidthCharacterWidth
;
}
...
...
@@ -45,7 +42,6 @@ export class Rulers extends ViewPart {
public
onConfigurationChanged
(
e
:
viewEvents
.
ViewConfigurationChangedEvent
):
boolean
{
if
(
e
.
viewInfo
||
e
.
layoutInfo
||
e
.
fontInfo
)
{
this
.
_rulers
=
this
.
_context
.
configuration
.
editor
.
viewInfo
.
rulers
;
this
.
_height
=
this
.
_context
.
configuration
.
editor
.
layoutInfo
.
contentHeight
;
this
.
_typicalHalfwidthCharacterWidth
=
this
.
_context
.
configuration
.
editor
.
fontInfo
.
typicalHalfwidthCharacterWidth
;
return
true
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录