Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
8dad2594
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,发现更多精彩内容 >>
提交
8dad2594
编写于
2月 01, 2017
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove a few more extension d.ts files that are not needed
上级
c342eaa2
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
4 addition
and
149 deletion
+4
-149
extensions/declares.d.ts
extensions/declares.d.ts
+0
-107
extensions/php/typings/mocha.d.ts
extensions/php/typings/mocha.d.ts
+0
-13
extensions/vscode-api-tests/package.json
extensions/vscode-api-tests/package.json
+1
-0
extensions/vscode-api-tests/src/typings/ref.d.ts
extensions/vscode-api-tests/src/typings/ref.d.ts
+1
-1
extensions/vscode-api-tests/typings/mocha.d.ts
extensions/vscode-api-tests/typings/mocha.d.ts
+0
-14
extensions/vscode-colorize-tests/package.json
extensions/vscode-colorize-tests/package.json
+1
-0
extensions/vscode-colorize-tests/src/typings/ref.d.ts
extensions/vscode-colorize-tests/src/typings/ref.d.ts
+1
-1
extensions/vscode-colorize-tests/typings/mocha.d.ts
extensions/vscode-colorize-tests/typings/mocha.d.ts
+0
-13
未找到文件。
extensions/declares.d.ts
已删除
100644 → 0
浏览文件 @
c342eaa2
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/// <reference path="../src/typings/thenable.d.ts" />
// Declaring the following because the code gets compiled with es5, which lack definitions for console and timers.
declare
var
console
:
{
assert
(
value
:
any
,
message
?:
string
,
...
optionalParams
:
any
[]):
void
;
dir
(
obj
:
any
,
options
?:
{
showHidden
?:
boolean
,
depth
?:
number
,
colors
?:
boolean
}):
void
;
error
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
info
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
log
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
time
(
label
:
string
):
void
;
timeEnd
(
label
:
string
):
void
;
trace
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
warn
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
};
// ---- ES6 promise ------------------------------------------------------
/**
* Represents the completion of an asynchronous operation.
*/
interface
Promise
<
T
>
extends
Thenable
<
T
>
{
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then
<
TResult
>
(
onfulfilled
?:
(
value
:
T
)
=>
TResult
|
Thenable
<
TResult
>
,
onrejected
?:
(
reason
:
any
)
=>
TResult
|
Thenable
<
TResult
>
):
Promise
<
TResult
>
;
then
<
TResult
>
(
onfulfilled
?:
(
value
:
T
)
=>
TResult
|
Thenable
<
TResult
>
,
onrejected
?:
(
reason
:
any
)
=>
void
):
Promise
<
TResult
>
;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch
(
onrejected
?:
(
reason
:
any
)
=>
T
|
Thenable
<
T
>
):
Promise
<
T
>
;
// [Symbol.toStringTag]: string;
}
interface
PromiseConstructor
{
// /**
// * A reference to the prototype.
// */
// prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new
<
T
>
(
executor
:
(
resolve
:
(
value
?:
T
|
Thenable
<
T
>
)
=>
void
,
reject
:
(
reason
?:
any
)
=>
void
)
=>
void
):
Promise
<
T
>
;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all
<
T
>
(
values
:
Array
<
T
|
Thenable
<
T
>>
):
Promise
<
T
[]
>
;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race
<
T
>
(
values
:
Array
<
T
|
Thenable
<
T
>>
):
Promise
<
T
>
;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject
(
reason
:
any
):
Promise
<
void
>
;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject
<
T
>
(
reason
:
any
):
Promise
<
T
>
;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve
<
T
>
(
value
:
T
|
Thenable
<
T
>
):
Promise
<
T
>
;
/**
* Creates a new resolved promise.
* @returns A resolved promise.
*/
resolve
():
Promise
<
void
>
;
// [Symbol.species]: Function;
}
declare
var
Promise
:
PromiseConstructor
;
extensions/php/typings/mocha.d.ts
已删除
100644 → 0
浏览文件 @
c342eaa2
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare
function
run
():
void
;
declare
function
suite
(
name
:
string
,
fn
:
(
err
?)
=>
void
);
declare
function
test
(
name
:
string
,
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
suiteSetup
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
suiteTeardown
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
setup
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
teardown
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
extensions/vscode-api-tests/package.json
浏览文件 @
8dad2594
...
...
@@ -39,6 +39,7 @@
"vscode:prepublish"
:
"node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-api-tests ./tsconfig.json"
},
"devDependencies"
:
{
"@types/mocha"
:
"^2.2.38"
,
"@types/node"
:
"^7.0.4"
,
"typescript"
:
"^1.6.2"
,
"vscode"
:
"1.0.1"
...
...
extensions/vscode-api-tests/src/typings/ref.d.ts
浏览文件 @
8dad2594
...
...
@@ -4,5 +4,5 @@
*--------------------------------------------------------------------------------------------*/
/// <reference path="../../../../src/vs/vscode.d.ts" />
/// <reference path='../../
../../src/typings/mocha
.d.ts'/>
/// <reference path='../../
node_modules/@types/mocha/index
.d.ts'/>
/// <reference path='../../node_modules/@types/node/index.d.ts'/>
extensions/vscode-api-tests/typings/mocha.d.ts
已删除
100644 → 0
浏览文件 @
c342eaa2
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare
function
run
():
void
;
declare
function
suite
(
name
:
string
,
fn
:
(
err
?)
=>
void
);
declare
function
test
(
name
:
string
,
fn
:
()
=>
void
);
declare
function
test
(
name
:
string
,
fn
:
(
done
:
(
err
?)
=>
void
)
=>
void
);
declare
function
suiteSetup
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
suiteTeardown
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
setup
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
teardown
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
extensions/vscode-colorize-tests/package.json
浏览文件 @
8dad2594
...
...
@@ -13,6 +13,7 @@
"postinstall"
:
"node ./node_modules/vscode/bin/install"
},
"devDependencies"
:
{
"@types/mocha"
:
"^2.2.38"
,
"@types/node"
:
"^7.0.4"
,
"typescript"
:
"^1.6.2"
,
"vscode"
:
"1.0.1"
...
...
extensions/vscode-colorize-tests/src/typings/ref.d.ts
浏览文件 @
8dad2594
...
...
@@ -3,5 +3,5 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/// <reference path='../../
../../src/typings/mocha
.d.ts'/>
/// <reference path='../../
node_modules/@types/mocha/index
.d.ts'/>
/// <reference path='../../node_modules/@types/node/index.d.ts'/>
extensions/vscode-colorize-tests/typings/mocha.d.ts
已删除
100644 → 0
浏览文件 @
c342eaa2
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare
function
run
():
void
;
declare
function
suite
(
name
:
string
,
fn
:
(
err
?)
=>
void
);
declare
function
test
(
name
:
string
,
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
suiteSetup
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
suiteTeardown
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
setup
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
declare
function
teardown
(
fn
:
(
done
?:
(
err
?)
=>
void
)
=>
void
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录