Skip to content

Conversation

hediet
Copy link
Member

@hediet hediet commented Aug 22, 2025

Fixes #262986
FYI @benibenj

@hediet hediet enabled auto-merge (rebase) August 22, 2025 20:51
@hediet hediet self-assigned this Aug 22, 2025
@vs-code-engineering vs-code-engineering bot added this to the August 2025 milestone Aug 22, 2025
@@ -53,7 +53,7 @@ interface IFetchResult {
* The sourceLabel must not contain '@'!
*/
export function formatRecordableLogEntry<T extends IRecordableLogEntry>(entry: T): string {
return entry.sourceId + ' @@ ' + JSON.stringify({ ...entry, sourceId: undefined });
return entry.sourceId + ' @@ ' + JSON.stringify({ ...entry, modelUri: (entry as any).modelUri?.toString(), sourceId: undefined });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsafe? Could this get mangled in product build?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for paying attention to code smells :)
But I think it is fine here, this is debug logging only. And no, it cannot get mangled, as this is a json object (which would break all kinds of interop, if json object properties would get mangled).

@hediet hediet merged commit 1f6f0fc into main Aug 22, 2025
18 checks passed
@hediet hediet deleted the hediet/b/visiting-grasshopper branch August 22, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NES has preference over Copilot Inline Completions, but it shouldn't
3 participants