update description and api check

This commit is contained in:
Gabriela Araujo Britto
2025-04-18 08:29:33 -07:00
parent df61dc46bd
commit 55fe033211
3 changed files with 4 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ class TypeScriptHoverProvider implements vscode.HoverProvider {
const enableExpandableHover = vscode.workspace.getConfiguration('typescript').get('experimental.expandableHover');
let verbosityLevel: number | undefined;
if (enableExpandableHover && this.client.apiVersion.gte(API.v570)) {
if (enableExpandableHover && this.client.apiVersion.gte(API.v590)) {
verbosityLevel = Math.max(0, this.getPreviousLevel(context?.previousHover) + (context?.verbosityDelta ?? 0));
}
const args = { ...typeConverters.Position.toFileLocationRequestArgs(filepath, position), verbosityLevel };

View File

@@ -30,6 +30,7 @@ export class API {
public static readonly v540 = API.fromSimpleString('5.4.0');
public static readonly v560 = API.fromSimpleString('5.6.0');
public static readonly v570 = API.fromSimpleString('5.7.0');
public static readonly v590 = API.fromSimpleString('5.9.0');
public static fromVersionString(versionString: string): API {
let version = semver.valid(versionString);