Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 'CI'

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: npm install
- name: Compile
run: npm run compile
test:
needs: compile
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: npm install
- name: Run tests on Linux
if: runner.os == 'Linux'
uses: coactions/setup-xvfb@v1
with:
run: npm test

- name: Run tests on Windows and macOS
if: runner.os != 'Linux'
run: npm test
6 changes: 6 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { defineConfig } from '@vscode/test-cli';
import * as path from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default defineConfig({
files: 'out/test/**/*.test.js',
workspaceFolder: path.resolve(__dirname),
});
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ Install the extension from either VSCode marketplace or Open-VSX

The extension will try to download helm-ls automatically.
A `helm_ls` (see [getting Started](https://github.com/mrjosh/helm-ls/#getting-started)) executable on your `PATH` will instead be preferred if found.
The [kubernetes extension](https://github.com/vscode-kubernetes-tools/vscode-kubernetes-tools) is a dependency for this extension and will be installed automatically.
The extension will automatically use the bundled yaml-language-server.
If `yaml-language-server` is found on `PATH` or `helm-ls.yamlls.path` is configured this will be used instead.
See the helm-ls [readme](https://github.com/mrjosh/helm-ls/?tab=readme-ov-file#integration-with-yaml-language-server) for more info on yaml-language-server integration.

**Note:** While this extension provides language server features (autocompletion, linting, hover, etc.), the [kubernetes extension](https://github.com/vscode-kubernetes-tools/vscode-kubernetes-tools) is still recommended for additional features like syntax highlighting, snippets, and other Helm tooling.

## Extension Settings

The extension can be configured via the `helm-ls` extension settings.
Expand Down
14 changes: 0 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 19 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,33 @@
"default": ""
}
}
}
},
"languages": [
{
"id": "helm",
"aliases": [
"helm-template",
"helm"
],
"filenamePatterns": [
"**/templates/*.yaml",
"**/templates/*.yml",
"**/templates/*.tpl",
"**/templates/**/*.yaml",
"**/templates/**/*.yml",
"**/templates/**/*.tpl"
]
}
]
},
"extensionDependencies": [
"ms-kubernetes-tools.vscode-kubernetes-tools"
],
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"pretest": "npm run compile-tests && npm run compile",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"release": "release-it"
Expand Down
Loading