File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
server/aws-lsp-codewhisperer/src/shared Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { TextDocument } from '@aws/language-server-runtimes/server-interface'
2
2
3
3
export type CodewhispererLanguage =
4
+ | 'abap'
4
5
| 'c'
5
6
| 'cpp'
6
7
| 'csharp'
@@ -34,6 +35,7 @@ export type CodewhispererLanguage =
34
35
type RuntimeLanguage = Exclude < CodewhispererLanguage , 'jsx' | 'tsx' | 'systemVerilog' > | 'systemverilog'
35
36
36
37
const runtimeLanguageSet : ReadonlySet < RuntimeLanguage > = new Set ( [
38
+ 'abap' ,
37
39
'c' ,
38
40
'cpp' ,
39
41
'csharp' ,
@@ -59,6 +61,7 @@ const runtimeLanguageSet: ReadonlySet<RuntimeLanguage> = new Set([
59
61
// are integrated into the language server and clients.
60
62
// See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#textDocumentItem
61
63
const supportedFileTypes : CodewhispererLanguage [ ] = [
64
+ 'abap' ,
62
65
'c' ,
63
66
'cpp' ,
64
67
'csharp' ,
@@ -98,6 +101,7 @@ export const supportedWorkspaceContextLanguages: CodewhispererLanguage[] = [
98
101
]
99
102
100
103
export const languageByExtension : { [ key : string ] : CodewhispererLanguage } = {
104
+ '.abap' : 'abap' ,
101
105
'.c' : 'c' ,
102
106
'.cpp' : 'cpp' ,
103
107
'.cs' : 'csharp' ,
@@ -141,6 +145,7 @@ export const languageByExtension: { [key: string]: CodewhispererLanguage } = {
141
145
142
146
// some are exact match and some like javascriptreact and shellscript are not
143
147
export const qLanguageIdByDocumentLanguageId : { [ key : string ] : CodewhispererLanguage } = {
148
+ abap : 'abap' ,
144
149
c : 'c' ,
145
150
cpp : 'cpp' ,
146
151
csharp : 'csharp' ,
You can’t perform that action at this time.
0 commit comments