Skip to content

Commit 1dfd164

Browse files
authored
fix(build): revert to last working vite-plugin-vscode (#2313)
Fixes: #2200 Partial: AAP-58298
1 parent 574e3e3 commit 1dfd164

File tree

9 files changed

+576
-456
lines changed

9 files changed

+576
-456
lines changed

.claude/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"permissions": {
3+
"allow": ["Bash(npm:*)", "Bash(yarn:*)", "Bash(task:*)", "Bash(mise:*)"],
4+
"ask": [],
5+
"deny": []
6+
}
7+
}

.github/workflows/ci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ jobs:
395395
# out/test-resources/settings/logs
396396
if-no-files-found: ignore
397397
retention-days: 90
398-
# until the WSL/gitleaks failure is resolved
399-
continue-on-error: true
400398

401399
- name: Upload test results to Codecov (als)
402400
if: ${{ !cancelled() && hashFiles('out/junit/als/*.xml') != '' }}

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ repos:
8787
- --color
8888
- --format=gha
8989
- --fix
90+
- --max-warnings=0
9091
- --cache
91-
- --max-warnings
92-
- "0"
92+
- --cache-strategy=content
9393
pass_filenames: false
94-
files: \.m?[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
95-
types: [file]
94+
always_run: true
9695

9796
- id: git-dirty
9897
name: Check if git reports dirty

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,10 +992,10 @@
992992
"@highlightjs/vue-plugin": "2.1.0",
993993
"@primeuix/themes": "^1.2.5",
994994
"@redhat-developer/vscode-redhat-telemetry": "^0.10.2",
995-
"@tomjs/vite-plugin-vscode": "^5.0.0",
995+
"@tomjs/vite-plugin-vscode": "^4.2.1",
996996
"@tomjs/vscode-webview": "^2.0.2",
997997
"@types/ini": "^4.1.1",
998-
"@vitejs/plugin-vue": "^6.0.1",
998+
"@vitejs/plugin-vue": "^5.2.4",
999999
"@vscode-elements/elements": "^2.0.0",
10001000
"@vscode/webview-ui-toolkit": "^1.4.0",
10011001
"highlight.js": "^11.11.1",
@@ -1005,7 +1005,7 @@
10051005
"primevue": "4.4.1",
10061006
"semver": "^7.7.3",
10071007
"uuid": "^13.0.0",
1008-
"vite": "^7.1.12",
1008+
"vite": "^7.2.4",
10091009
"vscode-languageclient": "^9.0.1",
10101010
"vscode-uri": "^3.1.0",
10111011
"vue": "^3.5.22",

packages/ansible-language-server/src/services/validationManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class ValidationManager {
121121
change.range.end.line,
122122
]);
123123
if (invalidatedDiagnostics) {
124-
for (const diagnostic of invalidatedDiagnostics as Array<Diagnostic>) {
124+
for (const diagnostic of invalidatedDiagnostics) {
125125
diagnosticTree.remove(
126126
[diagnostic.range.start.line, diagnostic.range.end.line],
127127
diagnostic,
@@ -140,7 +140,7 @@ export class ValidationManager {
140140
integer.MAX_VALUE,
141141
]);
142142
if (displacedDiagnostics) {
143-
for (const diagnostic of displacedDiagnostics as Array<Diagnostic>) {
143+
for (const diagnostic of displacedDiagnostics) {
144144
diagnosticTree.remove(
145145
[diagnostic.range.start.line, diagnostic.range.end.line],
146146
diagnostic,

test/ui/contentCreatorUiTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ describe("Content Creator UI Tests", function () {
394394
);
395395
});
396396

397-
it("Check create-ansible-collection webview elements", async function () {
397+
it("Check create-ansible-collection webview elements 2", async function () {
398398
await testWebViewElements(
399399
"Ansible: Create New Collection",
400400
"Create Ansible collection",

tools/test-launcher.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ cleanup()
1717
EXIT_CODE=99
1818
fi
1919
log notice "Final clean up"
20+
# prevents CI issues (git-leaks), also we do not need the html report
21+
rm -rf out/coverage/*/lcov-report/out
2022
stop_server
2123

2224
if [[ -f out/log/.failed ]]; then

tsconfig.base.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"declaration": true,
55
"esModuleInterop": true,
66
"forceConsistentCasingInFileNames": true,
7-
"module": "nodenext",
8-
"moduleResolution": "nodenext",
7+
"module": "commonjs",
8+
"moduleResolution": "node",
99
"skipLibCheck": true,
1010
"sourceMap": true,
1111
"strict": true,

0 commit comments

Comments
 (0)