Skip to content

Commit 642c1a5

Browse files
log the language server to 'Amazon Q Logs'
We want to have everything in one place. Signed-off-by: nkomonen-amazon <[email protected]>
1 parent 6a49b15 commit 642c1a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/amazonq/lsp/lspClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
} from './types'
3131
import { Writable } from 'stream'
3232
import { CodeWhispererSettings } from '../../codewhisperer/util/codewhispererSettings'
33-
import { fs, getLogger } from '../../shared'
33+
import { fs, getLogger, globals } from '../../shared'
3434

3535
const localize = nls.loadMessageBundle()
3636

@@ -201,6 +201,9 @@ export async function activate(extensionContext: ExtensionContext) {
201201
// this is used by LSP to determine index cache path, move to this folder so that when extension updates index is not deleted.
202202
extensionPath: path.join(fs.getUserHomeDir(), '.aws', 'amazonq', 'cache'),
203203
},
204+
// Log to the Amazon Q Logs so everything is in a single channel
205+
// TODO: Add prefix to the language server logs so it is easier to search
206+
outputChannel: globals.logOutputChannel,
204207
}
205208

206209
// Create the language client and start the client.

0 commit comments

Comments
 (0)