File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
- //
1
+ //
2
2
// Copyright (c) Microsoft Corporation. All rights reserved.
3
3
//
4
4
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -2550,6 +2550,11 @@ namespace FourSlash {
2550
2550
}
2551
2551
}
2552
2552
2553
+ public printAvailableCodeFixes ( ) {
2554
+ const codeFixes = this . getCodeFixActions ( this . activeFile . fileName ) ;
2555
+ Harness . IO . log ( stringify ( codeFixes ) ) ;
2556
+ }
2557
+
2553
2558
// Get the text of the entire line the caret is currently at
2554
2559
private getCurrentLineContent ( ) {
2555
2560
const text = this . getFileContent ( this . activeFile . fileName ) ;
@@ -3738,6 +3743,10 @@ namespace FourSlashInterface {
3738
3743
this . state . printCompletionListMembers ( ) ;
3739
3744
}
3740
3745
3746
+ public printAvailableCodeFixes ( ) {
3747
+ this . state . printAvailableCodeFixes ( ) ;
3748
+ }
3749
+
3741
3750
public printBreakpointLocation ( pos : number ) {
3742
3751
this . state . printBreakpointLocation ( pos ) ;
3743
3752
}
Original file line number Diff line number Diff line change @@ -296,6 +296,7 @@ declare namespace FourSlashInterface {
296
296
printCurrentQuickInfo ( ) : void ;
297
297
printCurrentSignatureHelp ( ) : void ;
298
298
printCompletionListMembers ( ) : void ;
299
+ printAvailableCodeFixes ( ) : void ;
299
300
printBreakpointLocation ( pos : number ) : void ;
300
301
printBreakpointAtCurrentLocation ( ) : void ;
301
302
printNameOrDottedNameSpans ( pos : number ) : void ;
You can’t perform that action at this time.
0 commit comments