Skip to content

Commit e033744

Browse files
committed
refactor: clean up
1 parent 0aff18b commit e033744

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
} from 'aws-core-vscode/shared'
3636
import { activate } from './chat/activation'
3737
import { AmazonQResourcePaths } from './lspInstaller'
38-
import { getLspLogLevel } from './config'
38+
import { getLspLogSettings } from './config'
3939

4040
const localize = nls.loadMessageBundle()
4141
const logger = getLogger('amazonqLsp.lspClient')
@@ -63,7 +63,7 @@ export async function startLanguageServer(
6363
})
6464
const clientId = `amazonq`
6565
const documentSelector = [{ scheme: 'file', language: '*' }]
66-
const lspLogSettings = getLspLogLevel(clientId)
66+
const lspLogSettings = getLspLogSettings(clientId)
6767

6868
getLogger('amazonqLsp').info(`Sending log settings to lsp: %O`, lspLogSettings)
6969

packages/amazonq/src/lsp/config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ export function getAmazonQLspConfig(): ExtendedAmazonQLSPConfig {
2727
}
2828
}
2929

30-
// TODO: expose lsp logging settings to users
31-
// trace.server -> pipe LSP logs to seperate output channel.
32-
// lsp.logLevel -> log level to pass to the lsp.
33-
export function getLspLogLevel(clientId: string) {
30+
// TODO: expose lsp logging settings to users and re-send on update.
31+
export function getLspLogSettings(clientId: string) {
3432
const traceServerSetting = `${clientId}.trace.server`
3533
const lspLogLevelSetting = `${clientId}.lsp.logLevel`
3634

0 commit comments

Comments
 (0)