From 042a0ed0c45e629094e7a001f87ff08cccf7b67d Mon Sep 17 00:00:00 2001 From: azerr Date: Tue, 5 Nov 2024 17:02:02 +0100 Subject: [PATCH] Remove 'file' sheme from documentSelector Fixes #1033 Signed-off-by: azerr --- src/client/languageParticipants.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/client/languageParticipants.ts b/src/client/languageParticipants.ts index 854dd2b6..226e0c68 100644 --- a/src/client/languageParticipants.ts +++ b/src/client/languageParticipants.ts @@ -59,18 +59,7 @@ export function getLanguageParticipants(): LanguageParticipants { return { onDidChange: onDidChangeEmmiter.event, - get documentSelector() { - return Array.from(languages) // - .flatMap(language => { - return [{ - language, - scheme: 'file', - }, { - language, - scheme: 'untitled', - }] as DocumentFilter[]; - }); - }, + get documentSelector() { return Array.from(languages); }, hasLanguage(languageId: string) { return languages.has(languageId); }, dispose: () => changeListener.dispose() }; @@ -86,4 +75,4 @@ function isEqualSet(s1: Set, s2: Set) { } } return true; -} \ No newline at end of file +}