diff --git a/packages/amazonq/src/lsp/config.ts b/packages/amazonq/src/lsp/config.ts index 66edc9ff6f1..408c1a4757f 100644 --- a/packages/amazonq/src/lsp/config.ts +++ b/packages/amazonq/src/lsp/config.ts @@ -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 { diff --git a/packages/core/src/shared/settings.ts b/packages/core/src/shared/settings.ts index 4e3e99f8207..3f6357bb973 100644 --- a/packages/core/src/shared/settings.ts +++ b/packages/core/src/shared/settings.ts @@ -782,6 +782,8 @@ const devSettings = { autofillStartUrl: String, webAuth: Boolean, notificationsPollInterval: Number, + flare: String, + flareUi: String, } type ResolvedDevSettings = FromDescriptor type AwsDevSetting = keyof ResolvedDevSettings