From ff0d0e053ade3a785a9f8fcbb939cf22845ca414 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sat, 6 Jan 2024 19:15:41 +0800 Subject: [PATCH] fix(vscode): change all names to oxc_language_server --- .github/workflows/release_vscode.yml | 14 +++++++------- editors/vscode/.vscodeignore | 4 ++-- editors/vscode/package.json | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release_vscode.yml b/.github/workflows/release_vscode.yml index c6a071b7f60a9..5b07290983f1f 100644 --- a/.github/workflows/release_vscode.yml +++ b/.github/workflows/release_vscode.yml @@ -105,25 +105,25 @@ jobs: if: runner.os == 'Windows' run: | mkdir -p editors/vscode/target/release - # .vscodeignore uses `!target/release/oxc_vscode` to package the binary - cp target/${{ matrix.target }}/release/oxc_language_server.exe editors/vscode/target/release/oxc_vscode.exe + # .vscodeignore uses `!target/release/oxc_language_server.exe` to package the binary + cp target/${{ matrix.target }}/release/oxc_language_server.exe editors/vscode/target/release/oxc_language_server.exe - name: Copy binary if: runner.os != 'Windows' run: | mkdir -p editors/vscode/target/release/ - # .vscodeignore uses `!target/release/oxc_vscode.exe` to package the binary - cp target/${{ matrix.target }}/release/oxc_language_server editors/vscode/target/release/oxc_vscode + # .vscodeignore uses `!target/release/oxc_language_server` to package the binary + cp target/${{ matrix.target }}/release/oxc_language_server editors/vscode/target/release/oxc_language_server - name: Package Extension working-directory: editors/vscode - run: pnpm exec vsce package -o "../../oxc_vscode-${{ matrix.code-target }}.vsix" --target ${{ matrix.code-target }} + run: pnpm exec vsce package -o "../../oxc_language_server-${{ matrix.code-target }}.vsix" --target ${{ matrix.code-target }} - name: Upload VSCode extension artifact uses: actions/upload-artifact@v4 with: name: packages-${{ matrix.code-target }} - path: ./oxc_vscode-${{ matrix.code-target }}.vsix + path: ./oxc_language_server-${{ matrix.code-target }}.vsix if-no-files-found: error publish: @@ -160,6 +160,6 @@ jobs: - name: Publish extension to Microsoft Marketplace working-directory: editors/vscode - run: pnpm exec vsce publish --packagePath oxc_vscode-*.vsix + run: pnpm exec vsce publish --packagePath oxc_language_server-*.vsix env: VSCE_PAT: ${{ secrets.VSCE_PERSONAL_ACCESS_TOKEN }} diff --git a/editors/vscode/.vscodeignore b/editors/vscode/.vscodeignore index 5e4bacbe2df0e..2fb140fa6302a 100644 --- a/editors/vscode/.vscodeignore +++ b/editors/vscode/.vscodeignore @@ -4,5 +4,5 @@ !out/main.js !package.json !README.md -!target/release/oxc_vscode -!target/release/oxc_vscode.exe +!target/release/oxc_language_server +!target/release/oxc_language_server.exe diff --git a/editors/vscode/package.json b/editors/vscode/package.json index a40bb2a2dbeec..82f5a70a86432 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -101,8 +101,8 @@ "build": "pnpm run server:build:release && pnpm run compile && pnpm run package", "compile": "esbuild client/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16 --minify --sourcemap", "watch": "pnpm run compile --watch", - "package": "vsce package --no-dependencies -o oxc_vscode.vsix", - "install-extension": "code --install-extension oxc_vscode.vsix --force", + "package": "vsce package --no-dependencies -o oxc_language_server.vsix", + "install-extension": "code --install-extension oxc_language_server.vsix --force", "server:build:debug": "cargo build -p oxc_language_server", "server:build:release": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server --release", "fmt:js": "prettier --write ./**/*.{js,ts,json}"