mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 11:49:38 +00:00
Remove expandable hover setting
Seems like there's no downside in keeping this enabled by default for everyone
This commit is contained in:
@@ -33,9 +33,8 @@ class TypeScriptHoverProvider implements vscode.HoverProvider {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const enableExpandableHover = vscode.workspace.getConfiguration('typescript').get<boolean>('experimental.expandableHover', true);
|
||||
let verbosityLevel: number | undefined;
|
||||
if (enableExpandableHover && this.client.apiVersion.gte(API.v590)) {
|
||||
if (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 };
|
||||
|
||||
Reference in New Issue
Block a user