From 5c5eafde32d68ca672d8f071d6742396d2888752 Mon Sep 17 00:00:00 2001 From: Nick Thapen Date: Tue, 3 Dec 2024 16:25:06 +0000 Subject: [PATCH] feat: support all languages for AI code review (#253) --- src/extension.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index d9b95831..01a2f7cc 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -60,16 +60,9 @@ function createLangServer(): LanguageClient { const clientOptions: LanguageClientOptions = { diagnosticCollectionName: "sourcery", documentSelector: [ - { language: "python", scheme: "file" }, - { language: "javascript", scheme: "file" }, - { language: "typescript", scheme: "file" }, - { language: "javascriptreact", scheme: "file" }, - { language: "typescriptreact", scheme: "file" }, - { language: "python", scheme: "untitled" }, - { language: "python", scheme: "vscode-notebook-cell" }, - { language: "yaml", pattern: "**/.sourcery.yaml" }, - { language: "yaml", pattern: "**/sourcery.yaml" }, - { language: "yaml", pattern: "**/.sourcery/rules/*.yaml" }, + { language: "*", scheme: "file" }, + { language: "*", scheme: "untitled" }, + { language: "*", scheme: "vscode-notebook-cell" }, ], synchronize: { configurationSection: "sourcery",