Repository navigation
Commit 32369fe
committed
perf(language-server): parse the document once per selection range request
Selection ranges built the model again for every requested position when the document had no version, so a request with many positions parsed the whole file once per position. The model is now taken once per request, which roughly halves the time of the selection range parity tests.1 parent b76ded2 commit 32369fe
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- packages/language_server/src/robotcode/language_server/robotframework/parts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments