Skip to content

Commit

Permalink
fix(vscode): change all names to oxc_language_server
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jan 6, 2024
1 parent 3a6d986 commit ff0d0e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release_vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions editors/vscode/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions editors/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit ff0d0e0

Please sign in to comment.