@vue/language-server
Advanced tools
Comparing version 1.8.22 to 1.9.0-alpha.0
@@ -8,3 +8,3 @@ "use strict"; | ||
const protocol_1 = require("./protocol"); | ||
const componentMeta = require("vue-component-meta"); | ||
const componentMeta = require("vue-component-meta/out/base"); | ||
const typescript_1 = require("@volar/typescript"); | ||
@@ -33,3 +33,3 @@ function createServerPlugin(connection) { | ||
} | ||
return vue.resolveConfig(config, ctx?.host.getCompilationSettings() ?? {}, vueOptions, ts, initOptions.codegenStack); | ||
return vue.resolveConfig(ts, config, ctx?.host.getCompilationSettings() ?? {}, vueOptions, initOptions.codegenStack); | ||
async function getVueCompilerOptions() { | ||
@@ -77,2 +77,8 @@ const ts = modules.typescript; | ||
}); | ||
connection.onRequest(protocol_1.GetDragAndDragImportEditsRequest.type, async (params) => { | ||
const languageService = await getService(params.uri); | ||
if (languageService) { | ||
return nameCasing.getDragImportEdits(ts, languageService.context, params.uri, params.importUri, params.casing); | ||
} | ||
}); | ||
connection.onRequest(protocol_1.GetConvertAttrCasingEditsRequest.type, async (params) => { | ||
@@ -95,3 +101,3 @@ const languageService = await getService(params.textDocument.uri); | ||
if (!checker) { | ||
checker = componentMeta.baseCreate(host, hostToVueOptions.get(host), {}, host.rootPath + '/tsconfig.json.global.vue', ts); | ||
checker = componentMeta.baseCreate(ts, host, hostToVueOptions.get(host), {}, host.rootPath + '/tsconfig.json.global.vue'); | ||
checkers.set(host, checker); | ||
@@ -98,0 +104,0 @@ } |
@@ -30,2 +30,16 @@ import * as vscode from 'vscode-languageserver-protocol'; | ||
} | ||
export declare namespace GetDragAndDragImportEditsRequest { | ||
type ParamsType = { | ||
uri: string; | ||
importUri: string; | ||
casing: TagNameCasing; | ||
}; | ||
type ResponseType = { | ||
insertText: string; | ||
insertTextFormat: vscode.InsertTextFormat; | ||
additionalEdits: vscode.TextEdit[]; | ||
} | null | undefined; | ||
type ErrorType = never; | ||
const type: vscode.RequestType<ParamsType, ResponseType, never>; | ||
} | ||
export declare namespace GetConvertAttrCasingEditsRequest { | ||
@@ -32,0 +46,0 @@ type ParamsType = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseSFCRequest = exports.GetConvertAttrCasingEditsRequest = exports.GetConvertTagCasingEditsRequest = exports.DetectNameCasingRequest = exports.GetComponentMeta = void 0; | ||
exports.ParseSFCRequest = exports.GetConvertAttrCasingEditsRequest = exports.GetDragAndDragImportEditsRequest = exports.GetConvertTagCasingEditsRequest = exports.DetectNameCasingRequest = exports.GetComponentMeta = void 0; | ||
const vscode = require("vscode-languageserver-protocol"); | ||
@@ -17,2 +17,6 @@ var GetComponentMeta; | ||
})(GetConvertTagCasingEditsRequest || (exports.GetConvertTagCasingEditsRequest = GetConvertTagCasingEditsRequest = {})); | ||
var GetDragAndDragImportEditsRequest; | ||
(function (GetDragAndDragImportEditsRequest) { | ||
GetDragAndDragImportEditsRequest.type = new vscode.RequestType('vue/dragImportEdits'); | ||
})(GetDragAndDragImportEditsRequest || (exports.GetDragAndDragImportEditsRequest = GetDragAndDragImportEditsRequest = {})); | ||
var GetConvertAttrCasingEditsRequest; | ||
@@ -19,0 +23,0 @@ (function (GetConvertAttrCasingEditsRequest) { |
{ | ||
"name": "@vue/language-server", | ||
"version": "1.8.22", | ||
"version": "1.9.0-alpha.0", | ||
"main": "out/index.js", | ||
@@ -19,11 +19,11 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-core": "~1.10.5", | ||
"@volar/language-server": "~1.10.5", | ||
"@volar/typescript": "~1.10.5", | ||
"@vue/language-core": "1.8.22", | ||
"@vue/language-service": "1.8.22", | ||
"@volar/language-core": "~1.10.9", | ||
"@volar/language-server": "~1.10.9", | ||
"@volar/typescript": "~1.10.9", | ||
"@vue/language-core": "1.9.0-alpha.0", | ||
"@vue/language-service": "1.9.0-alpha.0", | ||
"vscode-languageserver-protocol": "^3.17.5", | ||
"vue-component-meta": "1.8.22" | ||
"vue-component-meta": "1.9.0-alpha.0" | ||
}, | ||
"gitHead": "1e8d09af0282c42dd816671ffcd5a2321276e3c3" | ||
"gitHead": "d6905e4d4d1208f560a544509494f33f431b602a" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15188
257
2
0
+ Added@babel/parser@7.26.7(transitive)
+ Added@babel/types@7.26.7(transitive)
+ Added@vue/language-core@1.9.0-alpha.0(transitive)
+ Added@vue/language-service@1.9.0-alpha.0(transitive)
+ Addedvolar-service-css@0.0.16(transitive)
+ Addedvolar-service-emmet@0.0.16(transitive)
+ Addedvolar-service-html@0.0.16(transitive)
+ Addedvolar-service-json@0.0.16(transitive)
+ Addedvolar-service-pug@0.0.16(transitive)
+ Addedvolar-service-pug-beautify@0.0.16(transitive)
+ Addedvolar-service-typescript@0.0.16(transitive)
+ Addedvolar-service-typescript-twoslash-queries@0.0.16(transitive)
+ Addedvue-component-meta@1.9.0-alpha.0(transitive)
+ Addedvue-component-type-helpers@1.9.0-alpha.0(transitive)
- Removed@babel/parser@7.26.5(transitive)
- Removed@babel/types@7.26.5(transitive)
- Removed@vue/language-core@1.8.22(transitive)
- Removed@vue/language-service@1.8.22(transitive)
- Removedtypesafe-path@0.2.2(transitive)
- Removedvolar-service-css@0.0.15(transitive)
- Removedvolar-service-emmet@0.0.15(transitive)
- Removedvolar-service-html@0.0.15(transitive)
- Removedvolar-service-json@0.0.15(transitive)
- Removedvolar-service-pug@0.0.15(transitive)
- Removedvolar-service-pug-beautify@0.0.15(transitive)
- Removedvolar-service-typescript@0.0.15(transitive)
- Removedvolar-service-typescript-twoslash-queries@0.0.15(transitive)
- Removedvue-component-meta@1.8.22(transitive)
- Removedvue-component-type-helpers@1.8.22(transitive)
Updated@volar/language-core@~1.10.9
Updated@volar/typescript@~1.10.9