Create search worker#3139
Conversation
| self.postMessage({ id, error: e }); | ||
| } | ||
| }; | ||
| self.onmessage = workerHandler({ prettyPrint }); |
There was a problem hiding this comment.
did a bit of clean up while i was in the worker code
2b86fcc to
7e23243
Compare
Codecov Report
@@ Coverage Diff @@
## master #3139 +/- ##
==========================================
- Coverage 47.37% 45.84% -1.53%
==========================================
Files 95 97 +2
Lines 4000 4009 +9
Branches 825 825
==========================================
- Hits 1895 1838 -57
- Misses 2105 2171 +66
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #3139 +/- ##
==========================================
+ Coverage 47.37% 47.49% +0.11%
==========================================
Files 95 97 +2
Lines 4000 4009 +9
Branches 825 825
==========================================
+ Hits 1895 1904 +9
Misses 2105 2105
Continue to review full report at Codecov.
|
60d74da to
ac1e80e
Compare
ac1e80e to
97e8356
Compare
| export const getClosestExpression = dispatcher.task("getClosestExpression"); | ||
| export const getSymbols = dispatcher.task("getSymbols"); | ||
| export const getVariablesInScope = dispatcher.task("getVariablesInScope"); | ||
| export const getOutOfScopeLocations = dispatcher.task("getOutOfScopeLocations"); |
There was a problem hiding this comment.
ooh, we an use export directly and avoid the module.exports... yay
nchevobbe
left a comment
There was a problem hiding this comment.
2 minor things, but looks good overall
| return match ? match.length : 0; | ||
| } | ||
|
|
||
| debugger; |
| text: string, | ||
| modifiers: SearchModifiers | ||
| ): number { | ||
| debugger; |
Associated Issue: #3096
Summary of Changes
countMatchesfunction to a worker, which will keep the main thread from janking up when we search big files