@volar/shared
Advanced tools
Comparing version 0.26.3 to 0.26.4
@@ -6,3 +6,4 @@ /// <reference types="node" /> | ||
export * from './uriMap'; | ||
import type { Position, Range, TextDocument } from 'vscode-languageserver/node'; | ||
import type * as vscode from 'vscode-languageserver'; | ||
import type { TextDocument } from 'vscode-languageserver-textdocument'; | ||
import { MapLike } from 'typescript'; | ||
@@ -14,4 +15,4 @@ export declare const sleep: typeof setTimeout.__promisify__; | ||
export declare function notEmpty<T>(value: T | null | undefined): value is T; | ||
export declare function isInsideRange(parent: Range, child: Range): boolean; | ||
export declare function getWordRange(wordPattern: RegExp, position: Position, document: TextDocument): Range | undefined; | ||
export declare function isInsideRange(parent: vscode.Range, child: vscode.Range): boolean; | ||
export declare function getWordRange(wordPattern: RegExp, position: vscode.Position, document: TextDocument): vscode.Range | undefined; | ||
export declare function loadWorkspaceTypescript(root: string, tsdk: string): typeof import('typescript/lib/tsserverlibrary') | undefined; | ||
@@ -18,0 +19,0 @@ export declare function loadWorkspaceTypescriptLocalized(root: string, tsdk: string, lang: string): MapLike<string> | undefined; |
@@ -1,19 +0,19 @@ | ||
import { DocumentUri, Location, NotificationType, NotificationType0, Position, Range, RequestType, RequestType0, SemanticTokens, SemanticTokensLegend, TextDocumentIdentifier, TextDocumentPositionParams } from 'vscode-languageserver/node'; | ||
import type * as vscode from 'vscode-languageserver'; | ||
export declare namespace PingRequest { | ||
const type: RequestType0<'pong' | null | undefined, any>; | ||
const type: vscode.RequestType0<'pong' | null | undefined, any>; | ||
} | ||
export declare namespace VSCodeContentRequest { | ||
const type: RequestType<string, string, any>; | ||
const type: vscode.RequestType<string, string, any>; | ||
} | ||
export declare namespace D3Request { | ||
const type: RequestType<TextDocumentIdentifier, string | null | undefined, any>; | ||
const type: vscode.RequestType<vscode.TextDocumentIdentifier, string | null | undefined, any>; | ||
} | ||
export declare namespace TagCloseRequest { | ||
const type: RequestType<TextDocumentPositionParams, string | null | undefined, any>; | ||
const type: vscode.RequestType<vscode.TextDocumentPositionParams, string | null | undefined, any>; | ||
} | ||
export declare namespace RefCloseRequest { | ||
const type: RequestType<TextDocumentPositionParams, string | null | undefined, any>; | ||
const type: vscode.RequestType<vscode.TextDocumentPositionParams, string | null | undefined, any>; | ||
} | ||
export declare namespace DocumentVersionRequest { | ||
const type: RequestType<{ | ||
const type: vscode.RequestType<{ | ||
uri: string; | ||
@@ -23,3 +23,3 @@ }, number | undefined, any>; | ||
export declare namespace ActiveSelectionRequest { | ||
const type: RequestType0<{ | ||
const type: vscode.RequestType0<{ | ||
uri: string; | ||
@@ -30,6 +30,6 @@ offset: number; | ||
export declare namespace VerifyAllScriptsRequest { | ||
const type: RequestType<undefined, undefined, any>; | ||
const type: vscode.RequestType<undefined, undefined, any>; | ||
} | ||
export declare namespace WriteVirtualFilesRequest { | ||
const type: RequestType<{ | ||
const type: vscode.RequestType<{ | ||
lsType: 'template' | 'script'; | ||
@@ -39,13 +39,13 @@ }, undefined, any>; | ||
export declare namespace RestartServerNotification { | ||
const type: NotificationType<undefined>; | ||
const type: vscode.NotificationType<undefined>; | ||
} | ||
export declare namespace ShowReferencesNotification { | ||
const type: NotificationType<{ | ||
uri: DocumentUri; | ||
position: Position; | ||
references: Location[]; | ||
const type: vscode.NotificationType<{ | ||
uri: vscode.DocumentUri; | ||
position: vscode.Position; | ||
references: vscode.Location[]; | ||
}>; | ||
} | ||
export declare namespace GetServerNameCasesRequest { | ||
const type: RequestType<TextDocumentIdentifier, { | ||
const type: vscode.RequestType<vscode.TextDocumentIdentifier, { | ||
tag: 'both' | 'kebabCase' | 'pascalCase' | 'unsure'; | ||
@@ -56,24 +56,24 @@ attr: 'both' | 'kebabCase' | 'pascalCase' | 'unsure'; | ||
export declare namespace GetClientAttrNameCaseRequest { | ||
const type: RequestType<TextDocumentIdentifier, 'kebabCase' | 'pascalCase', any>; | ||
const type: vscode.RequestType<vscode.TextDocumentIdentifier, 'kebabCase' | 'pascalCase', any>; | ||
} | ||
export declare namespace GetClientTarNameCaseRequest { | ||
const type: RequestType<TextDocumentIdentifier, 'both' | 'kebabCase' | 'pascalCase', any>; | ||
const type: vscode.RequestType<vscode.TextDocumentIdentifier, 'both' | 'kebabCase' | 'pascalCase', any>; | ||
} | ||
export declare namespace RangeSemanticTokensRequest { | ||
const type: RequestType<{ | ||
textDocument: TextDocumentIdentifier; | ||
range: Range; | ||
}, SemanticTokens | undefined, any>; | ||
const type: vscode.RequestType<{ | ||
textDocument: vscode.TextDocumentIdentifier; | ||
range: vscode.Range; | ||
}, vscode.SemanticTokens | undefined, any>; | ||
} | ||
export declare namespace SemanticTokenLegendRequest { | ||
const type: RequestType0<SemanticTokensLegend, any>; | ||
const type: vscode.RequestType0<vscode.SemanticTokensLegend, any>; | ||
} | ||
export declare namespace SemanticTokensChangedNotification { | ||
const type: NotificationType0; | ||
const type: vscode.NotificationType0; | ||
} | ||
export declare namespace TsVersionChanged { | ||
const type: NotificationType<string>; | ||
const type: vscode.NotificationType<string>; | ||
} | ||
export declare namespace UseWorkspaceTsdkChanged { | ||
const type: NotificationType<boolean>; | ||
const type: vscode.NotificationType<boolean>; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UseWorkspaceTsdkChanged = exports.TsVersionChanged = exports.SemanticTokensChangedNotification = exports.SemanticTokenLegendRequest = exports.RangeSemanticTokensRequest = exports.GetClientTarNameCaseRequest = exports.GetClientAttrNameCaseRequest = exports.GetServerNameCasesRequest = exports.ShowReferencesNotification = exports.RestartServerNotification = exports.WriteVirtualFilesRequest = exports.VerifyAllScriptsRequest = exports.ActiveSelectionRequest = exports.DocumentVersionRequest = exports.RefCloseRequest = exports.TagCloseRequest = exports.D3Request = exports.VSCodeContentRequest = exports.PingRequest = void 0; | ||
const node_1 = require("vscode-languageserver/node"); | ||
const rpc = require("vscode-jsonrpc"); | ||
var PingRequest; | ||
(function (PingRequest) { | ||
PingRequest.type = new node_1.RequestType0('volar/ping'); | ||
PingRequest.type = new rpc.RequestType0('volar/ping'); | ||
})(PingRequest = exports.PingRequest || (exports.PingRequest = {})); | ||
var VSCodeContentRequest; | ||
(function (VSCodeContentRequest) { | ||
VSCodeContentRequest.type = new node_1.RequestType('vscode/content'); | ||
VSCodeContentRequest.type = new rpc.RequestType('vscode/content'); | ||
})(VSCodeContentRequest = exports.VSCodeContentRequest || (exports.VSCodeContentRequest = {})); | ||
var D3Request; | ||
(function (D3Request) { | ||
D3Request.type = new node_1.RequestType('volar/d3'); | ||
D3Request.type = new rpc.RequestType('volar/d3'); | ||
})(D3Request = exports.D3Request || (exports.D3Request = {})); | ||
var TagCloseRequest; | ||
(function (TagCloseRequest) { | ||
TagCloseRequest.type = new node_1.RequestType('html/tag'); | ||
TagCloseRequest.type = new rpc.RequestType('html/tag'); | ||
})(TagCloseRequest = exports.TagCloseRequest || (exports.TagCloseRequest = {})); | ||
var RefCloseRequest; | ||
(function (RefCloseRequest) { | ||
RefCloseRequest.type = new node_1.RequestType('volar/ref'); | ||
RefCloseRequest.type = new rpc.RequestType('volar/ref'); | ||
})(RefCloseRequest = exports.RefCloseRequest || (exports.RefCloseRequest = {})); | ||
var DocumentVersionRequest; | ||
(function (DocumentVersionRequest) { | ||
DocumentVersionRequest.type = new node_1.RequestType('vue/docUpdated'); | ||
DocumentVersionRequest.type = new rpc.RequestType('vue/docUpdated'); | ||
})(DocumentVersionRequest = exports.DocumentVersionRequest || (exports.DocumentVersionRequest = {})); | ||
var ActiveSelectionRequest; | ||
(function (ActiveSelectionRequest) { | ||
ActiveSelectionRequest.type = new node_1.RequestType0('vue/activeSelection'); | ||
ActiveSelectionRequest.type = new rpc.RequestType0('vue/activeSelection'); | ||
})(ActiveSelectionRequest = exports.ActiveSelectionRequest || (exports.ActiveSelectionRequest = {})); | ||
var VerifyAllScriptsRequest; | ||
(function (VerifyAllScriptsRequest) { | ||
VerifyAllScriptsRequest.type = new node_1.RequestType('volar.action.verifyAllScripts'); | ||
VerifyAllScriptsRequest.type = new rpc.RequestType('volar.action.verifyAllScripts'); | ||
})(VerifyAllScriptsRequest = exports.VerifyAllScriptsRequest || (exports.VerifyAllScriptsRequest = {})); | ||
var WriteVirtualFilesRequest; | ||
(function (WriteVirtualFilesRequest) { | ||
WriteVirtualFilesRequest.type = new node_1.RequestType('volar.action.writeVirtualFiles'); | ||
WriteVirtualFilesRequest.type = new rpc.RequestType('volar.action.writeVirtualFiles'); | ||
})(WriteVirtualFilesRequest = exports.WriteVirtualFilesRequest || (exports.WriteVirtualFilesRequest = {})); | ||
var RestartServerNotification; | ||
(function (RestartServerNotification) { | ||
RestartServerNotification.type = new node_1.NotificationType('volar.action.restartServer'); | ||
RestartServerNotification.type = new rpc.NotificationType('volar.action.restartServer'); | ||
})(RestartServerNotification = exports.RestartServerNotification || (exports.RestartServerNotification = {})); | ||
var ShowReferencesNotification; | ||
(function (ShowReferencesNotification) { | ||
ShowReferencesNotification.type = new node_1.NotificationType('vue.findReferences'); | ||
ShowReferencesNotification.type = new rpc.NotificationType('vue.findReferences'); | ||
})(ShowReferencesNotification = exports.ShowReferencesNotification || (exports.ShowReferencesNotification = {})); | ||
var GetServerNameCasesRequest; | ||
(function (GetServerNameCasesRequest) { | ||
GetServerNameCasesRequest.type = new node_1.RequestType('volar/getTagNameCaseServer'); | ||
GetServerNameCasesRequest.type = new rpc.RequestType('volar/getTagNameCaseServer'); | ||
})(GetServerNameCasesRequest = exports.GetServerNameCasesRequest || (exports.GetServerNameCasesRequest = {})); | ||
var GetClientAttrNameCaseRequest; | ||
(function (GetClientAttrNameCaseRequest) { | ||
GetClientAttrNameCaseRequest.type = new node_1.RequestType('volar/getAttrNameCaseClient'); | ||
GetClientAttrNameCaseRequest.type = new rpc.RequestType('volar/getAttrNameCaseClient'); | ||
})(GetClientAttrNameCaseRequest = exports.GetClientAttrNameCaseRequest || (exports.GetClientAttrNameCaseRequest = {})); | ||
var GetClientTarNameCaseRequest; | ||
(function (GetClientTarNameCaseRequest) { | ||
GetClientTarNameCaseRequest.type = new node_1.RequestType('volar/getTagNameCaseClient'); | ||
GetClientTarNameCaseRequest.type = new rpc.RequestType('volar/getTagNameCaseClient'); | ||
})(GetClientTarNameCaseRequest = exports.GetClientTarNameCaseRequest || (exports.GetClientTarNameCaseRequest = {})); | ||
@@ -64,20 +64,20 @@ // semantic tokens | ||
(function (RangeSemanticTokensRequest) { | ||
RangeSemanticTokensRequest.type = new node_1.RequestType('vue.semanticTokens'); | ||
RangeSemanticTokensRequest.type = new rpc.RequestType('vue.semanticTokens'); | ||
})(RangeSemanticTokensRequest = exports.RangeSemanticTokensRequest || (exports.RangeSemanticTokensRequest = {})); | ||
var SemanticTokenLegendRequest; | ||
(function (SemanticTokenLegendRequest) { | ||
SemanticTokenLegendRequest.type = new node_1.RequestType0('vue.semanticTokenLegend'); | ||
SemanticTokenLegendRequest.type = new rpc.RequestType0('vue.semanticTokenLegend'); | ||
})(SemanticTokenLegendRequest = exports.SemanticTokenLegendRequest || (exports.SemanticTokenLegendRequest = {})); | ||
var SemanticTokensChangedNotification; | ||
(function (SemanticTokensChangedNotification) { | ||
SemanticTokensChangedNotification.type = new node_1.NotificationType0('vue.semanticTokensChanged'); | ||
SemanticTokensChangedNotification.type = new rpc.NotificationType0('vue.semanticTokensChanged'); | ||
})(SemanticTokensChangedNotification = exports.SemanticTokensChangedNotification || (exports.SemanticTokensChangedNotification = {})); | ||
var TsVersionChanged; | ||
(function (TsVersionChanged) { | ||
TsVersionChanged.type = new node_1.NotificationType('volar.tsVersionChanged'); | ||
TsVersionChanged.type = new rpc.NotificationType('volar.tsVersionChanged'); | ||
})(TsVersionChanged = exports.TsVersionChanged || (exports.TsVersionChanged = {})); | ||
var UseWorkspaceTsdkChanged; | ||
(function (UseWorkspaceTsdkChanged) { | ||
UseWorkspaceTsdkChanged.type = new node_1.NotificationType('volar.useWorkspaceTsdkChanged'); | ||
UseWorkspaceTsdkChanged.type = new rpc.NotificationType('volar.useWorkspaceTsdkChanged'); | ||
})(UseWorkspaceTsdkChanged = exports.UseWorkspaceTsdkChanged || (exports.UseWorkspaceTsdkChanged = {})); | ||
//# sourceMappingURL=requests.js.map |
{ | ||
"name": "@volar/shared", | ||
"version": "0.26.3", | ||
"version": "0.26.4", | ||
"main": "out/index.js", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
"upath": "^2.0.1", | ||
"vscode-languageserver": "^7.1.0-next.5" | ||
"vscode-jsonrpc": "^8.0.0-next.1" | ||
}, | ||
@@ -23,3 +23,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "daa7d51be3eebe1534d62b374762c5b09e7fb912" | ||
"gitHead": "d7c0d2457a61bde0181c7b1c52f123d31e9a2f2d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19090
392
+ Addedvscode-jsonrpc@^8.0.0-next.1
+ Addedvscode-jsonrpc@8.2.1(transitive)
- Removedvscode-languageserver@^7.1.0-next.5
- Removedvscode-jsonrpc@7.0.0-next.1(transitive)
- Removedvscode-languageserver@7.1.0-next.5(transitive)
- Removedvscode-languageserver-protocol@3.17.0-next.6(transitive)
- Removedvscode-languageserver-types@3.17.0-next.2(transitive)