This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,15 @@ function injectFrame(
117
117
}
118
118
119
119
function queriesFromExpansions ( ts : TextSource , n : number ) : string [ ] {
120
- const queries : string [ ] = [ ts . text ( ) ] ;
120
+ let queries : string [ ] = [ ts . text ( ) ] ;
121
121
122
122
let stopLeft = false ;
123
123
let stopRight = false ;
124
124
for ( let i = 0 ; i < n ; i ++ ) {
125
125
if ( ! stopRight ) {
126
126
const rex = ts . expandNext ( ExpandMode . word ) ;
127
- console . log ( rex ) ;
128
127
if ( rex !== null ) {
129
- queries . concat ( getTexts ( rex ) ) ;
128
+ queries = queries . concat ( getTexts ( rex ) ) ;
130
129
} else {
131
130
stopRight = true ;
132
131
}
@@ -135,7 +134,7 @@ function queriesFromExpansions(ts: TextSource, n: number): string[] {
135
134
if ( ! stopLeft ) {
136
135
const lex = ts . expandPrev ( ExpandMode . word ) ;
137
136
if ( lex !== null ) {
138
- queries . concat ( getTexts ( lex ) ) ;
137
+ queries = queries . concat ( getTexts ( lex ) ) ;
139
138
ts = lex ;
140
139
} else {
141
140
stopLeft = true ;
@@ -145,7 +144,7 @@ function queriesFromExpansions(ts: TextSource, n: number): string[] {
145
144
if ( ! stopRight ) {
146
145
const rex = ts . expandNext ( ExpandMode . word ) ;
147
146
if ( rex !== null ) {
148
- queries . concat ( getTexts ( rex ) ) ;
147
+ queries = queries . concat ( getTexts ( rex ) ) ;
149
148
ts = rex ;
150
149
}
151
150
}
You can’t perform that action at this time.
0 commit comments