Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
f87809dd
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,发现更多精彩内容 >>
提交
f87809dd
编写于
3月 15, 2019
作者:
P
Peng Lyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update comments for new comment api
上级
579e4ac0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
39 addition
and
9 deletion
+39
-9
src/vs/vscode.proposed.d.ts
src/vs/vscode.proposed.d.ts
+39
-9
未找到文件。
src/vs/vscode.proposed.d.ts
浏览文件 @
f87809dd
...
...
@@ -803,6 +803,11 @@ declare module 'vscode' {
* Defaults to Collapsed.
*/
collapsibleState
?:
CommentThreadCollapsibleState
;
/**
* Dispose this comment thread.
* Once disposed, the comment thread will be removed from visible text editors and Comments Panel.
*/
dispose
?():
void
;
}
...
...
@@ -821,7 +826,8 @@ declare module 'vscode' {
body
:
MarkdownString
;
/**
* Label describing the [Comment](#Comment)
* Optional label describing the [Comment](#Comment)
* Label will be rendered next to userName if exists.
*/
label
?:
string
;
...
...
@@ -835,7 +841,6 @@ declare module 'vscode' {
*/
userIconPath
?:
Uri
;
/**
* @deprecated Use userIconPath instead. The avatar src of the user who created the comment
*/
...
...
@@ -872,13 +877,30 @@ declare module 'vscode' {
*/
selectCommand
?:
Command
;
/**
* The command to be executed when users try to save the edits to the comment
*/
editCommand
?:
Command
;
/**
* The command to be executed when users try to delete the comment
*/
deleteCommand
?:
Command
;
/**
* Deprecated
*/
isDraft
?:
boolean
;
/**
* Proposed Comment Reaction
*/
commentReactions
?:
CommentReaction
[];
}
/**
* Deprecated
*/
export
interface
CommentThreadChangedEvent
{
/**
* Added comment threads.
...
...
@@ -901,6 +923,9 @@ declare module 'vscode' {
readonly
inDraftMode
:
boolean
;
}
/**
* Comment Reactions
*/
interface
CommentReaction
{
readonly
label
?:
string
;
readonly
iconPath
?:
string
|
Uri
;
...
...
@@ -971,23 +996,28 @@ declare module 'vscode' {
onDidChangeCommentThreads
:
Event
<
CommentThreadChangedEvent
>
;
}
/**
* The comment input box in Comment Widget.
*/
export
interface
CommentInputBox
{
/**
* Setter and getter for the contents of the input box.
* Setter and getter for the contents of the
comment
input box.
*/
value
:
string
;
}
export
interface
CommentingRangeProvider
{
provideCommentingRanges
(
document
:
TextDocument
,
token
:
CancellationToken
):
ProviderResult
<
Range
[]
>
;
}
export
interface
CommentReactionProvider
{
availableReactions
:
CommentReaction
[];
toggleReaction
?(
document
:
TextDocument
,
comment
:
Comment
,
reaction
:
CommentReaction
):
Promise
<
void
>
;
}
export
interface
CommentingRangeProvider
{
/**
* Provide a list of ranges which allow new comment threads creation or null for a given document
*/
provideCommentingRanges
(
document
:
TextDocument
,
token
:
CancellationToken
):
ProviderResult
<
Range
[]
>
;
}
export
interface
EmptyCommentThreadFactory
{
/**
* The method `createEmptyCommentThread` is called when users attempt to create new comment thread from the gutter or command palette.
...
...
@@ -1026,7 +1056,7 @@ declare module 'vscode' {
/**
* Optional new comment thread factory.
*/
emptyCommentThreadFactory
:
EmptyCommentThreadFactory
;
emptyCommentThreadFactory
?
:
EmptyCommentThreadFactory
;
/**
* Optional reaction provider
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录