-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin-ext: late textmate grammar activation
There is a race condition when the layout is restored: if an editor was opened, it will be restored and wait for some language activation event. The issue with this was first seen with the builtin cpp extension: two cpp grammars are contributed, but the first one is not the right one to use on a cpp file. When an editor opened, the first bogus grammar is loaded and activated, triggering bogus coloration. This commit ensures that all grammars are more correctly contributed before activating anything in the next event-loop tick. Signed-off-by: Paul Maréchal <[email protected]>
- Loading branch information
1 parent
37fa343
commit c5d3708
Showing
1 changed file
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters