Skip to content

Commit d17c1d7

Browse files
authored
feat(amazonq): support listAvailableModels request (#7591)
## Problem Clients should support listAvailableModels lsp method ## Solution Add listAvailableModels to request handlers --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 7dc982c commit d17c1d7

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/amazonq/src/lsp/chat/messages.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import {
6161
ruleClickRequestType,
6262
pinnedContextNotificationType,
6363
activeEditorChangedNotificationType,
64+
listAvailableModelsRequestType,
6465
ShowOpenDialogRequestType,
6566
ShowOpenDialogParams,
6667
openFileDialogRequestType,
@@ -369,6 +370,7 @@ export function registerMessageListeners(
369370
case listMcpServersRequestType.method:
370371
case mcpServerClickRequestType.method:
371372
case tabBarActionRequestType.method:
373+
case listAvailableModelsRequestType.method:
372374
await resolveChatResponse(message.command, message.params, languageClient, webview)
373375
break
374376
case followUpClickNotificationType.method:

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@
471471
"@aws-sdk/types": "^3.13.1",
472472
"@aws/chat-client": "^0.1.4",
473473
"@aws/chat-client-ui-types": "^0.1.47",
474-
"@aws/language-server-runtimes": "^0.2.101",
475-
"@aws/language-server-runtimes-types": "^0.1.42",
474+
"@aws/language-server-runtimes": "^0.2.102",
475+
"@aws/language-server-runtimes-types": "^0.1.43",
476476
"@cspotcode/source-map-support": "^0.8.1",
477477
"@sinonjs/fake-timers": "^10.0.2",
478478
"@types/adm-zip": "^0.4.34",

0 commit comments

Comments
 (0)