Closed darcien closed 4 months ago
Name | Duration | Count |
---|---|---|
code_action | 333ms | 7 |
completion | 52069ms | 8 |
did_change | 210ms | 48 |
document_symbol | 98ms | 23 |
folding_range | 237ms | 12 |
formatting | 1ms | 1 |
get_navigation_tree | 98ms | 23 |
inlay_hint | 66ms | 6 |
op_load | 0ms | 2595 |
op_resolve | 0ms | 107 |
request | 4216ms | 94 |
semantic_tokens_full | 325ms | 2 |
testing_update | 0ms | 48 |
update_diagnostics_deps | 41ms | 13 |
update_diagnostics_lint | 5ms | 12 |
update_diagnostics_ts | 151ms | 1 |
Significant performance gains have been made for completions, closing for now.
Possible related:
Issue:
After some time, LSP would perform badly and have no idea how to pinpoint the causes.
Repro
This repo: https://git.sr.ht/~darcien/smoldesk Clone and try getting completion from LSP, no need to run the code. It has dependency to:
https://esm.sh/date-fns-tz@2.0.0
https://deno.land/x/discord_api_types@0.37.52/v10.ts
https://deno.land/x/zod@v3.21.4/mod.ts
https://deno.land/std@0.197.0/dotenv/mod.ts
I have used discord api types in different Deno project but didn't have these issue.
Tried these but didn't fix it
v1.36.1
tov1.34.3
deno info
, thenrm -rf
the cache. This did fix the issue temporarily but happens again in few minutes.npm:puppeteer
orhttps://esm.sh/firebase@10.1.0/app
This does reduce the loaded docs, but issue still happening.Version
swap
Not sure if related, but I can see my laptop swap usage is increasing even though RAM is not fully used.
Screenshot
LSP output
Attached on comments because of their size.