Skip to content
Merged
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": "Feature",
"description": "Amazon Q Chat: Add @Code context for PHP, Ruby, Scala, Shell, and Swift projects"
}
2 changes: 1 addition & 1 deletion packages/core/src/amazonq/lsp/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface LspConfig {

export const defaultAmazonQWorkspaceLspConfig: LspConfig = {
manifestUrl: 'https://aws-toolkit-language-servers.amazonaws.com/q-context/manifest.json',
supportedVersions: '0.1.46',
supportedVersions: '0.1.47',
id: 'AmazonQ-Workspace', // used across IDEs for identifying global storage/local disk locations. Do not change.
suppressPromptPrefix: 'amazonQWorkspace',
path: undefined,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/amazonq/lsp/lspClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class LspClient {
GetContextCommandPromptRequestType,
await this.encrypt(request)
)
return resp
return resp || []
} catch (e) {
getLogger().error(`LspClient: getContextCommandPrompt error: ${e}`)
throw e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,7 @@ export class ChatController {
id: contextCommandItem.id,
icon: 'folder' as MynahIconsType,
})
}
// TODO: Remove the limit of 25k once the performance issue of mynahUI in webview is fixed.
else if (
contextCommandItem.symbol &&
symbolsCmd.children &&
symbolsCmd.children[0].commands.length < 25_000
) {
} else if (contextCommandItem.symbol && symbolsCmd.children) {
symbolsCmd.children?.[0].commands.push({
command: contextCommandItem.symbol.name,
description: `${contextCommandItem.symbol.kind}, ${path.join(wsFolderName, contextCommandItem.relativePath)}, L${contextCommandItem.symbol.range.start.line}-${contextCommandItem.symbol.range.end.line}`,
Expand Down
Loading