tldraw/apps/vscode/extension/src/extension.ts
Steve Ruiz e6a3e5c3ea
[big chore] restore core to monorepo (#287)
* move core into repo, apps into apps folder, update tests

* Update scripts for build:core

* improve scripts

* remove noise from www

* Update .gitignore

* Fix focus bug

* add ci test script

* Update main.yml
2021-11-18 13:09:18 +00:00

11 lines
347 B
TypeScript

import * as vscode from 'vscode'
import { TldrawEditorProvider } from './TldrawEditorProvider'
// When a .tldr is first opened or created, activate the extension.
export function activate(context: vscode.ExtensionContext) {
try {
context.subscriptions.push(TldrawEditorProvider.register(context))
} catch (e) {
console.error(e)
}
}