For my LSP plugin I wanted a way to verify that Sublime Text’s API was being used correctly while coding.
I found the mypy project, which provides both a linter and a stub generator.
Generating stubs on sublime.py and sublime_plugin.py resulted in incomplete stubs, which I manually completed.
Feel free to take these stubs from https://github.com/tomv564/LSP/tree/master/stubs for your own use. Is there a preferred way to distribute them?
If Jedi could eventually support these stubs, we will get good tools for autocompletion as well (see https://github.com/davidhalter/jedi/issues/839)
Are there some other ways to get completion or verification of the Sublime Text API outside of Sublime Text?