-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
2,126 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,8 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
repository: software-mansion-labs/vscode-js-debug | ||
path: packages/vscode-js-debug | ||
- name: Enforce HTTPS for submodules | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
|
@@ -39,7 +37,7 @@ jobs: | |
|
||
- name: Install node dependencies | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: npm i | ||
run: npm ci | ||
|
||
- name: Lint extension | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: Publish vscode-extension | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
prerelease: | ||
description: 'Pre-release' | ||
default: false | ||
type: boolean | ||
publish_macos: | ||
description: 'macOS' | ||
default: true | ||
type: boolean | ||
publish_windows: | ||
description: 'Windows' | ||
default: false | ||
type: boolean | ||
publish_linux: | ||
description: 'Linux' | ||
default: false | ||
type: boolean | ||
ref: | ||
description: 'The branch, tag or SHA to checkout' | ||
default: 'main' | ||
type: string | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set targets | ||
id: set_targets | ||
run: | | ||
targets="" | ||
if ${{ github.event.inputs.publish_macos }}; then | ||
targets="$targets darwin-x64 darwin-arm64" | ||
fi | ||
if ${{ github.event.inputs.publish_windows }}; then | ||
targets="$targets win32-x64" | ||
fi | ||
if ${{ github.event.inputs.publish_linux }}; then | ||
targets="$targets linux-x64" | ||
fi | ||
if [ -z "$targets" ]; then | ||
echo "No targets specified" | ||
exit 1 | ||
fi | ||
echo "Publishing for targets: $targets" | ||
echo "::set-output name=targets::$targets" | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.ref }} | ||
|
||
- name: Enforce HTTPS for submodules | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
cache-dependency-path: packages/vscode-extension/package-lock.json | ||
|
||
- name: Change directory | ||
run: cd packages/vscode-extension | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build and publish to Visual Studio Marketplace | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
id: vs_marketplace_publish | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target: ${{ steps.set_targets.outputs.targets }} | ||
pat: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} | ||
preRelease: ${{ github.event.inputs.prerelease }} | ||
registryUrl: https://marketplace.visualstudio.com | ||
|
||
- name: Publish to Open VSX Registry | ||
uses: HaaLeo/publish-vscode-extension@v1 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target: ${{ steps.set_targets.outputs.targets }} | ||
pat: ${{ secrets.OPENVSX_MARKETPLACE_TOKEN }} | ||
preRelease: ${{ github.event.inputs.prerelease }} | ||
extensionFile: ${{ steps.vs_marketplace_publish.outputs.vsixPath }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,8 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
repository: software-mansion-labs/vscode-js-debug | ||
path: packages/vscode-js-debug | ||
- name: Enforce HTTPS for submodules | ||
run: git config --global url."https://github.com/".insteadOf "[email protected]:" | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
|
@@ -39,7 +37,7 @@ jobs: | |
|
||
- name: Install node dependencies | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
run: npm i | ||
run: npm ci | ||
|
||
- name: Typecheck extension | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Custom Icons bundled as a font | ||
|
||
This directory contains the icons that are bundled as a font in the `assets/font-icons` directory. | ||
|
||
Some custom icons that are used by the extensions cannot be provided as SVGs because they are not styled according to the editor themes. | ||
|
||
This is specifically the case for icons used by "menus" extension point as defined in `package.json`. | ||
|
||
Icons bundled as a font can be referenced in the extension configuration using the `$(icon-id)` syntax. | ||
|
||
## Adding new icons | ||
|
||
In order to add new icons to the font, you can use the following steps: | ||
|
||
1. Add SVG version of the icon to the `font-icons` directory. Keep the size and format consistent with the existing icons and with VSCode guidelines (i.e. https://code.visualstudio.com/api/references/contribution-points#Command-icon-specifications). | ||
2. Add the icon to the `fantasticon.config.json` file and assign a codepoint. | ||
3. Run `npm run build:icons` to build the font. | ||
4. List the new icon in `package.json` under `contributes.icons` section, assign a name and use the codepoint of the icon as the `fontCharacter` value. Use `"radon-"` prefix for the icon name to avoid it colliding with other icons. | ||
5. Commit the icon, updated woff2 font file, and the updates to the `package.json` file. |
10 changes: 10 additions & 0 deletions
10
packages/vscode-extension/font-icons/fantasticon.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"inputDir": "./font-icons/", | ||
"outputDir": "./assets/", | ||
"fontTypes": ["woff2"], | ||
"assetTypes": [], | ||
"name": "font-icons", | ||
"codepoints": { | ||
"off": "0xE001" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<video src="./create-new-device.mp4" autoPlay muted loop></video> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<video src="./explore-features.mp4" autoPlay muted loop></video> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<video src="./open-ide-panel.mp4" autoPlay muted loop></video> |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<video src="./wait-for-project-to-build.mp4" autoPlay muted loop></video> |
Binary file not shown.
Oops, something went wrong.