Skip to content

Commit

Permalink
Remove 'file' sheme from documentSelector
Browse files Browse the repository at this point in the history
Fixes #1033

Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr authored and datho7561 committed Nov 5, 2024
1 parent ae488d9 commit 7bf742f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/client/languageParticipants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand All @@ -86,4 +75,4 @@ function isEqualSet<T>(s1: Set<T>, s2: Set<T>) {
}
}
return true;
}
}

0 comments on commit 7bf742f

Please sign in to comment.