Skip to content

Commit

Permalink
Align the Comments plugin API with the latest vscode
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Vinokur <[email protected]>
  • Loading branch information
vinokurig committed Sep 21, 2020
1 parent 4739e26 commit 0fe951a
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 154 deletions.
14 changes: 7 additions & 7 deletions packages/plugin-ext/src/plugin/plugin-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,16 +785,16 @@ export function createAPIFactory(
}
};

const comment: typeof theia.comment = {
const comments: typeof theia.comments = {
createCommentController(id: string, label: string): theia.CommentController {
// TODO replace the dummy implementation, see https://github.com/eclipse-theia/theia/issues/8492
return {
id, label, inputBox: undefined,
createCommentThread(commentId: string, resource: Uri, range: Range, comments: theia.Comment[]): theia.CommentThread {
id, label,
createCommentThread(uri: Uri, range: Range, commentsArray: theia.Comment[]): theia.CommentThread {
return {
id: commentId,
resource,
uri,
range,
comments,
comments: commentsArray,
collapsibleState: 0,
dispose(): void {
}
Expand All @@ -810,7 +810,7 @@ export function createAPIFactory(
version: require('../../package.json').version,
authentication,
commands,
comment,
comments,
window,
workspace,
env,
Expand Down
Loading

0 comments on commit 0fe951a

Please sign in to comment.