Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
8ff41920
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,发现更多精彩内容 >>
提交
8ff41920
编写于
11月 19, 2017
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unused code #38414
上级
f33a8b7b
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
3 addition
and
74 deletion
+3
-74
src/vs/platform/configuration/common/configurationModels.ts
src/vs/platform/configuration/common/configurationModels.ts
+0
-9
src/vs/platform/configuration/common/configurationRegistry.ts
...vs/platform/configuration/common/configurationRegistry.ts
+0
-4
src/vs/platform/configuration/test/common/configurationModels.test.ts
...orm/configuration/test/common/configurationModels.test.ts
+0
-38
src/vs/workbench/browser/parts/views/viewsRegistry.ts
src/vs/workbench/browser/parts/views/viewsRegistry.ts
+1
-2
src/vs/workbench/browser/parts/views/viewsViewlet.ts
src/vs/workbench/browser/parts/views/viewsViewlet.ts
+0
-8
src/vs/workbench/parts/markers/common/markersModel.ts
src/vs/workbench/parts/markers/common/markersModel.ts
+0
-11
src/vs/workbench/parts/markers/common/messages.ts
src/vs/workbench/parts/markers/common/messages.ts
+0
-1
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
.../workbench/parts/preferences/browser/preferencesEditor.ts
+2
-1
未找到文件。
src/vs/platform/configuration/common/configurationModels.ts
浏览文件 @
8ff41920
...
...
@@ -151,15 +151,6 @@ export class ConfigurationModel implements IConfigurationModel {
}
}
public
setValueInOverrides
(
overrideIdentifier
:
string
,
key
:
string
,
value
:
any
):
void
{
let
override
=
this
.
overrides
.
filter
(
override
=>
override
.
identifiers
.
indexOf
(
overrideIdentifier
)
!==
-
1
)[
0
];
if
(
!
override
)
{
override
=
{
identifiers
:
[
overrideIdentifier
],
contents
:
{}
};
this
.
overrides
.
push
(
override
);
}
addToValueTree
(
override
.
contents
,
key
,
value
,
e
=>
{
throw
new
Error
(
e
);
});
}
private
addKey
(
key
:
string
):
void
{
let
index
=
this
.
keys
.
length
;
for
(
let
i
=
0
;
i
<
index
;
i
++
)
{
...
...
src/vs/platform/configuration/common/configurationRegistry.ts
浏览文件 @
8ff41920
...
...
@@ -205,10 +205,6 @@ class ConfigurationRegistry implements IConfigurationRegistry {
return
propertyKeys
;
}
validateProperty
(
property
:
string
):
boolean
{
return
!
OVERRIDE_PROPERTY_PATTERN
.
test
(
property
)
&&
this
.
getConfigurationProperties
()[
property
]
!==
void
0
;
}
getConfigurations
():
IConfigurationNode
[]
{
return
this
.
configurationContributors
;
}
...
...
src/vs/platform/configuration/test/common/configurationModels.test.ts
浏览文件 @
8ff41920
...
...
@@ -102,44 +102,6 @@ suite('ConfigurationModel', () => {
assert
.
deepEqual
(
testObject
.
keys
,
[]);
});
test
(
'
setValueInOverrides adds to overrides if does not exist
'
,
()
=>
{
let
testObject
=
new
ConfigurationModel
({
'
a
'
:
1
,
'
b
'
:
1
},
[
'
a
'
]);
testObject
.
setValueInOverrides
(
'
or
'
,
'
a
'
,
2
);
assert
.
deepEqual
(
testObject
.
overrides
[
0
].
contents
,
{
'
a
'
:
2
});
assert
.
deepEqual
(
testObject
.
override
(
'
or
'
).
contents
,
{
'
a
'
:
2
,
'
b
'
:
1
});
});
test
(
'
setValueInOverrides adds to overrides if exist
'
,
()
=>
{
let
testObject
=
new
ConfigurationModel
({
'
a
'
:
1
,
'
b
'
:
1
},
[
'
a
'
],
[{
identifiers
:
[
'
or
'
],
contents
:
{
'
a
'
:
2
}
}]);
testObject
.
setValueInOverrides
(
'
or
'
,
'
a
'
,
3
);
assert
.
deepEqual
(
testObject
.
overrides
[
0
].
contents
,
{
'
a
'
:
3
});
assert
.
deepEqual
(
testObject
.
override
(
'
or
'
).
contents
,
{
'
a
'
:
3
,
'
b
'
:
1
});
});
test
(
'
setValueInOverrides adds a nested key to overrides if exist
'
,
()
=>
{
let
testObject
=
new
ConfigurationModel
({
'
a
'
:
1
,
'
b
'
:
1
},
[
'
a
'
],
[{
identifiers
:
[
'
or
'
],
contents
:
{
'
a
'
:
{
'
c
'
:
1
}
}
}]);
testObject
.
setValueInOverrides
(
'
or
'
,
'
a.c
'
,
2
);
assert
.
deepEqual
(
testObject
.
overrides
[
0
].
contents
,
{
'
a
'
:
{
'
c
'
:
2
}
});
assert
.
deepEqual
(
testObject
.
override
(
'
or
'
).
contents
,
{
'
a
'
:
{
'
c
'
:
2
},
'
b
'
:
1
});
});
test
(
'
setValueInOverrides adds new overrides if exist
'
,
()
=>
{
let
testObject
=
new
ConfigurationModel
({
'
a
'
:
1
,
'
b
'
:
1
},
[
'
a
'
],
[{
identifiers
:
[
'
or1
'
],
contents
:
{
'
a
'
:
2
}
}]);
testObject
.
setValueInOverrides
(
'
or2
'
,
'
b
'
,
2
);
assert
.
deepEqual
(
testObject
.
overrides
[
0
].
contents
,
{
'
a
'
:
2
});
assert
.
deepEqual
(
testObject
.
overrides
[
1
].
contents
,
{
'
b
'
:
2
});
assert
.
deepEqual
(
testObject
.
override
(
'
or1
'
).
contents
,
{
'
a
'
:
2
,
'
b
'
:
1
});
assert
.
deepEqual
(
testObject
.
override
(
'
or2
'
).
contents
,
{
'
a
'
:
1
,
'
b
'
:
2
});
});
test
(
'
get overriding configuration model for an existing identifier
'
,
()
=>
{
let
testObject
=
new
ConfigurationModel
(
{
'
a
'
:
{
'
b
'
:
1
},
'
f
'
:
1
},
[],
...
...
src/vs/workbench/browser/parts/views/viewsRegistry.ts
浏览文件 @
8ff41920
...
...
@@ -13,7 +13,6 @@ export class ViewLocation {
static
readonly
Explorer
=
new
ViewLocation
(
'
explorer
'
);
static
readonly
Debug
=
new
ViewLocation
(
'
debug
'
);
static
readonly
Extensions
=
new
ViewLocation
(
'
extensions
'
);
static
readonly
SCM
=
new
ViewLocation
(
'
scm
'
);
constructor
(
private
_id
:
string
)
{
}
...
...
@@ -75,7 +74,7 @@ export interface IViewsRegistry {
}
export
const
ViewsRegistry
:
IViewsRegistry
=
new
class
{
export
const
ViewsRegistry
:
IViewsRegistry
=
new
class
implements
IViewsRegistry
{
private
_onViewsRegistered
:
Emitter
<
IViewDescriptor
[]
>
=
new
Emitter
<
IViewDescriptor
[]
>
();
readonly
onViewsRegistered
:
Event
<
IViewDescriptor
[]
>
=
this
.
_onViewsRegistered
.
event
;
...
...
src/vs/workbench/browser/parts/views/viewsViewlet.ts
浏览文件 @
8ff41920
...
...
@@ -35,10 +35,6 @@ export interface IViewOptions extends IPanelOptions {
actionRunner
:
IActionRunner
;
}
export
interface
IViewConstructorSignature
<
T
extends
ViewsViewletPanel
>
{
new
(
options
:
IViewOptions
,
...
services
:
{
_serviceBrand
:
any
;
}[]):
T
;
}
export
abstract
class
ViewsViewletPanel
extends
ViewletPanel
{
readonly
id
:
string
;
...
...
@@ -457,10 +453,6 @@ export class ViewsViewlet extends PanelViewlet {
}
}
protected
getDefaultViewSize
():
number
|
undefined
{
return
undefined
;
}
private
isCurrentlyVisible
(
viewDescriptor
:
IViewDescriptor
):
boolean
{
return
!!
this
.
getView
(
viewDescriptor
.
id
);
}
...
...
src/vs/workbench/parts/markers/common/markersModel.ts
浏览文件 @
8ff41920
...
...
@@ -298,11 +298,6 @@ export class MarkersModel {
this
.
_nonFilteredResources
=
[];
}
public
getTitle
(
markerStatistics
:
MarkerStatistics
):
string
{
let
title
=
MarkersModel
.
getStatisticsLabel
(
markerStatistics
);
return
title
?
title
:
Messages
.
MARKERS_PANEL_TITLE_PROBLEMS
;
}
public
getMessage
():
string
{
if
(
this
.
hasFilteredResources
())
{
return
''
;
...
...
@@ -360,10 +355,4 @@ export class MarkersModel {
}
return
a
.
marker
.
severity
>
b
.
marker
.
severity
?
-
1
:
1
;
}
}
export
interface
IProblemsConfiguration
{
problems
:
{
autoReveal
:
boolean
};
}
\ No newline at end of file
src/vs/workbench/parts/markers/common/messages.ts
浏览文件 @
8ff41920
...
...
@@ -13,7 +13,6 @@ export default class Messages {
public
static
MARKERS_PANEL_VIEW_CATEGORY
:
string
=
nls
.
localize
(
'
viewCategory
'
,
"
View
"
);
public
static
MARKERS_PANEL_TOGGLE_LABEL
:
string
=
nls
.
localize
(
'
problems.view.toggle.label
'
,
"
Toggle Problems
"
);
public
static
MARKERS_PANEL_SHOW_LABEL
:
string
=
nls
.
localize
(
'
problems.view.focus.label
'
,
"
Focus Problems
"
);
public
static
MARKERS_PANEL_HIDE_LABEL
:
string
=
nls
.
localize
(
'
problems.view.hide.label
'
,
"
Hide Problems
"
);
public
static
PROBLEMS_PANEL_CONFIGURATION_TITLE
:
string
=
nls
.
localize
(
'
problems.panel.configuration.title
'
,
"
Problems View
"
);
public
static
PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL
:
string
=
nls
.
localize
(
'
problems.panel.configuration.autoreveal
'
,
"
Controls if Problems view should automatically reveal files when opening them
"
);
...
...
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
浏览文件 @
8ff41920
...
...
@@ -858,7 +858,7 @@ interface ISettingsEditorContribution extends editorCommon.IEditorContribution {
}
abstract
class
AbstractSettingsEditorContribution
extends
Disposable
{
abstract
class
AbstractSettingsEditorContribution
extends
Disposable
implements
ISettingsEditorContribution
{
private
preferencesRendererCreationPromise
:
TPromise
<
IPreferencesRenderer
<
ISetting
>>
;
...
...
@@ -934,6 +934,7 @@ abstract class AbstractSettingsEditorContribution extends Disposable {
}
protected
abstract
_createPreferencesRenderer
():
TPromise
<
IPreferencesRenderer
<
ISetting
>>
;
abstract
getId
():
string
;
}
class
DefaultSettingsEditorContribution
extends
AbstractSettingsEditorContribution
implements
ISettingsEditorContribution
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录