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
Sublime Text 4 included a lot of changes relevant to us, notably the addition of a Python 3.8 plugin host (and later 3.13, potentially 3.14) and a couple changes to the API like making settings iterable.
Python 3.8
Compat/types
Remove enum, pathlib, and typing from _compat and import the native versions instead. (f3c0e89)
Possibly use from __future__ import annotations. (13f7637)
Simplify/update some type annotations.
Other
Make SettingsDict.update's other argument positional-only. (abbba87)
Sublime Text 4 included a lot of changes relevant to us, notably the addition of a Python 3.8 plugin host (and later 3.13, potentially 3.14) and a couple changes to the API like making settings iterable.
Python 3.8
Compat/types
_compatand import the native versions instead. (f3c0e89)from __future__ import annotations.(13f7637)Other
SettingsDict.update'sotherargument positional-only. (abbba87)Sublime 4 API
Flags
New values for existing enums
PopupOption:KEEP_ON_SELECTION_MODIFIED,HIDE_ON_CHARACTER_EVENT.OpenFileOption:ADD_TO_SELECTION,REPLACE_MRU,SEMI_TRANSIENTCompletionOptions:DYNAMIC_COMPLETIONS,INHIBIT_REORDERQuickPanelOption:WANT_EVENTAll enums have been deprecated in 2.1.
New enums
CompletionFormat:TEXT,SNIPPET,COMMANDKindId:AMBIGUOUS,KEYWORD,TYPE,FUNCTION,NAMESPACE,NAVIGATION,MARKUP,VARIABLE,SNIPPET,COLOR_*Maybe one for the preconstructed kind tuples as well.SymbolSource:ANY,INDEX,OPEN_FILESSymbolType:ANY,DEFINITION,REFERENCEWe will not add new enums.
Syntax
list_syntaxesandget_syntax_for_scopeusingsublime.list_syntaxesandsublime.find_syntax_by_scope.sublime.Syntaxinstead ofSyntaxInfonamedtuple.Settings
Panels
Panel.exists()usingView.element()?????show_selection_panelQuickPanelItemarguments.placeholderargument.WANT_EVENT(i.e. make sure we pass the correct number of arguments in either case).Ecosystem