Skip to content

Commit

Permalink
chore: update to Volar 2.4.0-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jun 26, 2024
1 parent c415269 commit b2b9d86
Show file tree
Hide file tree
Showing 19 changed files with 77 additions and 62 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@lerna-lite/publish": "latest",
"@tsslint/cli": "latest",
"@tsslint/config": "latest",
"@volar/language-service": "~2.3.1",
"@volar/language-service": "~2.4.0-alpha.0",
"typescript": "latest",
"vitest": "latest"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@types/node": "latest"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/emmet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/node": "latest"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@types/node": "latest"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"vscode-languageserver-textdocument": "^1.0.11"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
5 changes: 3 additions & 2 deletions packages/markdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ export function create({
resolveProvider: true,
},
documentSymbolProvider: true,
// fileReferencesProvider: true
foldingRangeProvider: true,
hoverProvider: true,
referencesProvider: true,
fileReferencesProvider: true,
renameProvider: {
prepareProvider: true,
},
fileRenameProvider: true,
selectionRangeProvider: true,
workspaceSymbolProvider: true,
workspaceSymbolProvider: {},
},
create(context): LanguageServicePluginInstance<Provide> {
const logger: ILogger = {
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"vscode-languageserver-textdocument": "^1.0.11"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prettier": "^3.3.2"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1",
"@volar/language-service": "~2.4.0-alpha.0",
"prettier": "^2.2 || ^3.0"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/prettyhtml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@starptech/prettyhtml": "^0.10.0"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pug-beautify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@johnsoncodehk/pug-beautify": "^0.2.2"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/johnsoncodehk"
},
"dependencies": {
"@volar/language-service": "~2.3.1",
"@volar/language-service": "~2.4.0-alpha.0",
"muggle-string": "^0.4.1",
"pug-lexer": "^5.0.1",
"pug-parser": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sass-formatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"sass-formatter": "^0.7.9"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-twoslash-queries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"volar-service-typescript": "0.0.54"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
1 change: 1 addition & 0 deletions packages/typescript/lib/configs/getUserPreferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { TextDocument } from 'vscode-languageserver-textdocument';
import { getConfigTitle } from '../shared';
import type { LanguageServiceContext } from '@volar/language-service';
import { URI } from 'vscode-uri';
import type * as _ from '@volar/typescript';

export async function getUserPreferences(
ctx: LanguageServiceContext,
Expand Down
6 changes: 3 additions & 3 deletions packages/typescript/lib/plugins/semantic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export function create(
renameProvider: {
prepareProvider: true,
},
fileRenameProvider: true,
codeActionProvider: {
codeActionKinds: [
'' satisfies typeof CodeActionKind.Empty,
Expand All @@ -127,7 +128,7 @@ export function create(
hoverProvider: true,
implementationProvider: true,
referencesProvider: true,
// fileReferencesProvider: true,
fileReferencesProvider: true,
documentHighlightProvider: true,
semanticTokensProvider: {
// https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#standard-token-types-and-modifiers
Expand Down Expand Up @@ -156,8 +157,7 @@ export function create(
],
},
},
workspaceSymbolProvider: true,
// fileRenameEdits: true,
workspaceSymbolProvider: {},
signatureHelpProvider: {
triggerCharacters: ['(', ',', '<'],
retriggerCharacters: [')'],
Expand Down
5 changes: 3 additions & 2 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"devDependencies": {
"@types/path-browserify": "latest",
"@types/semver": "latest"
"@types/semver": "latest",
"@volar/typescript": "~2.4.0-alpha.0"
},
"dependencies": {
"path-browserify": "^1.0.1",
Expand All @@ -36,7 +37,7 @@
"vscode-uri": "^3.0.8"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vetur/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"vscode-uri": "^3.0.8"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
2 changes: 1 addition & 1 deletion packages/yaml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"vscode-languageserver-textdocument": "^1.0.11"
},
"peerDependencies": {
"@volar/language-service": "~2.3.1"
"@volar/language-service": "~2.4.0-alpha.0"
},
"peerDependenciesMeta": {
"@volar/language-service": {
Expand Down
Loading

0 comments on commit b2b9d86

Please sign in to comment.