Skip to content

Commit 7d0d8f7

Browse files
authored
fix(codewhisperer): bash files not recognized in Cloud9 #3895
1 parent 021a7f7 commit 7d0d8f7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/codewhisperer/models/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const supportedLanguages = [
101101
'rust',
102102
'scala',
103103
'shellscript',
104+
'sh', // Cloud9 reports bash files with this language-id
104105
'sql',
105106
] as const
106107

src/codewhisperer/util/runtimeLanguageContext.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class RuntimeLanguageContext {
4444
ruby: 'ruby',
4545
rust: 'rust',
4646
scala: 'scala',
47+
sh: 'shell',
4748
shellscript: 'shell',
4849
sql: 'sql',
4950
})
@@ -64,6 +65,7 @@ export class RuntimeLanguageContext {
6465
ruby: 'rb',
6566
rust: 'rs',
6667
scala: 'scala',
68+
sh: 'sh',
6769
shellscript: 'sh',
6870
sql: 'sql',
6971
})

0 commit comments

Comments
 (0)