vscode-protocol
v1.0.6
Published
VSCode protocol from official repo
Downloads
13
Readme
vscode-protocol
VSCode protocol from official repo, include below files:
vs/base/common/
vs/base/parts/ipc/common/
For example, you can use IPC and VSBuffer module in non-vscode scenarios.
Build
First open VSCode Github Codespace.
Copy build.sh
and tsconfig.protocol.json
to /workspaces/vscode/src
, run below in terminal:
export VSCODE_DIR=/workspaces/vscode
bash build.sh
cd $VSCODE_DIR/src/dist
#npm pub
Usage
const {tail} = require("vscode-protocol/vs/base/common/arrays");
tail([3,4,5]) // 5
Or use ESM:
import {tail} from "vscode-protocol/vs/base/common/arrays.js"
tail([3,4,5]) // 5
Compile from VSCode source
see 'build.sh' for detail.