kotlin-language-server icon indicating copy to clipboard operation
kotlin-language-server copied to clipboard

How to trigger language server to re-index

Open Xapphire13 opened this issue 3 years ago • 1 comments

Description

After adding packages to my gradle.build.kts, auto-imports for the new things weren't working for me. I was able to fix by restarting the language server from the command palette and waiting for the "kotlin: indexing..." status to finish.

I'm wondering if its possible to trigger a re-index without restarting the server?

Update: I notice from the extensions "Feature contributions", the only command exposed is kotlin.languageServer.restart

Extension version

0.2.22

Additional context

n/a

Xapphire13 avatar Apr 17 '21 02:04 Xapphire13

Not yet possible, I'm afraid. Related issues for automatically triggering reindexes: #272, #273

fwcd avatar Apr 17 '21 14:04 fwcd