File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55import * as vscode from 'vscode'
6- import { DevSettings , getServiceEnvVarConfig } from 'aws-core-vscode/shared'
6+ import { DevSettings , getServiceEnvVarConfig , resolvePath } from 'aws-core-vscode/shared'
77import { LspConfig } from 'aws-core-vscode/amazonq'
88import { LanguageClient } from 'vscode-languageclient'
99import {
@@ -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
4749export function getAmazonQLspConfig ( ) : ExtendedAmazonQLSPConfig {
You can’t perform that action at this time.
0 commit comments