Skip to content

Commit ed5c903

Browse files
committed
chore: Fix vscode packaging issues
1 parent e76513e commit ed5c903

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.github/workflows/vscode-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Check formatting
3535
run: npm run format:check
3636
working-directory: vscode-extension
37+
- name: Test packaging
38+
run: npm run package
39+
working-directory: vscode-extension
3740
- name: Run tests
3841
run: xvfb-run -a npm test
3942
working-directory: vscode-extension

vscode-extension/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/node_modules/
22
/.vscode-test/
3+
*.vsix
34

45
# These files are copied from the repo root during CI
56
/cosign.pub
67
/CHANGELOG.md
8+
/LICENSE

vscode-extension/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vscode-extension/package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,22 @@
1313
"format:check": "prettier --check .",
1414
"test": "vscode-test",
1515
"typecheck": "tsc",
16-
"publish": "cp ../cosign.pub . && vsce publish --changelog-path ../CHANGELOG.md"
16+
"prepackage": "cp ../cosign.pub ../CHANGELOG.md ../LICENSE .",
17+
"package": "npm run prepackage && vsce package",
18+
"publish": "npm run prepackage && vsce publish"
19+
},
20+
"repository": {
21+
"type": "git",
22+
"url": "git+https://github.com/armsnyder/gdshader-language-server.git",
23+
"directory": "vscode-extension"
1724
},
1825
"devDependencies": {
1926
"@eslint/js": "^9.30.0",
2027
"@types/adm-zip": "^0.5.7",
2128
"@types/node": "^24.0.6",
2229
"@types/tar-stream": "^3.1.4",
2330
"@types/unzipper": "^0.10.11",
24-
"@types/vscode": "^1.101.0",
31+
"@types/vscode": "^1.80.0",
2532
"@vscode/test-cli": "^0.0.11",
2633
"@vscode/test-electron": "^2.5.2",
2734
"@vscode/vsce": "^3.6.0",
@@ -34,7 +41,8 @@
3441
"cosign.pub",
3542
"icon.png",
3643
"language-configuration.json",
37-
"README.md"
44+
"README.md",
45+
"LICENSE"
3846
],
3947
"publisher": "armsnyder",
4048
"displayName": "GDShader",
@@ -105,6 +113,6 @@
105113
}
106114
],
107115
"sponsor": {
108-
"url": "coff.ee/armsnyder"
116+
"url": "https://coff.ee/armsnyder"
109117
}
110118
}

0 commit comments

Comments
 (0)