@vue/language-server
Advanced tools
Comparing version 1.8.22 to 1.8.24
export * from './protocol'; | ||
export * from './types'; | ||
export * from '@volar/language-server/out/protocol'; | ||
export * from '@volar/language-server/out/types'; | ||
export * from '@volar/language-server/protocol'; | ||
export * from '@volar/language-server/lib/types'; | ||
export * from '@vue/language-service/out/types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -20,6 +20,6 @@ "use strict"; | ||
// export protocol and types of parent package | ||
__exportStar(require("@volar/language-server/out/protocol"), exports); | ||
__exportStar(require("@volar/language-server/out/types"), exports); | ||
__exportStar(require("@volar/language-server/protocol"), exports); | ||
__exportStar(require("@volar/language-server/lib/types"), exports); | ||
// only export types of depend packages | ||
__exportStar(require("@vue/language-service/out/types"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -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.8.24", | ||
"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.11.1", | ||
"@volar/language-server": "~1.11.1", | ||
"@volar/typescript": "~1.11.1", | ||
"@vue/language-core": "1.8.24", | ||
"@vue/language-service": "1.8.24", | ||
"vscode-languageserver-protocol": "^3.17.5", | ||
"vue-component-meta": "1.8.22" | ||
"vue-component-meta": "1.8.24" | ||
}, | ||
"gitHead": "1e8d09af0282c42dd816671ffcd5a2321276e3c3" | ||
"gitHead": "6f850196d6b9cd1bee62104d3d92867cf0b6777e" | ||
} |
15152
257
+ Added@volar/language-core@1.11.1(transitive)
+ Added@volar/language-server@1.11.1(transitive)
+ Added@volar/language-service@1.11.1(transitive)
+ Added@volar/source-map@1.11.1(transitive)
+ Added@volar/typescript@1.11.1(transitive)
+ Added@vue/language-core@1.8.24(transitive)
+ Added@vue/language-service@1.8.24(transitive)
+ Addedvolar-service-css@0.0.17(transitive)
+ Addedvolar-service-emmet@0.0.17(transitive)
+ Addedvolar-service-html@0.0.17(transitive)
+ Addedvolar-service-json@0.0.17(transitive)
+ Addedvolar-service-pug@0.0.17(transitive)
+ Addedvolar-service-pug-beautify@0.0.17(transitive)
+ Addedvolar-service-typescript@0.0.17(transitive)
+ Addedvolar-service-typescript-twoslash-queries@0.0.17(transitive)
+ Addedvue-component-meta@1.8.24(transitive)
+ Addedvue-component-type-helpers@1.8.24(transitive)
- Removed@volar/language-core@1.10.10(transitive)
- Removed@volar/language-server@1.10.10(transitive)
- Removed@volar/language-service@1.10.10(transitive)
- Removed@volar/source-map@1.10.10(transitive)
- Removed@volar/typescript@1.10.10(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.11.1
Updated@volar/typescript@~1.11.1
Updated@vue/language-core@1.8.24
Updated@vue/language-service@1.8.24
Updatedvue-component-meta@1.8.24