diff options
author | 2023-08-24 22:24:28 -0700 | |
---|---|---|
committer | 2023-08-24 22:24:28 -0700 | |
commit | 9e2ddb936ec48c6341cc76948e16868e6db06a13 (patch) | |
tree | 25048e0792d4a46ed9e85b665020909f40795aee | |
parent | dacd00d7082fede526867f145dd36456143ee263 (diff) | |
download | bun-9e2ddb936ec48c6341cc76948e16868e6db06a13.tar.gz bun-9e2ddb936ec48c6341cc76948e16868e6db06a13.tar.zst bun-9e2ddb936ec48c6341cc76948e16868e6db06a13.zip |
Prepare for extension 2
-rwxr-xr-x | packages/bun-debug-adapter-protocol/bun.lockb | bin | 2323 -> 2736 bytes | |||
-rw-r--r-- | packages/bun-debug-adapter-protocol/package.json | 7 | ||||
-rw-r--r-- | packages/bun-vscode/README.md | 23 | ||||
-rwxr-xr-x | packages/bun-vscode/bun.lockb | bin | 12989 -> 14484 bytes | |||
-rw-r--r-- | packages/bun-vscode/package.json | 116 |
5 files changed, 85 insertions, 61 deletions
diff --git a/packages/bun-debug-adapter-protocol/bun.lockb b/packages/bun-debug-adapter-protocol/bun.lockb Binary files differindex 68b641658..ccae05ab8 100755 --- a/packages/bun-debug-adapter-protocol/bun.lockb +++ b/packages/bun-debug-adapter-protocol/bun.lockb diff --git a/packages/bun-debug-adapter-protocol/package.json b/packages/bun-debug-adapter-protocol/package.json index 2fdec5657..8bf68cf01 100644 --- a/packages/bun-debug-adapter-protocol/package.json +++ b/packages/bun-debug-adapter-protocol/package.json @@ -1,9 +1,8 @@ { "name": "bun-debug-adapter-protocol", - "devDependencies": { - "source-map-js": "^1.0.2" - }, "dependencies": { - "semver": "^7.5.4" + "semver": "^7.5.4", + "ws": "^8.13.0", + "source-map-js": "^1.0.2" } } diff --git a/packages/bun-vscode/README.md b/packages/bun-vscode/README.md index c676083e9..08c81fb2f 100644 --- a/packages/bun-vscode/README.md +++ b/packages/bun-vscode/README.md @@ -1 +1,22 @@ -# bun-vscode +# Bun for Visual Studio Code + + + + + +<img align="right" src="https://user-images.githubusercontent.com/709451/182802334-d9c42afe-f35d-4a7b-86ea-9985f73f20c3.png" height="150px" style="float: right; padding: 30px;"> + +This extension adds support for using [Bun](https://bun.sh/) with Visual Studio Code. Bun is an all-in-one toolkit for JavaScript and TypeScript apps. + +At its core is the _Bun runtime_, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage. + +<div align="center"> + <a href="https://bun.sh/docs">Documentation</a> + <span> • </span> + <a href="https://discord.com/invite/CXdq2DP29u">Discord</a> + <span> • </span> + <a href="https://github.com/oven-sh/bun/issues/new">Issues</a> + <span> • </span> + <a href="https://github.com/oven-sh/bun/issues/159">Roadmap</a> + <br/> +</div> diff --git a/packages/bun-vscode/bun.lockb b/packages/bun-vscode/bun.lockb Binary files differindex dfa633f6a..c0949dd2d 100755 --- a/packages/bun-vscode/bun.lockb +++ b/packages/bun-vscode/bun.lockb diff --git a/packages/bun-vscode/package.json b/packages/bun-vscode/package.json index 595d8c818..c959cd8ab 100644 --- a/packages/bun-vscode/package.json +++ b/packages/bun-vscode/package.json @@ -1,42 +1,25 @@ { "name": "bun-vscode", - "displayName": "Bun", - "description": "The Visual Studio Code extension for Bun.", "version": "0.0.1", - "license": "MIT", "author": "oven", - "publisher": "oven", - "keywords": [ - "bun", - "node.js", - "javascript", - "typescript", - "vscode" - ], - "icon": "src/assets/icon.png", - "galleryBanner": { - "color": "#C80000", - "theme": "dark" - }, - "homepage": "https://bun.sh/", "repository": { "type": "git", "url": "https://github.com/oven-sh/bun" }, - "bugs": { - "url": "https://github.com/oven-sh/bun/issues" + "main": "dist/extension.js", + "dependencies": { + "semver": "^7.5.4", + "source-map-js": "^1.0.2", + "ws": "^8.13.0" }, - "engines": { - "vscode": "^1.81.0" + "devDependencies": { + "@types/vscode": "^1.81.0", + "@vscode/debugadapter": "^1.56.0", + "@vscode/debugadapter-testsupport": "^1.56.0", + "bun-types": "^0.7.3", + "typescript": "^5.0.0", + "esbuild": "^0.19.2" }, - "extensionKind": [ - "workspace" - ], - "categories": [ - "Programming Languages", - "Debuggers", - "Testing" - ], "activationEvents": [ "onLanguage:javascript", "onLanguage:javascriptreact", @@ -46,6 +29,21 @@ "onDebugResolve:bun", "onDebugDynamicConfigurations:bun" ], + "browser": "dist/web-extension.js", + "bugs": { + "url": "https://github.com/oven-sh/bun/issues" + }, + "capabilities": { + "untrustedWorkspaces": { + "supported": false, + "description": "This extension needs to be able to run your code using Bun." + } + }, + "categories": [ + "Programming Languages", + "Debuggers", + "Testing" + ], "contributes": { "configuration": { "title": "Bun", @@ -233,15 +231,15 @@ ".lockb" ], "icon": { - "dark": "./src/assets/icon-small.png", - "light": "./src/assets/icon-small.png" + "dark": "src/assets/icon-small.png", + "light": "src/assets/icon-small.png" } } ], "jsonValidation": [ { "fileMatch": "package.json", - "url": "./src/resources/package.json" + "url": "src/resources/package.json" } ], "customEditors": [ @@ -257,34 +255,40 @@ } ] }, - "workspaceTrust": { - "request": "never" - }, - "capabilities": { - "untrustedWorkspaces": { - "supported": false, - "description": "This extension needs to be able to run your code using Bun." - } + "description": "The Visual Studio Code extension for Bun.", + "displayName": "Bun", + "engines": { + "vscode": "^1.81.0" }, - "main": "dist/extension.js", - "browser": "dist/web-extension.js", - "workspaces": [ - "../bun-debug-adapter-protocol", - "../bun-inspector-protocol" + "extensionKind": [ + "workspace" ], - "dependencies": {}, - "devDependencies": { - "@types/vscode": "^1.81.0", - "@vscode/debugadapter": "^1.56.0", - "@vscode/debugadapter-testsupport": "^1.56.0", - "bun-types": "^0.7.3", - "typescript": "^5.0.0", - "esbuild": "^0.19.2" + "galleryBanner": { + "color": "#C80000", + "theme": "dark" }, + "homepage": "https://bun.sh/", + "icon": "src/assets/icon.png", + "keywords": [ + "bun", + "node.js", + "javascript", + "typescript", + "vscode" + ], + "license": "MIT", + "publisher": "oven", "scripts": { - "bundle": "esbuild src/extension.ts src/web-extension.ts --bundle --external:vscode --outdir=dist --platform=node --format=cjs", + "bundle": "./node_modules/.bin/esbuild src/extension.ts src/web-extension.ts --bundle --external:vscode --outdir=dist --platform=node --format=cjs", "prebuild": "bun run bundle && rm -rf extension && mkdir -p extension/src && cp -r dist extension/dist && cp -r src/assets extension/src/assets && cp package.json extension && cp README.md extension", "build": "cd extension && vsce package", - "build:watch": "esbuild --watch src/extension.ts src/web-extension.ts --bundle --external:vscode --outdir=dist --platform=node --format=cjs" - } + "build:watch": "./node_modules/.bin/esbuild --watch src/extension.ts src/web-extension.ts --bundle --external:vscode --outdir=dist --platform=node --format=cjs" + }, + "workspaceTrust": { + "request": "never" + }, + "workspaces": [ + "../bun-debug-adapter-protocol", + "../bun-inspector-protocol" + ] } |