Merge from vscode 071a5cf16fc999727acc31c790d78f750fa4b166 (#5261)

This commit is contained in:
Anthony Dresser
2019-04-30 07:54:56 -07:00
committed by GitHub
parent 02916aeffa
commit aacc0eca67
24 changed files with 564 additions and 238 deletions

View File

@@ -1211,6 +1211,16 @@ export interface Command {
arguments?: any[];
}
/**
* @internal
*/
export interface CommentThreadTemplate {
label: string;
acceptInputCommand?: Command;
additionalCommands?: Command[];
deleteCommand?: Command;
}
/**
* @internal
*/
@@ -1220,6 +1230,7 @@ export interface CommentInfo {
commentingRanges?: (IRange[] | CommentingRanges);
reply?: Command;
draftMode?: DraftMode;
template?: CommentThreadTemplate;
}
/**
@@ -1298,8 +1309,7 @@ export interface CommentThread2 {
export interface CommentingRanges {
readonly resource: URI;
ranges: IRange[];
newCommentThreadCommand?: Command;
newCommentThreadCallback?: (uri: UriComponents, range: IRange) => Promise<void>;
newCommentThreadCallback?: (uri: UriComponents, range: IRange) => Promise<CommentThread | undefined>;
}
/**