Skip to content

Commit

Permalink
Register the statement range provider when activating the LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed May 18, 2024
1 parent 3c735b5 commit 1c1cb07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/vscode/src/lsp/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1c1cb07

Please sign in to comment.