Skip to content

Commit c6776c7

Browse files
committed
TEMP
1 parent a4dc2c0 commit c6776c7

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
@@ -56,7 +56,7 @@ export class AmazonQChatViewProvider implements WebviewViewProvider {
5656
* it will 401 when trying to load
5757
*/
5858
const mynahUIPath = getAmazonQLspConfig().ui
59-
if (process.env.WEBPACK_DEVELOPER_SERVER && mynahUIPath) {
59+
if (mynahUIPath) {
6060
const dir = path.dirname(mynahUIPath)
6161
resourcesRoots.push(Uri.file(dir))
6262
}

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: '*', // TODO swap this back
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)