Skip to content

Commit 4223cc9

Browse files
committed
fix [object Object] in invalid decorator warning
when there's an invalid decorator, you get a warning like this: ``` [warning] INVALID decoration from extension '[object Object]': Error: The decoration is empty ``` as is done elsewhere in this file, should use `extensionId.identifier.value` to get a string
1 parent 6c8cdf3 commit 4223cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/common/extHostDecorations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class ExtHostDecorations implements ExtHostDecorationsShape {
106106
}
107107
result[id] = <DecorationData>[data.propagate, data.tooltip, data.badge, data.color];
108108
} catch (e) {
109-
this._logService.warn(`INVALID decoration from extension '${extensionId}': ${e}`);
109+
this._logService.warn(`INVALID decoration from extension '${extensionId.identifier.value}': ${e}`);
110110
}
111111
} catch (err) {
112112
this._logService.error(err);

0 commit comments

Comments
 (0)