Skip to content

Commit acef780

Browse files
committed
update
1 parent a7b5831 commit acef780

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

src/model/Model.ts

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@
77
* Copyright (c) 2022 ccagml . All rights reserved.
88
*/
99

10-
import { ViewColumn, QuickPickItem, MessageItem } from "vscode";
10+
import {
11+
ViewColumn,
12+
QuickPickItem,
13+
MessageItem,
14+
Comment,
15+
MarkdownString,
16+
CommentMode,
17+
CommentAuthorInformation,
18+
CommentThread,
19+
} from "vscode";
20+
import { getDayNowM } from "../utils/SystemUtils";
1121

1222
export interface IQuickItemEx<T> extends QuickPickItem {
1323
value: T;
@@ -259,6 +269,29 @@ export interface ISubmitEvent {
259269
accepted: boolean;
260270
}
261271

272+
export class RemarkComment implements Comment {
273+
id: number;
274+
label: string | undefined;
275+
constructor(
276+
public body: string | MarkdownString,
277+
public mode: CommentMode,
278+
public author: CommentAuthorInformation,
279+
public parent?: CommentThread,
280+
public contextValue?: string
281+
) {
282+
this.id = getDayNowM();
283+
this.label = "";
284+
}
285+
286+
getDbString() {
287+
let a = {
288+
name: this.author.name,
289+
id: this.id,
290+
body: this.body,
291+
};
292+
}
293+
}
294+
262295
export interface IWebViewOption {
263296
title: string;
264297
viewColumn: ViewColumn;

0 commit comments

Comments
 (0)