void/LINEMAGE_VSCODE_GUIDE.md

2.6 KiB

Useful links

Useful links when learning about the VS Code sourcecode:

Getting started

Contributing

VERY USEFUL - How VS Code's sourcecode is organized (describes entry point files, what browser/ and common/ mean, etc, read the whole thing!)

Building VS Code's source

https://github.com/microsoft/vscode/wiki/How-to-Contribute

Summary

Editor: /vs/editor/contrib = allowed to depend on browser env /vs/editor/{common|browser} = core code ('common' and 'browser' are the only two envs that are allowed here) /vs/editor/{standalone} = seems unimportant - something about the standalone editor

Workbench: /vs/workbench/contrib: - no deps from outside here are allowed - each contrib needs a single contribname.contribution.ts which serves as the entrypoint (eg /search/browser/search.contribution.ts) - the contribution should expose its internal api from only 1 entrypoint and only be accessed from there, nowhere else (eg /search/common/search.ts) - sounds like all services, etc should be managed by that one entrypoint /vs/workbench/api = provides vscode.d.ts to iinterface with stuff outside of /workbench/contrib /vs/workbench/{common|browser|electron-sandbox} = core code, "as minimal as possible"

TODO andrew finish writing the summary from written notes (some visuals...)