File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/vs/workbench/api/common Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
119
119
return arg ;
120
120
}
121
121
122
- const body = arg . text ;
122
+ const body : string = arg . text ;
123
123
const commentUniqueId = arg . commentUniqueId ;
124
124
125
125
const comment = commentThread . getCommentByUniqueId ( commentUniqueId ) ;
@@ -128,7 +128,12 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
128
128
return arg ;
129
129
}
130
130
131
- comment . body = body ;
131
+ // If the old comment body was a markdown string, use a markdown string here too.
132
+ if ( typeof comment . body === 'string' ) {
133
+ comment . body = body ;
134
+ } else {
135
+ comment . body . value = body ;
136
+ }
132
137
return comment ;
133
138
}
134
139
You can’t perform that action at this time.
0 commit comments