-
Notifications
You must be signed in to change notification settings - Fork 4
2.2 Python Library API
Eric Snow edited this page Jul 29, 2020
·
4 revisions
design objectives:
- adapt the VS Code API to a more Pythonic design
- parallel the TS API as much as possible, so the mapping remains obvious
structure:
vscode/
extension/
project/
.templates/ # used by `init`
...
__init__.py
__main__.py # the tool (`init`, `generate`, etc.)
...
__init__.py
metadata.py
api/ # high-level wrapper for functionality in vscode._daemon.client (mirrors VS Code's API) (plus helpers?)
__init__.py
...
_daemon/
server/
__init__.py
__main__.py # invoked by the typescript extension
...
client/
__init__.py
...
util/
__init__.py
...
__init__.py
...