You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another approach to stop language detection from stomping over changes (microsoft#159782)
* Another approach to stop language detection from stomping over changes
This change does two important things:
1. Has the higher level `EditorModel` listen for when the lower level model changes languages (this is important because many things change the language at that level instead of this higher level)
2. adds a `reason` to this event so that the language detection can ignore language changes events that it caused.
* use a better pattern
* 💄
* 💄
* also register the disposable
* change to source and have a couple places set the source to the command id
* add a couple tests
Co-authored-by: Benjamin Pasero <[email protected]>
0 commit comments