Plugin API 1.21 adds the low-risk code.semantics capability: Project::lsp_definition, lsp_type_definition, lsp_implementations, lsp_references (capped by a limit), lsp_hover_info and lsp_document_symbols query the running language servers, also for read-only jdt:// documents. Queries need a trusted project, documents are opened through the ref-counted document store and released afterwards, and locations outside the project's roots are dropped. Includes the SDK methods and MockHost helpers, a fixture plugin with a host integration test, rebuilt plugin components, the capability's description in the text catalog, and README entries.
Co-authored-by: RuyimgByCN <[email protected]>