We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bfe0df commit bb25874Copy full SHA for bb25874
extensions/ql-vscode/src/language-context-store.ts
@@ -33,7 +33,10 @@ export class LanguageContextStore extends DisposableObject {
33
this.onLanguageContextChangedEmitter.fire();
34
}
35
36
- // TODO: comment on why string is used here
+ // This method takes a string to allow it to be used in cases
37
+ // where the language is not always a known one.
38
+ // The semantics of such an unknown langauge is that it is
39
+ // only included if the current language context is "All".
40
public shouldInclude(language: string): boolean {
41
return this.state === "All" || this.state === language;
42
0 commit comments