3c2c26c11e
* Add turbo run lint * Add lint to all apps and examples * Update eslint with monorepo configuration see: https://typescript-eslint.io/docs/linting/typed-linting/monorepos#one-tsconfigjson-per-package-and-an-optional-one-in-the-root * Remove unused rules * Exclude @tldraw/www from global eslint config * Remove duplicated eslint * Fix eslint prefer-const errors * Fix eslint no-unused-vars warning * Update package.json * Fix eslint no-unused-vars warning * bump eslint@^8.20.0 * Correct "Fix eslint no-unused-vars warning" This reverts commit 0158a2585af84b623f2c5581412252c8471375ae. |
||
---|---|---|
.. | ||
editor | ||
extension | ||
README.md |
@tldraw/vscode
This folder contains the source for the tldraw VS Code extension.
Developing
1. Install dependencies
- Run
yarn
from the root folder
2. Build @tldraw/tldraw
- Run
yarn build:packages
from the root folder.
3. Start the editor
In the root folder:
- Run
yarn start:vscode
.
This will start the development server for the vscode/editor
project and open the vscode/extension
folder in a new window.
In the vscode/extension
window, open the terminal and run:
- Install dependencies (
yarn
) - Start the VS Code debugger (Menu > Run > Start Debugging)
Open a .tldr
file or create a new .tldr
file from the command palette.
Publishing
To publish, chat with the team on the Discord channel.
- Install
vsce
globally - Run
vsce login tldraw-org
and sign in
In the vscode/extension
folder:
- Run
yarn vscode:publish
References
- VS Code Marketplace Manager
- Web Extensions Guide
- Test Your Web Extension
- Web Extension Testing
- An example custom editor that does work as a Web Extension
- VS Code Extension API/Landing Page
- Getting Started
- Custom Editor API
- github.com/microsoft/vscode-extension-samples
- Extensions Guide -> Webviews
- Publishing Extensions