File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
extensions/typescript-language-features/src Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider<TsCodeActi
480
480
...typeConverters . Range . toFileRangeRequestArgs ( file , rangeOrSelection ) ,
481
481
triggerReason : this . toTsTriggerReason ( context ) ,
482
482
kind : context . only ?. value ,
483
- includeInteractiveActions : true ,
483
+ includeInteractiveActions : this . client . apiVersion . gte ( API . v520 ) ,
484
484
} ;
485
485
return this . client . execute ( 'getApplicableRefactors' , args , token ) ;
486
486
} ) ;
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export class API {
35
35
public static readonly v480 = API . fromSimpleString ( '4.8.0' ) ;
36
36
public static readonly v490 = API . fromSimpleString ( '4.9.0' ) ;
37
37
public static readonly v510 = API . fromSimpleString ( '5.1.0' ) ;
38
+ public static readonly v520 = API . fromSimpleString ( '5.2.0' ) ;
38
39
39
40
public static fromVersionString ( versionString : string ) : API {
40
41
let version = semver . valid ( versionString ) ;
You can’t perform that action at this time.
0 commit comments