Skip to content
Closed
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
7 changes: 5 additions & 2 deletions packages/amazonq/src/lsp/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ export function isValidConfigSection(section: unknown): section is ConfigSection
return typeof section === 'string' && configSections.includes(section as ConfigSection)
}

const lspPath = DevSettings.instance.get('flare', '') ?? undefined
const lspUiPath = DevSettings.instance.get('flareUi', '') ?? undefined

export const defaultAmazonQLspConfig: ExtendedAmazonQLSPConfig = {
manifestUrl: 'https://aws-toolkit-language-servers.amazonaws.com/qAgenticChatServer/0/manifest.json',
supportedVersions: '1.*.*',
id: 'AmazonQ', // used across IDEs for identifying global storage/local disk locations. Do not change.
suppressPromptPrefix: 'amazonQ',
path: undefined,
ui: undefined,
path: lspPath,
ui: lspUiPath,
}

export function getAmazonQLspConfig(): ExtendedAmazonQLSPConfig {
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/shared/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,8 @@ const devSettings = {
autofillStartUrl: String,
webAuth: Boolean,
notificationsPollInterval: Number,
flare: String,
flareUi: String,
}
type ResolvedDevSettings = FromDescriptor<typeof devSettings>
type AwsDevSetting = keyof ResolvedDevSettings
Expand Down
Loading