remove vscode-uri dep, release 0.1.2 ext version
This commit is contained in:
parent
9aa97f66b0
commit
f7bf1681d6
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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==
|
||||
|
|
Loading…
Reference in New Issue
Block a user