Skip to content

Commit

Permalink
chore: update volar dependencies (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Oct 25, 2024
1 parent 4db55f0 commit 128cf11
Show file tree
Hide file tree
Showing 8 changed files with 2,589 additions and 633 deletions.
8 changes: 8 additions & 0 deletions .changeset/good-pigs-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@astrojs/language-server': patch
'@astrojs/ts-plugin': patch
'@astrojs/yaml2ts': patch
'astro-vscode': patch
---

Improves performance when using TS 5.6. Performance is still degraded compared to 5.5, but should at least be usable.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- name: Test (Linux)
if: runner.os == 'Linux'
run: |
pnpm run test:skip-vs
cd packages/vscode
xvfb-run -a pnpm test
cd ../ts-plugin
Expand Down
26 changes: 13 additions & 13 deletions packages/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
"@astrojs/compiler": "^2.10.3",
"@astrojs/yaml2ts": "^0.2.1",
"@jridgewell/sourcemap-codec": "^1.4.15",
"@volar/kit": "~2.4.5",
"@volar/language-core": "~2.4.5",
"@volar/language-server": "~2.4.5",
"@volar/language-service": "~2.4.5",
"@volar/kit": "~2.4.7",
"@volar/language-core": "~2.4.7",
"@volar/language-server": "~2.4.7",
"@volar/language-service": "~2.4.7",
"fast-glob": "^3.2.12",
"muggle-string": "^0.4.1",
"volar-service-css": "0.0.61",
"volar-service-emmet": "0.0.61",
"volar-service-html": "0.0.61",
"volar-service-prettier": "0.0.61",
"volar-service-typescript": "0.0.61",
"volar-service-typescript-twoslash-queries": "0.0.61",
"volar-service-yaml": "0.0.61",
"volar-service-css": "0.0.62",
"volar-service-emmet": "0.0.62",
"volar-service-html": "0.0.62",
"volar-service-prettier": "0.0.62",
"volar-service-typescript": "0.0.62",
"volar-service-typescript-twoslash-queries": "0.0.62",
"volar-service-yaml": "0.0.62",
"vscode-html-languageservice": "^5.2.0",
"vscode-uri": "^3.0.8"
},
Expand All @@ -52,8 +52,8 @@
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"@types/node": "^18.17.8",
"@volar/test-utils": "~2.4.5",
"@volar/typescript": "~2.4.5",
"@volar/test-utils": "~2.4.7",
"@volar/typescript": "~2.4.7",
"astro": "^4.14.0",
"chai": "^4.3.7",
"mocha": "^10.2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/language-server/src/plugins/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { enhancedProvideCompletionItems, enhancedResolveCompletionItem } from '.
import { enhancedProvideSemanticDiagnostics } from './diagnostics.js';

export const create = (ts: typeof import('typescript')): LanguageServicePlugin[] => {
const tsServicePlugins = createTypeScriptServices(ts as typeof import('typescript'), {});
const tsServicePlugins = createTypeScriptServices(ts as typeof import('typescript'), {
});
return tsServicePlugins.map<LanguageServicePlugin>((plugin) => {
if (plugin.name === 'typescript-semantic') {
return {
Expand Down
4 changes: 2 additions & 2 deletions packages/ts-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@astrojs/compiler": "^2.10.3",
"@astrojs/yaml2ts": "^0.2.1",
"@jridgewell/sourcemap-codec": "^1.4.15",
"@volar/language-core": "~2.4.5",
"@volar/typescript": "~2.4.5",
"@volar/language-core": "~2.4.7",
"@volar/typescript": "~2.4.7",
"semver": "^7.3.8",
"vscode-languageserver-textdocument": "^1.0.11"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@
"@types/mocha": "^10.0.1",
"@types/node": "^18.17.8",
"@types/vscode": "^1.82.0",
"@volar/language-server": "~2.4.5",
"@volar/vscode": "~2.4.5",
"@volar/language-server": "~2.4.7",
"@volar/vscode": "~2.4.7",
"@vscode/test-electron": "^2.3.2",
"@vscode/vsce": "2.30.0",
"esbuild": "^0.17.19",
Expand Down
2 changes: 1 addition & 1 deletion packages/yaml2ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"yaml": "^2.5.0"
},
"devDependencies": {
"@volar/language-core": "~2.4.5",
"@volar/language-core": "~2.4.7",
"typescript": "^5.5.4"
}
}
Loading

0 comments on commit 128cf11

Please sign in to comment.