Skip to content

FormatBar: always update formatbar when language identified - #1799

Merged
zeebok merged 3 commits into
masterfrom
jeremypw/FormatBar/fix-set-doc
Aug 15, 2026
Merged

FormatBar: always update formatbar when language identified#1799
zeebok merged 3 commits into
masterfrom
jeremypw/FormatBar/fix-set-doc

Conversation

@jeremypw

Copy link
Copy Markdown
Collaborator

Fixes #1798

The issue is caused by a race between updating the format bar and loading/guessing the language. The former usually wins and the fallback language is shown.

This PR ensures the format bar is not updated until the document has finished loading and also monitors the "language" property of the document for changes.

@jeremypw
jeremypw marked this pull request as ready for review August 14, 2026 16:19
@jeremypw jeremypw added this to the 8.3.x milestone Aug 14, 2026
@jeremypw jeremypw changed the title Ensure update language when doc loaded and language identified FormatBar: always update formatbar when language identified Aug 14, 2026
@zeebok
zeebok merged commit 8d4e632 into master Aug 15, 2026
6 checks passed
@zeebok
zeebok deleted the jeremypw/FormatBar/fix-set-doc branch August 15, 2026 15:21
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.

Language shown in format bar incorrect when document first opened

2 participants