diff --git a/.editorconfig b/.editorconfig index a0f479e..1271dae 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,8 +12,8 @@ trim_trailing_whitespace = true # TypeScript and JavaScript files [*.{ts,js,tsx,jsx}] -indent_style = tab -indent_size = 4 +indent_style = space +indent_size = 2 # JSON files [*.json] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b94f590..3d0c21d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -223,6 +223,26 @@ jobs: echo "Extension published to VS Code Marketplace successfully!" + - name: Publish to Open VSX + id: publish_ovsx + continue-on-error: true + env: + OVSX_PAT: ${{ secrets.OVSX_PAT }} + run: | + if [ -z "$OVSX_PAT" ]; then + echo "WARNING: OVSX_PAT secret not found" + echo "Skipping Open VSX publish. To publish to Open VSX, add your Personal Access Token as a secret named OVSX_PAT" + exit 0 + fi + + # Install ovsx if not already installed + npm install -g ovsx + + # Publish to Open VSX + ovsx publish -p $OVSX_PAT + + echo "Extension published to Open VSX successfully!" + - name: Create GitHub Release id: github_release uses: actions/create-release@v1 diff --git a/.vscode/settings.json b/.vscode/settings.json index 6ad5b1e..b2993b7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,15 +1,15 @@ // Place your settings in this file to overwrite default and user settings. { - "files.exclude": { - "out": false // set this to true to hide the "out" folder with the compiled JS files - }, - "search.exclude": { - "out": true // set this to false to include "out" folder in search results - }, - // Turn off tsc task auto detection since we have the necessary tasks as npm scripts - "typescript.tsc.autoDetect": "off", - "cssModulesIntellisense.aliases": { - "~": "./src" - }, - "cSpell.words": ["onig", "pcss", "styl", "vsctm"] + "files.exclude": { + "out": false // set this to true to hide the "out" folder with the compiled JS files + }, + "search.exclude": { + "out": true // set this to false to include "out" folder in search results + }, + // Turn off tsc task auto detection since we have the necessary tasks as npm scripts + "typescript.tsc.autoDetect": "off", + "cssModulesIntellisense.aliases": { + "~": "./src" + }, + "cSpell.words": ["onig", "ovsx", "pcss", "styl", "vsctm"] }