Skip to content

Commit 27399a5

Browse files
authored
Split up main.py (sublimelsp#170)
`boot.py` loads modules under the `plugin` and `plugin/core` folders.
1 parent 0af7827 commit 27399a5

30 files changed

+3020
-2663
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ before_install:
55
- pip install mypy
66
- pip install flake8
77
script:
8-
- mypy main.py
9-
- flake8
8+
- mypy -p plugin
9+
- flake8 --exclude=./boot.py

boot.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from .plugin.core.main import startup, shutdown, LspStartClientCommand, LspRestartClientCommand
2+
3+
# TODO: narrow down imports
4+
from .plugin.core.panels import *
5+
from .plugin.core.documents import *
6+
from .plugin.core.edit import *
7+
from .plugin.completion import *
8+
from .plugin.diagnostics import *
9+
from .plugin.configuration import *
10+
from .plugin.formatting import *
11+
from .plugin.definition import *
12+
from .plugin.hover import *
13+
from .plugin.references import *
14+
from .plugin.signature_help import *
15+
from .plugin.code_actions import *
16+
from .plugin.symbols import *
17+
from .plugin.rename import *
18+
19+
20+
def plugin_loaded():
21+
startup()
22+
23+
24+
def plugin_unloaded():
25+
shutdown()

0 commit comments

Comments
 (0)