Skip to content

Commit

Permalink
feat: Add language config and manifest for mkosi
Browse files Browse the repository at this point in the history
  • Loading branch information
hangxingliu committed Apr 28, 2024
1 parent bb87cf9 commit 2072f2a
Show file tree
Hide file tree
Showing 2 changed files with 352 additions and 0 deletions.
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"build:webpack": "webpack --mode production --devtool hidden-source-map",
"copy:assets": "cd src && copyfiles '**/*.{tmLanguage,png}' ../out",
"fetch:base": "node --enable-source-maps out/hint-data/fetch/systemd-all",
"fetch:mkosi": "node --enable-source-maps out/hint-data/fetch/mkosi",
"fetch:podman": "node --enable-source-maps out/hint-data/fetch/podman-quadlet",
"fetch:capabilities": "node --enable-source-maps out/hint-data/fetch/linux-capabilities",
"fetch:syscalls": "node --enable-source-maps out/hint-data/fetch/linux-syscalls",
Expand All @@ -54,6 +55,17 @@
],
"contributes": {
"languages": [
{
"id": "mkosi-conf",
"aliases": [
"Mkosi Configuration",
"mkosi-conf"
],
"filenamePatterns": [
"mkosi.conf"
],
"configuration": "./language-configuration.json"
},
{
"id": "systemd-conf",
"aliases": [
Expand Down Expand Up @@ -101,6 +113,11 @@
"language": "systemd-conf",
"scopeName": "source.systemd",
"path": "./out/syntax/systemd.tmLanguage"
},
{
"language": "mkosi-conf",
"scopeName": "source.mkosi",
"path": "./out/syntax/mkosi.tmLanguage"
}
],
"commands": [
Expand Down
Loading

0 comments on commit 2072f2a

Please sign in to comment.