mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 11:49:38 +00:00
update description and api check
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user