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 61ca325 commit 4767f9bCopy full SHA for 4767f9b
packages/core/src/codewhispererChat/editor/context/file/languages.ts
@@ -117,10 +117,7 @@ export function extractLanguageNameFromFile(file: TextDocument): string | undefi
117
export function extractAdditionalLanguageMatchPoliciesFromFile(file: TextDocument): Set<string> {
118
const languageId = file.languageId
119
120
- if (languageId === undefined) {
121
- return new Set<string>()
122
- }
123
- if (validLanguageIds.includes(languageId)) {
+ if (languageId === undefined || validLanguageIds.includes(languageId)) {
124
return new Set<string>()
125
}
126
switch (languageId) {
0 commit comments