serverCompletion
Register the language-server completion source as the editor's autocompletion source.
Ports upstream @codemirror/lsp-client's serverCompletion. The returned Extension installs :autocomplete's autocompletion (configured with the server source as the override source) plus snippets support so snippet completions can be tab-navigated.
Deviation from upstream: kodemirror's CompletionContext does not expose the editor view/session, so the source cannot look the LSPPlugin up from the context the way upstream does. Instead client/uri are captured here. As a consequence the non-override upstream path (registering the source as editor language data alongside other sources) is not available — kodemirror :autocomplete only consults CompletionConfig.override, so this always installs the source there. ServerCompletionConfig.override is accepted for API parity but does not change behavior; see the follow-up note below.
Parameters
The LSP client wrapping the language server.
The document URI for this editor's file.
Completion configuration. See ServerCompletionConfig.