From f7bf1681d62cbb372abee9b2c4d0c3c5d2213ed4 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Tue, 21 Jun 2022 01:07:27 +0300 Subject: [PATCH] remove vscode-uri dep, release 0.1.2 ext version --- packages/vscode-ext/package.json | 5 +---- packages/vscode-ext/src/preview.ts | 4 ++-- yarn.lock | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/vscode-ext/package.json b/packages/vscode-ext/package.json index db6dcfa6..af70abda 100644 --- a/packages/vscode-ext/package.json +++ b/packages/vscode-ext/package.json @@ -3,7 +3,7 @@ "displayName": "Squiggle", "description": "Squiggle language support", "license": "MIT", - "version": "0.1.0", + "version": "0.1.2", "publisher": "QURI", "repository": { "type": "git", @@ -143,8 +143,5 @@ "glob": "^8.0.3", "js-yaml": "^4.1.0", "typescript": "^4.7.4" - }, - "dependencies": { - "vscode-uri": "^3.0.3" } } diff --git a/packages/vscode-ext/src/preview.ts b/packages/vscode-ext/src/preview.ts index 04c57c86..81e4da47 100644 --- a/packages/vscode-ext/src/preview.ts +++ b/packages/vscode-ext/src/preview.ts @@ -1,12 +1,12 @@ import * as vscode from "vscode"; -import * as uri from "vscode-uri"; +import * as path from "path"; import { getWebviewContent } from "./utils"; export const registerPreviewCommand = (context: vscode.ExtensionContext) => { context.subscriptions.push( vscode.commands.registerTextEditorCommand("squiggle.preview", (editor) => { // Create and show a new webview - const title = `Preview ${uri.Utils.basename(editor.document.uri)}`; + const title = `Preview ${path.basename(editor.document.uri.path)}`; const panel = vscode.window.createWebviewPanel( "squigglePreview", diff --git a/yarn.lock b/yarn.lock index 58d044d6..b1c89aa7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4344,7 +4344,7 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.0.9": +"@types/react@*", "@types/react@^18.0.1", "@types/react@^18.0.9": version "18.0.14" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.14.tgz#e016616ffff51dba01b04945610fe3671fdbe06d" integrity sha512-x4gGuASSiWmo0xjDLpm5mPb52syZHJx02VKbqUKdLmKtAwIh63XClGsiTI1K6DO5q7ox4xAsQrU+Gl3+gGXF9Q== @@ -14791,7 +14791,7 @@ react-vega@^7.5.1: prop-types "^15.8.1" vega-embed "^6.5.1" -react@^18.1.0: +react@^18.0.0, react@^18.1.0: version "18.2.0" resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==