Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
70430f5c
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,发现更多精彩内容 >>
提交
70430f5c
编写于
2月 17, 2016
作者:
D
Dirk Baeumer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed compile errors caused by 1.8.0
上级
033112ea
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
34 addition
and
19 deletion
+34
-19
src/vs/base/common/diagnostics.ts
src/vs/base/common/diagnostics.ts
+2
-1
src/vs/base/test/browser/mockDom.ts
src/vs/base/test/browser/mockDom.ts
+17
-2
src/vs/base/test/node/flow.test.ts
src/vs/base/test/node/flow.test.ts
+4
-4
src/vs/editor/contrib/workerStatusReporter/browser/workerStatusReporter.ts
...trib/workerStatusReporter/browser/workerStatusReporter.ts
+3
-3
src/vs/languages/css/common/parser/cssParser.ts
src/vs/languages/css/common/parser/cssParser.ts
+0
-1
src/vs/platform/markers/common/problemMatcher.ts
src/vs/platform/markers/common/problemMatcher.ts
+1
-1
src/vs/workbench/api/node/extHostTypeConverters.ts
src/vs/workbench/api/node/extHostTypeConverters.ts
+1
-1
src/vs/workbench/browser/actions/showPerformanceBox.ts
src/vs/workbench/browser/actions/showPerformanceBox.ts
+4
-4
src/vs/workbench/parts/files/electron-browser/textFileServices.ts
...orkbench/parts/files/electron-browser/textFileServices.ts
+2
-1
src/vs/workbench/parts/tasks/node/processRunnerConfiguration.ts
.../workbench/parts/tasks/node/processRunnerConfiguration.ts
+0
-1
未找到文件。
src/vs/base/common/diagnostics.ts
浏览文件 @
70430f5c
...
...
@@ -29,7 +29,8 @@ function fifo(array:any[], size:number) {
export
function
register
(
what
:
string
,
fn
:
Function
):
(...
args
:
any
[])
=>
void
{
if
(
true
)
{
let
disable
=
true
;
// Otherwise we have unreachable code.
if
(
disable
)
{
return
()
=>
{
// Intentional empty, disable for now because it is leaking memory
};
...
...
src/vs/base/test/browser/mockDom.ts
浏览文件 @
70430f5c
...
...
@@ -107,7 +107,7 @@ export class MockNode extends MockEventTarget implements Node {
this
.
appendChild
(
this
.
ownerDocument
.
createTextNode
(
value
));
}
removeChild
(
oldChild
:
Node
):
Node
{
public
removeChild
(
oldChild
:
Node
):
Node
{
var
i
=
this
.
_childNodes
.
indexOf
(
oldChild
);
if
(
i
>=
0
)
{
var
removed
=
this
.
_childNodes
.
splice
(
i
,
1
);
...
...
@@ -116,6 +116,10 @@ export class MockNode extends MockEventTarget implements Node {
return
null
;
}
public
contains
(
node
:
Node
):
boolean
{
return
this
.
_childNodes
.
indexOf
(
node
)
!==
-
1
;
}
appendChild
(
newChild
:
Node
):
Node
{
this
.
_childNodes
.
push
(
newChild
);
return
newChild
;
...
...
@@ -238,6 +242,14 @@ export class MockElement extends MockNode implements Element {
return
filter
.
length
?
filter
[
0
].
value
:
''
;
}
get
innerHTML
():
string
{
throw
new
Error
(
'
Not implemented!
'
);
}
set
innerHTML
(
value
:
string
)
{
throw
new
Error
(
'
Not implemented!
'
);
}
getElementsByTagNameNS
(
namespaceURI
:
string
,
localName
:
string
):
NodeListOf
<
Element
>
{
throw
new
Error
(
'
Not implemented!
'
);
}
...
...
@@ -302,6 +314,10 @@ export class MockElement extends MockNode implements Element {
throw
new
Error
(
'
Not implemented!
'
);
}
matches
(
selector
:
string
):
boolean
{
throw
new
Error
(
'
Not implemented!
'
);
}
// interface NodeSelector
querySelectorAll
(
selectors
:
string
):
NodeListOf
<
Element
>
{
throw
new
Error
(
'
Not implemented!
'
);
...
...
@@ -750,7 +766,6 @@ class AttributeValueParser implements IParserState {
else
{
return
this
.
attribute
;
}
break
;
default
:
if
(
this
.
quote
===
false
)
{
return
new
ErrorState
(
'
Expected " character
'
);
...
...
src/vs/base/test/node/flow.test.ts
浏览文件 @
70430f5c
...
...
@@ -266,8 +266,8 @@ suite('Flow', () => {
if
(
true
)
{
throw
new
Error
(
""
);
}
assertionCount
++
;
syncGet
(
null
,
this
);
//
assertionCount++;
//
syncGet(null, this);
},
function
handleThird
(
third
)
{
...
...
@@ -332,8 +332,8 @@ suite('Flow', () => {
if
(
true
)
{
throw
new
Error
(
""
);
}
assertionCount
++
;
asyncGet
(
null
,
this
);
//
assertionCount++;
//
asyncGet(null, this);
},
function
handleThird
(
third
)
{
...
...
src/vs/editor/contrib/workerStatusReporter/browser/workerStatusReporter.ts
浏览文件 @
70430f5c
...
...
@@ -93,6 +93,6 @@ function attr(target:HTMLElement, attrName:string, attrValue:string): void {
target
.
setAttribute
(
attrName
,
attrValue
);
}
if
(
false
)
{
//TODO@Debt
EditorBrowserRegistry
.
registerEditorContribution
(
WorkerStatusReporter
);
}
\ No newline at end of file
// if (false) { //TODO@Debt
// EditorBrowserRegistry.registerEditorContribution(WorkerStatusReporter);
// }
\ No newline at end of file
src/vs/languages/css/common/parser/cssParser.ts
浏览文件 @
70430f5c
...
...
@@ -112,7 +112,6 @@ export class Parser {
this
.
token
=
this
.
scanner
.
scan
();
}
}
return
false
;
}
public
createNode
(
nodeType
:
nodes
.
NodeType
):
nodes
.
Node
{
...
...
src/vs/platform/markers/common/problemMatcher.ts
浏览文件 @
70430f5c
...
...
@@ -115,7 +115,7 @@ export interface NamedProblemMatcher extends ProblemMatcher {
}
export
function
isNamedProblemMatcher
(
value
:
ProblemMatcher
):
value
is
NamedProblemMatcher
{
return
Types
.
isString
((
<
NamedProblemMatcher
>
value
).
name
);
return
Types
.
isString
((
<
NamedProblemMatcher
>
value
).
name
)
?
true
:
false
;
}
let
valueMap
:
{
[
key
:
string
]:
string
;
}
=
{
...
...
src/vs/workbench/api/node/extHostTypeConverters.ts
浏览文件 @
70430f5c
...
...
@@ -162,7 +162,7 @@ function isRangeWithMessageArr(something: vscode.Range[]|vscode.DecorationOption
if
(
something
.
length
===
0
)
{
return
true
;
}
return
isRangeWithMessage
(
something
[
0
]);
return
isRangeWithMessage
(
something
[
0
])
?
true
:
false
;
}
export
function
fromRangeOrRangeWithMessage
(
ranges
:
vscode
.
Range
[]
|
vscode
.
DecorationOptions
[]):
IRangeWithMessage
[]
{
...
...
src/vs/workbench/browser/actions/showPerformanceBox.ts
浏览文件 @
70430f5c
...
...
@@ -34,7 +34,7 @@ export class ShowPerformanceBox extends Action {
}
}
if
(
false
/* Env.enablePerformanceTools */
)
{
let
registry
=
<
IWorkbenchActionRegistry
>
Registry
.
as
(
Extensions
.
WorkbenchActions
);
registry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
ShowPerformanceBox
,
ID
,
LABEL
));
}
\ No newline at end of file
// if (false /* Env.enablePerformanceTools */) {
// let registry = <IWorkbenchActionRegistry>Registry.as(Extensions.WorkbenchActions);
// registry.registerWorkbenchAction(new SyncActionDescriptor(ShowPerformanceBox, ID, LABEL));
// }
\ No newline at end of file
src/vs/workbench/parts/files/electron-browser/textFileServices.ts
浏览文件 @
70430f5c
...
...
@@ -380,7 +380,8 @@ export class TextFileService extends AbstractTextFileService {
// - https://github.com/Microsoft/vscode/issues/451
// - Bug on Windows: When "All Files" is picked, the path gets an extra ".*"
// Until these issues are resolved, we disable the dialog file extension filtering.
if
(
true
)
{
let
disable
=
true
;
// Simply using if (true) flags the code afterwards as not reachable.
if
(
disable
)
{
return
options
;
}
...
...
src/vs/workbench/parts/tasks/node/processRunnerConfiguration.ts
浏览文件 @
70430f5c
...
...
@@ -665,7 +665,6 @@ class ConfigurationParser {
let
json
=
<
ProblemMatcherConfig
.
ProblemMatcher
>
value
;
return
new
ProblemMatcherParser
(
ProblemMatcherRegistry
,
this
.
logger
,
this
.
validationStatus
).
parse
(
json
);
}
return
null
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录