File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace ts.refactor {
12
12
13
13
function isApplicable ( context : RefactorContext ) : boolean {
14
14
const start = context . startPosition ;
15
- const node = getTokenAtPosition ( context . file , start ) ;
15
+ const node = getTokenAtPosition ( context . file , start , /*includeJsDocComment*/ false ) ;
16
16
const checker = context . program . getTypeChecker ( ) ;
17
17
let symbol = checker . getSymbolAtLocation ( node ) ;
18
18
@@ -27,7 +27,7 @@ namespace ts.refactor {
27
27
const start = context . startPosition ;
28
28
const sourceFile = context . file ;
29
29
const checker = context . program . getTypeChecker ( ) ;
30
- const token = getTokenAtPosition ( sourceFile , start ) ;
30
+ const token = getTokenAtPosition ( sourceFile , start , /*includeJsDocComment*/ false ) ;
31
31
const ctorSymbol = checker . getSymbolAtLocation ( token ) ;
32
32
const newLine = context . rulesProvider . getFormatOptions ( ) . newLineCharacter ;
33
33
You can’t perform that action at this time.
0 commit comments