mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
@@ -618,18 +618,16 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
|
||||
const iconPath = vscodeComment.author && vscodeComment.author.iconPath ? vscodeComment.author.iconPath.toString() : undefined;
|
||||
|
||||
if (vscodeComment.detail) {
|
||||
if (vscodeComment.timestamp) {
|
||||
checkProposedApiEnabled(thread.extensionDescription, 'commentTimestamp');
|
||||
}
|
||||
|
||||
let detail: { $mid: MarshalledId.Date, source: any } | string | undefined;
|
||||
if (vscodeComment.detail && (typeof vscodeComment.detail !== 'string')) {
|
||||
detail = {
|
||||
source: vscodeComment.detail,
|
||||
let timestamp: { $mid: MarshalledId.Date, source: any } | undefined;
|
||||
if (vscodeComment.timestamp) {
|
||||
timestamp = {
|
||||
source: vscodeComment.timestamp,
|
||||
$mid: MarshalledId.Date
|
||||
};
|
||||
} else {
|
||||
detail = vscodeComment.detail;
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -641,7 +639,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
userIconPath: iconPath,
|
||||
label: vscodeComment.label,
|
||||
commentReactions: vscodeComment.reactions ? vscodeComment.reactions.map(reaction => convertToReaction(reaction)) : undefined,
|
||||
detail: detail
|
||||
timestamp
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user