We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38b20d5 commit 58f6626Copy full SHA for 58f6626
1 file changed
src/persistence/serialization/serializer.ts
@@ -9,7 +9,9 @@ export class Serializer {
9
return {
10
count: reaction.count,
11
iconPath: fullPathtoRelative(
12
- reaction.iconPath.toString(),
+ typeof reaction.iconPath === 'string'
13
+ ? reaction.iconPath
14
+ : reaction.iconPath.fsPath,
15
Resource.extensionPath,
16
),
17
label: reaction.label,
0 commit comments