LSP client pops an error dialog on every .bel open (starts against the unimplemented stub) #58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Opening any
.belfile pops a modal error dialog ("Beloch Language Server client: couldn't create connection to server") plus five error lines in the output channel, because the extension starts aLanguageClientagainstbeloch lsp— which is still an unimplemented stub that exits 1 immediately.The foundation tried to make this graceful via
errorHandlerreturninghandled: trueandclient.start().catch(...). ButLanguageClient.start()'s initialization-failure path callsshowErrorMessagedirectly, bypassingclientOptions.errorHandler— sohandled: truedoes not suppress it, and.catch()only swallows the promise rejection, not the dialog.Root fix: don't start the LSP client at all while the server is a stub. The LSP subsystem slice wires up the client once
beloch lspis a real server.Fixed on the
vscode-previewbranch (see #53) ineditors/vscode/src/lsp.ts—registerLspno longer callsclient.start(); the client-bootstrap seam is kept in astartClienthelper for the LSP slice. Reachesmainwhen #53 merges.Found while dogfooding the live preview.
moving) in the LSP #64