Skip to content

Commit 116ea07

Browse files
authored
feat(amazonq): add abap as supported language #1463
1 parent 2f34d43 commit 116ea07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/aws-lsp-codewhisperer/src/shared/languageDetection.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { TextDocument } from '@aws/language-server-runtimes/server-interface'
22

33
export type CodewhispererLanguage =
4+
| 'abap'
45
| 'c'
56
| 'cpp'
67
| 'csharp'
@@ -34,6 +35,7 @@ export type CodewhispererLanguage =
3435
type RuntimeLanguage = Exclude<CodewhispererLanguage, 'jsx' | 'tsx' | 'systemVerilog'> | 'systemverilog'
3536

3637
const runtimeLanguageSet: ReadonlySet<RuntimeLanguage> = new Set([
38+
'abap',
3739
'c',
3840
'cpp',
3941
'csharp',
@@ -59,6 +61,7 @@ const runtimeLanguageSet: ReadonlySet<RuntimeLanguage> = new Set([
5961
// are integrated into the language server and clients.
6062
// See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#textDocumentItem
6163
const supportedFileTypes: CodewhispererLanguage[] = [
64+
'abap',
6265
'c',
6366
'cpp',
6467
'csharp',
@@ -98,6 +101,7 @@ export const supportedWorkspaceContextLanguages: CodewhispererLanguage[] = [
98101
]
99102

100103
export const languageByExtension: { [key: string]: CodewhispererLanguage } = {
104+
'.abap': 'abap',
101105
'.c': 'c',
102106
'.cpp': 'cpp',
103107
'.cs': 'csharp',
@@ -141,6 +145,7 @@ export const languageByExtension: { [key: string]: CodewhispererLanguage } = {
141145

142146
// some are exact match and some like javascriptreact and shellscript are not
143147
export const qLanguageIdByDocumentLanguageId: { [key: string]: CodewhispererLanguage } = {
148+
abap: 'abap',
144149
c: 'c',
145150
cpp: 'cpp',
146151
csharp: 'csharp',

0 commit comments

Comments
 (0)