mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Add config to Ctx
This commit is contained in:
parent
7646dc046e
commit
efbbc903e6
4 changed files with 10 additions and 9 deletions
|
@ -12,7 +12,7 @@ export function activateHighlighting(ctx: Ctx) {
|
|||
vscode.window.onDidChangeActiveTextEditor(
|
||||
async (editor: vscode.TextEditor | undefined) => {
|
||||
if (!editor || editor.document.languageId !== 'rust') return;
|
||||
if (!Server.config.highlightingOn) return;
|
||||
if (!ctx.config.highlightingOn) return;
|
||||
|
||||
const params: lc.TextDocumentIdentifier = {
|
||||
uri: editor.document.uri.toString(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue