Skip to content

Commit 520dbf0

Browse files
committed
fixup
1 parent 5e4908a commit 520dbf0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/amazonq/src/lsp/lspInstaller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { getAmazonQLspConfig } from './config'
99

1010
export class AmazonQLspInstaller extends BaseLspInstaller {
1111
constructor() {
12-
super(getAmazonQLspConfig())
12+
super(getAmazonQLspConfig(), 'amazonqLsp')
1313
}
1414

1515
protected override async postInstall(assetDirectory: string): Promise<void> {
@@ -20,7 +20,7 @@ export class AmazonQLspInstaller extends BaseLspInstaller {
2020
protected override resourcePaths(assetDirectory?: string): ResourcePaths {
2121
if (!assetDirectory) {
2222
return {
23-
lsp: this.config.locationOverride ?? '',
23+
lsp: this.config.path ?? '',
2424
node: getNodeExecutableName(),
2525
}
2626
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getAmazonQWorkspaceLspConfig } from './config'
1212

1313
export class WorkspaceLSPInstaller extends BaseLspInstaller {
1414
constructor() {
15-
super(getAmazonQWorkspaceLspConfig())
15+
super(getAmazonQWorkspaceLspConfig(), 'amazonqWorkspaceLsp')
1616
}
1717

1818
protected override async postInstall(assetDirectory: string): Promise<void> {
@@ -24,7 +24,7 @@ export class WorkspaceLSPInstaller extends BaseLspInstaller {
2424
// local version
2525
if (!assetDirectory) {
2626
return {
27-
lsp: this.config.locationOverride ?? '',
27+
lsp: this.config.path ?? '',
2828
node: getNodeExecutableName(),
2929
}
3030
}

packages/core/src/shared/lsp/baseLspInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export abstract class BaseLspInstaller {
1919

2020
constructor(
2121
protected config: LspConfig,
22-
loggerName: Extract<LogTopic, 'amazonqLsp' | 'amazonqWorkplaceLsp'>
22+
loggerName: Extract<LogTopic, 'amazonqLsp' | 'amazonqWorkspaceLsp'>
2323
) {
2424
this.logger = getLogger(loggerName)
2525
}

0 commit comments

Comments
 (0)