Skip to content

Commit 7a5c2aa

Browse files
committed
TEMP
1 parent 79a73fb commit 7a5c2aa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class AmazonQChatViewProvider implements WebviewViewProvider {
5252
* it will 401 when trying to load
5353
*/
5454
const mynahUIPath = getAmazonQLspConfig().ui
55-
if (process.env.WEBPACK_DEVELOPER_SERVER && mynahUIPath) {
55+
if (mynahUIPath) {
5656
const dir = path.dirname(mynahUIPath)
5757
resourcesRoots.push(Uri.file(dir))
5858
}

packages/amazonq/src/lsp/config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
import * as vscode from 'vscode'
6-
import { DevSettings, getServiceEnvVarConfig } from 'aws-core-vscode/shared'
6+
import { DevSettings, getServiceEnvVarConfig, resolvePath } from 'aws-core-vscode/shared'
77
import { LspConfig } from 'aws-core-vscode/amazonq'
88
import { LanguageClient } from 'vscode-languageclient'
99
import {
@@ -40,8 +40,10 @@ export const defaultAmazonQLspConfig: ExtendedAmazonQLSPConfig = {
4040
supportedVersions: '1.*.*',
4141
id: 'AmazonQ', // used across IDEs for identifying global storage/local disk locations. Do not change.
4242
suppressPromptPrefix: 'amazonQ',
43-
path: undefined,
44-
ui: undefined,
43+
path: resolvePath('~/aws-lsp-codewhisperer.js'), // '/Volumes/workplace/aws-language-servers/app/aws-lsp-codewhisperer-runtimes/out/agent-standalone.js'
44+
ui: resolvePath('~/amazonq-ui.js'), // '/Volumes/workplace/aws-language-servers/chat-client/build/amazonq-ui.js'
45+
// path: resolvePath('~/app/aws-lsp-codewhisperer-runtimes/out/agent-standalone.js'), // '/Volumes/workplace/aws-language-servers/app/aws-lsp-codewhisperer-runtimes/out/agent-standalone.js'
46+
// ui: resolvePath('~/chat-client/build/amazonq-ui.js'), // '/Volumes/workplace/aws-language-servers/chat-client/build/amazonq-ui.js'
4547
}
4648

4749
export function getAmazonQLspConfig(): ExtendedAmazonQLSPConfig {

0 commit comments

Comments
 (0)