Skip to content

Conversation

@a-stewart
Copy link
Contributor

If you run Format Document on a file with a formatter provided by an extension, the detailed reason is: {source: 'unknown', name: undefined}.

The reason that the name is undefined is that in codeEditorWidget.ts, the name is set to sourceStr, but sourceStr is not set until the line below, as such it is called with name: undefined.

This PR should fix that.

I'll also send a more comprehensive PR which will also pass through the provider id as that seems to be missing here too.

@a-stewart
Copy link
Contributor Author

@Tyriar fyi - seems like a new PR flow is not running checks without approval and seems to to be notifying reviewers until the checks run.

@Tyriar
Copy link
Member

Tyriar commented Jan 22, 2026

@a-stewart this has been the case for quite a while now, it's annoying but important for security unfortunately.

@Tyriar Tyriar assigned hediet and unassigned Tyriar Jan 22, 2026
@a-stewart
Copy link
Contributor Author

@hediet - friendly ping on this - not sure if assigning notifies you.

@hediet hediet added this to the February 2026 milestone Jan 28, 2026
@a-stewart
Copy link
Contributor Author

Thanks - I don't think I have permission to merge this, even after it is approved though

@hediet hediet merged commit 7624fc3 into microsoft:main Jan 29, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants