Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 14, 2024
1 parent c5ded37 commit 1d0acb4
Show file tree
Hide file tree
Showing 11 changed files with 126 additions and 137 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
"devDependencies": {
"@types/semver": "^7.5.3",
"@types/vscode": "^1.82.0",
"@volar/vscode": "~2.4.9",
"@volar/vscode": "~2.4.11",
"@vscode/vsce": "latest",
"@vue/language-core": "2.1.10",
"@vue/language-server": "2.1.10",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@tsslint/cli": "latest",
"@tsslint/config": "latest",
"typescript": "latest",
"vite": "latest",
"vitest": "latest"
}
}
2 changes: 1 addition & 1 deletion packages/component-meta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"directory": "packages/component-meta"
},
"dependencies": {
"@volar/typescript": "~2.4.9",
"@volar/typescript": "~2.4.11",
"@vue/language-core": "2.1.10",
"path-browserify": "^1.0.1",
"vue-component-type-helpers": "2.1.10"
Expand Down
16 changes: 9 additions & 7 deletions packages/language-core/lib/virtualFile/computedSfc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type * as CompilerDOM from '@vue/compiler-dom';
import type { SFCBlock, SFCParseResult } from '@vue/compiler-sfc';
import { computed, ISignal, Signal, System, Unstable } from 'alien-signals';
import { activeSub, activeTrackId, computed, ISignal, setActiveSub, Signal, Unstable } from 'alien-signals';
import type * as ts from 'typescript';
import type { Sfc, SfcBlock, VueLanguagePluginReturn } from '../types';
import { parseCssClassNames } from '../utils/parseCssClassNames';
Expand All @@ -15,10 +15,11 @@ export function computedSfc(
): Sfc {

const untrackedSnapshot = () => {
const prevTrackId = System.activeTrackId;
System.activeTrackId = 0;
const prevSub = activeSub;
const prevTrackId = activeTrackId;
setActiveSub(undefined, 0);
const res = snapshot.get();
System.activeTrackId = prevTrackId;
setActiveSub(prevSub, prevTrackId);
return res;
};
const content = computed(() => {
Expand Down Expand Up @@ -180,10 +181,11 @@ export function computedSfc(
const change = untrackedSnapshot().getChangeRange(cache.snapshot);
if (change) {

const prevTrackId = System.activeTrackId;
System.activeTrackId = 0;
const prevSub = activeSub;
const prevTrackId = activeTrackId;
setActiveSub(undefined, 0);
const templateOffset = base.startTagEnd;
System.activeTrackId = prevTrackId;
setActiveSub(prevSub, prevTrackId);

const newText = untrackedSnapshot().getText(change.span.start, change.span.start + change.newLength);
const newResult = cache.plugin.updateSFCTemplate(cache.result, {
Expand Down
6 changes: 3 additions & 3 deletions packages/language-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"directory": "packages/language-core"
},
"dependencies": {
"@volar/language-core": "~2.4.9",
"@volar/language-core": "~2.4.11",
"@vue/compiler-dom": "^3.5.0",
"@vue/compiler-vue2": "^2.7.16",
"@vue/shared": "^3.5.0",
"alien-signals": "^0.2.0",
"alien-signals": "^0.4.4",
"minimatch": "^9.0.3",
"muggle-string": "^0.4.1",
"path-browserify": "^1.0.1"
Expand All @@ -26,7 +26,7 @@
"@types/minimatch": "^5.1.2",
"@types/node": "latest",
"@types/path-browserify": "^1.0.1",
"@volar/typescript": "~2.4.9",
"@volar/typescript": "~2.4.11",
"@vue/compiler-sfc": "^3.5.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/language-plugin-pug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@vue/language-core": "2.1.10"
},
"dependencies": {
"@volar/source-map": "~2.4.9",
"@volar/source-map": "~2.4.11",
"volar-service-pug": "0.0.62"
}
}
6 changes: 3 additions & 3 deletions packages/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"directory": "packages/language-server"
},
"dependencies": {
"@volar/language-core": "~2.4.9",
"@volar/language-server": "~2.4.9",
"@volar/test-utils": "~2.4.9",
"@volar/language-core": "~2.4.11",
"@volar/language-server": "~2.4.11",
"@volar/test-utils": "~2.4.11",
"@vue/language-core": "2.1.10",
"@vue/language-service": "2.1.10",
"@vue/typescript-plugin": "2.1.10",
Expand Down
10 changes: 5 additions & 5 deletions packages/language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"update-html-data": "node ./scripts/update-html-data.js"
},
"dependencies": {
"@volar/language-core": "~2.4.9",
"@volar/language-service": "~2.4.9",
"@volar/typescript": "~2.4.9",
"@volar/language-core": "~2.4.11",
"@volar/language-service": "~2.4.11",
"@volar/typescript": "~2.4.11",
"@vue/compiler-dom": "^3.5.0",
"@vue/language-core": "2.1.10",
"@vue/shared": "^3.5.0",
"@vue/typescript-plugin": "2.1.10",
"alien-signals": "^0.2.0",
"alien-signals": "^0.4.4",
"path-browserify": "^1.0.1",
"volar-service-css": "0.0.62",
"volar-service-emmet": "0.0.62",
Expand All @@ -41,7 +41,7 @@
"devDependencies": {
"@types/node": "latest",
"@types/path-browserify": "latest",
"@volar/kit": "~2.4.9",
"@volar/kit": "~2.4.11",
"vscode-languageserver-protocol": "^3.17.5"
}
}
2 changes: 1 addition & 1 deletion packages/tsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"vue-tsc": "./bin/vue-tsc.js"
},
"dependencies": {
"@volar/typescript": "~2.4.9",
"@volar/typescript": "~2.4.11",
"@vue/language-core": "2.1.10",
"semver": "^7.5.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"directory": "packages/typescript-plugin"
},
"dependencies": {
"@volar/typescript": "~2.4.9",
"@volar/typescript": "~2.4.11",
"@vue/language-core": "2.1.10",
"@vue/shared": "^3.5.0"
},
Expand Down
Loading

0 comments on commit 1d0acb4

Please sign in to comment.