Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
2693574b
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2693574b
编写于
7月 20, 2021
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more API todos
上级
c1a4d2da
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
4 deletion
+14
-4
src/vs/vscode.proposed.d.ts
src/vs/vscode.proposed.d.ts
+14
-4
未找到文件。
src/vs/vscode.proposed.d.ts
浏览文件 @
2693574b
...
...
@@ -1795,6 +1795,7 @@ declare module 'vscode' {
* @param label Human-readable label of the test item.
* @param uri URI this TestItem is associated with. May be a file or directory.
*/
// todo@API move into TestController
export
function
createTestItem
(
id
:
string
,
label
:
string
,
uri
?:
Uri
):
TestItem
;
/**
...
...
@@ -1926,7 +1927,7 @@ declare module 'vscode' {
/**
* Entry point to discover and execute tests. It contains {@link items} which
* are used to populate the editor UI, and is associated with
* {@link createRunProfile
|
run profiles} to allow
* {@link createRunProfile run profiles} to allow
* for tests to be executed.
*/
export
interface
TestController
{
...
...
@@ -1987,7 +1988,7 @@ declare module 'vscode' {
* {@link TestRunner} when a request is made to execute tests, and may also
* be called if a test run is detected externally. Once created, tests
* that are included in the results will be moved into the
* {@link TestResultState.Pending} state.
* {@link TestResultState.Pending} state.
todo@API there is no Pending
*
* All runs created using the same `request` instance will be grouped
* together. This is useful if, for example, a single suite of tests is
...
...
@@ -2021,6 +2022,7 @@ declare module 'vscode' {
* any tests that appear in {@link TestRunRequest.exclude}. If this is
* not given, then the extension should simply run all tests.
*/
// todo@API "...run all tests." which can mean resolve all tests first
include
?:
TestItem
[];
/**
...
...
@@ -2028,6 +2030,7 @@ declare module 'vscode' {
* omitted if no exclusions were requested. Test controllers should not run
* excluded tests or any children of excluded tests.
*/
// @todo@API say that exclude is more important than include!
exclude
?:
TestItem
[];
/**
...
...
@@ -2048,6 +2051,7 @@ declare module 'vscode' {
/**
* Options given to {@link TestController.runTests}
*/
// todo@API add readonly or rw `isPersisted: boolean`
export
interface
TestRun
{
/**
* The human-readable name of the run. This can be used to
...
...
@@ -2072,6 +2076,7 @@ declare module 'vscode' {
* @param state The state to assign to the test
* @param duration Optionally sets how long the test took to run, in milliseconds
*/
// todo@API clarify duration, either add doc or new composite type
setState
(
test
:
TestItem
,
state
:
TestResultState
,
duration
?:
number
):
void
;
/**
...
...
@@ -2083,6 +2088,7 @@ declare module 'vscode' {
* @param test The test to update
* @param message The message to add
*/
// todo@API can this called many times, should this be part of setState?
appendMessage
(
test
:
TestItem
,
message
:
TestMessage
):
void
;
/**
...
...
@@ -2091,7 +2097,6 @@ declare module 'vscode' {
* such as colors and text styles, are supported.
*
* @param output Output text to append
* @param associateTo Optionally, associate the given segment of output
*/
appendOutput
(
output
:
string
):
void
;
...
...
@@ -2112,6 +2117,8 @@ declare module 'vscode' {
* Updates the items stored by the collection.
* @param items Items to store, can be an array or other iterable.
*/
// todo@API no Iterable
// todo@API better names: reset, update...
set
(
items
:
Iterable
<
TestItem
>
):
void
;
/**
...
...
@@ -2174,12 +2181,13 @@ declare module 'vscode' {
/**
* Indicates whether this test item may have children discovered by resolving.
* If so, it will be shown as expandable in the Test Explorer
view, and
* If so, it will be shown as expandable in the Test Explorer view, and
* expanding the item will cause {@link TestController.resolveChildrenHandler}
* to be invoked with the item.
*
* Default to false.
*/
// todo@API better names: isLeaf, isLeaf{Type|Node}, canHaveChildren
canResolveChildren
:
boolean
;
/**
...
...
@@ -2229,6 +2237,7 @@ declare module 'vscode' {
*/
export
enum
TestResultState
{
// Initial state
// todo@API what is this state for? not needed, has no references
Unset
=
0
,
// Test will be run, but is not currently running.
Queued
=
1
,
...
...
@@ -2267,6 +2276,7 @@ declare module 'vscode' {
/**
* Message severity. Defaults to "Error".
*/
// todo@API maybe not needed? what does it change?
severity
:
TestMessageSeverity
;
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录