File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ import {
36
36
createPackageJsonImportFilter ,
37
37
createPrinter ,
38
38
createSortedArray ,
39
- createTextRangeFromSpan ,
40
39
createTextSpanFromBounds ,
41
40
createTextSpanFromNode ,
42
41
createTextSpanFromRange ,
@@ -3697,7 +3696,7 @@ function getCompletionData(
3697
3696
// 2. at the end position of an unterminated token.
3698
3697
// 3. at the end of a regular expression (due to trailing flags like '/foo/g').
3699
3698
return ( isRegularExpressionLiteral ( contextToken ) || isStringTextContainingNode ( contextToken ) ) && (
3700
- rangeContainsPositionExclusive ( createTextRangeFromSpan ( createTextSpanFromNode ( contextToken ) ) , position ) ||
3699
+ rangeContainsPositionExclusive ( contextToken , position ) ||
3701
3700
position === contextToken . end && ( ! ! contextToken . isUnterminated || isRegularExpressionLiteral ( contextToken ) ) ) ;
3702
3701
}
3703
3702
You can’t perform that action at this time.
0 commit comments