Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "Inline suggestions are now provided in Docker Compose files, which VS Code identifies with the `dockercompose` language id"
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('runtimeLanguageContext', function () {
['sql', true],
['json', true],
['yaml', true],
['dockercompose', true],
['tf', true],
['dart', true],
['lua', true],
Expand Down Expand Up @@ -128,6 +129,7 @@ describe('runtimeLanguageContext', function () {
['python', 'python'],
['javascript', 'javascript'],
['typescript', 'typescript'],
['dockercompose', 'yaml'],
['javascriptreact', 'jsx'],
['typescriptreact', 'tsx'],
['csharp', 'csharp'],
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/codewhisperer/models/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const platformLanguageIds = [
'golang', // Cloud9 reports Go files with this language-id
'json',
'yaml',
'dockercompose', // VS Code reports docker-compose files with this language-id; treat as YAML.
'tf',
'hcl',
'terraform',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export class RuntimeLanguageContext {
typescriptreact: 'tsx',
yml: 'yaml',
yaml: 'yaml',
// VS Code assigns docker-compose files the 'dockercompose' language-id
// instead of 'yaml'; map it so completions are provided as YAML.
dockercompose: 'yaml',
dart: 'dart',
lua: 'lua',
powershell: 'powershell',
Expand Down
Loading