From 53d74c8fc5d85d79922cd6964505ab1002210136 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Tue, 16 Nov 2021 16:09:01 +0000 Subject: [PATCH] bump vscode extension --- electron/package.json | 6 +++--- package.json | 1 + vscode/extension/package.json | 12 ++++++------ vscode/extension/src/TLDrawEditorProvider.ts | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/electron/package.json b/electron/package.json index cdd7c59e4..8b8396477 100644 --- a/electron/package.json +++ b/electron/package.json @@ -35,9 +35,9 @@ }, "build": { "appId": "io.comp.tldraw-electron", - "productName": "TLDraw", + "productName": "tldraw", "extraMetadata": { - "name": "TLDraw", + "name": "tldraw", "main": "main.js" }, "files": [ @@ -75,4 +75,4 @@ "publish": null }, "gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6" -} +} \ No newline at end of file diff --git a/package.json b/package.json index 5eefb01a6..2674211b7 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "build": "yarn build:packages && cd www && yarn build", "build:packages": "cd packages/tldraw && yarn build", "publish:patch": "yarn test && yarn build:packages && lerna publish patch", + "publish:vscode": "cd vscode/extension && yarn version && yarn package && vsce publish", "docs": "lerna run docs", "docs:watch": "lerna run docs:watch", "postinstall": "husky install", diff --git a/vscode/extension/package.json b/vscode/extension/package.json index 4878bb564..162a0c727 100644 --- a/vscode/extension/package.json +++ b/vscode/extension/package.json @@ -1,7 +1,7 @@ { "name": "tldraw-vscode", - "displayName": "TLDraw", - "description": "The TLDraw Extension for VS Code.", + "displayName": "tldraw", + "description": "The tldraw Extension for VS Code.", "version": "1.0.0", "license": "MIT", "publisher": "tldraw-org", @@ -43,7 +43,7 @@ "customEditors": [ { "viewType": "tldraw.tldr", - "displayName": "TLDraw", + "displayName": "tldraw", "selector": [ { "filenamePattern": "*.tldr" @@ -54,8 +54,8 @@ "commands": [ { "command": "tldraw.tldr.new", - "title": "New TLDraw File", - "category": "TLDraw" + "title": "New tldraw File", + "category": "tldraw" } ] }, @@ -79,4 +79,4 @@ "typescript": "^4.4.3", "vsce": "^2.2.0" } -} +} \ No newline at end of file diff --git a/vscode/extension/src/TLDrawEditorProvider.ts b/vscode/extension/src/TLDrawEditorProvider.ts index 45fdf7c2d..902f5dd3e 100644 --- a/vscode/extension/src/TLDrawEditorProvider.ts +++ b/vscode/extension/src/TLDrawEditorProvider.ts @@ -12,12 +12,12 @@ export class TldrawEditorProvider implements vscode.CustomTextEditorProvider { private static newTDFileId = 1 - private static readonly viewType = 'Tldraw.tldr' + private static readonly viewType = 'tldraw.tldr' public static register = (context: vscode.ExtensionContext): vscode.Disposable => { // Register the 'Create new Tldraw file' command, which creates // a temporary .tldr file and opens it in the editor. - vscode.commands.registerCommand('Tldraw.tldr.new', () => { + vscode.commands.registerCommand('tldraw.tldr.new', () => { const id = TldrawEditorProvider.newTDFileId++ const name = id > 1 ? `New Document ${id}.tldr` : `New Document.tldr`