fix: Overall improvements

This commit is contained in:
Myzel394 2024-10-19 21:13:06 +02:00
parent 634aff5993
commit 33dfe0acaa
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F
6 changed files with 21 additions and 10 deletions

View File

@ -35,6 +35,15 @@ jobs:
exit 1
fi
- name: Check vs code package.json version matches flake version
shell: bash
run: |
if ! [ $(grep '"version": "' vs-code-extension/package.json | cut -d'"' -f 4) = $(grep '# CI:CD-VERSION$' flake.nix | cut -d'"' -f 2) ];
then
echo "Version mismatch between vs code package.json and flake"
exit 1
fi
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -8,7 +8,7 @@ A language server for configuration files. The goal is to make editing config fi
|-------------|-------------|--------------|---------|---------------|--------------|----------|------------------|
| aliases | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| fstab | ✅ | ✅ | ✅ | ❓ | ❓ | ❓ | 🟡 |
| hosts | ✅ | ✅ | ✅ | ✅ | ❓ | ❓ | 🟡 |
| hosts | ✅ | ✅ | ✅ | ✅ | ❓ | ❓ | |
| ssh_config | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| sshd_config | ✅ | ✅ | ✅ | ❓ | ✅ | ❓ | ✅ |
| wireguard | ✅ | ✅ | ✅ | ✅ | ❓ | ❓ | 🟡 |

View File

@ -42,7 +42,8 @@
pname = "github.com/Myzel394/config-lsp";
version = version;
src = ./server;
vendorHash = "sha256-s+sjOVvqU20+mbEFKg+RCD+dhScqSatk9eseX2IioPI";
vendorHash = "sha256-eO1eY+2XuOCd/dKwgFtu05+bnn/Cv8ZbUIwRjCwJF+U=";
ldflags = [ "-s" "-w" ];
checkPhase = ''
go test -v $(pwd)/...
'';

View File

@ -12,3 +12,6 @@ client/node_modules/**
!client/node_modules/vscode-languageserver-protocol/**
!client/node_modules/vscode-languageserver-types/**
!client/node_modules/semver/**
flake.nix
build-extension.sh

View File

@ -1,14 +1,13 @@
{
"name": "config-lsp-vs-code-extension",
"description": "A language server example using language services to support embedded languages",
"author": "Microsoft Corporation",
"license": "MIT",
"name": "config-lsp",
"description": "Language Features (completions, diagnostics, etc.) for your config files: gitconfig, fstab, aliases, hosts, wireguard, ssh_config, sshd_config, and more to come!",
"author": "Myzel394",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-extension-samples"
"url": "https://github.com/Myzel394/config-lsp"
},
"publisher": "vscode-samples",
"publisher": "myzel394",
"categories": [],
"keywords": [],
"engines": {
@ -34,6 +33,6 @@
"@typescript-eslint/parser": "^7.14.0",
"eslint": "^9.11.1",
"typescript": "^5.5.2",
"@types/vscode": "^1.93.0"
"@types/vscode": "^1.74.0"
}
}

View File

@ -1 +0,0 @@
{"root":["./src/extension.ts"],"version":"5.6.2"}