@volar/language-service
Advanced tools
Comparing version 2.2.0-alpha.10 to 2.2.0-alpha.11
@@ -19,2 +19,2 @@ import type * as vscode from 'vscode-languageserver-protocol'; | ||
}[]>; | ||
export declare function register(context: ServiceContext): (uri: string, token?: vscode.CancellationToken, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>; | ||
export declare function register(context: ServiceContext): (uri: string, token?: vscode.CancellationToken, response?: (result: vscode.Diagnostic[]) => void) => Promise<vscode.Diagnostic[]>; |
@@ -49,3 +49,3 @@ "use strict"; | ||
let tempSourceSnapshot = sourceScript.snapshot; | ||
let tempVirtualFile = context.language.scripts.set(sourceScript.id + '.tmp', sourceScript.languageId, sourceScript.snapshot, [sourceScript.generated.languagePlugin]).generated?.root; | ||
let tempVirtualFile = context.language.scripts.set(sourceScript.id + '.tmp', sourceScript.snapshot, sourceScript.languageId, [sourceScript.generated.languagePlugin])?.generated?.root; | ||
if (!tempVirtualFile) { | ||
@@ -100,3 +100,3 @@ return; | ||
tempSourceSnapshot = (0, common_1.stringToSnapshot)(newText); | ||
tempVirtualFile = context.language.scripts.set(sourceScript.id + '.tmp', sourceScript.languageId, tempSourceSnapshot, [sourceScript.generated.languagePlugin]).generated?.root; | ||
tempVirtualFile = context.language.scripts.set(sourceScript.id + '.tmp', tempSourceSnapshot, sourceScript.languageId, [sourceScript.generated.languagePlugin])?.generated?.root; | ||
if (!tempVirtualFile) { | ||
@@ -103,0 +103,0 @@ break; |
import type * as vscode from 'vscode-languageserver-protocol'; | ||
import type { ServiceContext } from '../types'; | ||
export declare function register(context: ServiceContext): (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken, _reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>; | ||
export declare function register(context: ServiceContext): (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken, _reportProgress?: (tokens: vscode.SemanticTokens) => void) => Promise<vscode.SemanticTokens | undefined>; |
{ | ||
"name": "@volar/language-service", | ||
"version": "2.2.0-alpha.10", | ||
"version": "2.2.0-alpha.11", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "2.2.0-alpha.10", | ||
"@volar/language-core": "2.2.0-alpha.11", | ||
"vscode-languageserver-protocol": "^3.17.5", | ||
@@ -21,3 +21,3 @@ "vscode-languageserver-textdocument": "^1.0.11", | ||
}, | ||
"gitHead": "aedd2230883c457f703be93ed150917a3efde75c" | ||
"gitHead": "b3e82d02777af164097a7f268e602bc7f94ea1cd" | ||
} |
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
194223
+ Added@volar/language-core@2.2.0-alpha.11(transitive)
+ Added@volar/source-map@2.2.0-alpha.11(transitive)
- Removed@volar/language-core@2.2.0-alpha.10(transitive)
- Removed@volar/source-map@2.2.0-alpha.10(transitive)