File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change 7
7
* Copyright (c) 2022 ccagml . All rights reserved.
8
8
*/
9
9
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" ;
11
21
12
22
export interface IQuickItemEx < T > extends QuickPickItem {
13
23
value : T ;
@@ -259,6 +269,29 @@ export interface ISubmitEvent {
259
269
accepted : boolean ;
260
270
}
261
271
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
+
262
295
export interface IWebViewOption {
263
296
title : string ;
264
297
viewColumn : ViewColumn ;
You can’t perform that action at this time.
0 commit comments