diff --git a/apps/vscode/src/lsp/client.ts b/apps/vscode/src/lsp/client.ts index 5f3a9858..4dc7d22c 100644 --- a/apps/vscode/src/lsp/client.ts +++ b/apps/vscode/src/lsp/client.ts @@ -63,6 +63,7 @@ import { import { getHover, getSignatureHelpHover } from "../core/hover"; import { imageHover } from "../providers/hover-image"; import { LspInitializationOptions, QuartoContext } from "quarto-core"; +import { extensionHost } from "../host"; let client: LanguageClient; @@ -108,7 +109,8 @@ export async function activateLsp( if (config.get("cells.signatureHelp.enabled", true)) { middleware.provideSignatureHelp = embeddedSignatureHelpProvider(engine); } - + extensionHost().registerStatementRangeProvider(engine); + // create client options const initializationOptions : LspInitializationOptions = { quartoBinPath: quartoContext.binPath