Skip to content

Commit 9d2d431

Browse files
committed
fixup
1 parent 374edb4 commit 9d2d431

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

packages/amazonq/src/lsp/activation.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
*/
55

66
import vscode from 'vscode'
7-
import path from 'path'
87
import { AmazonQLSPDownloader } from './download'
98

109
export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
11-
const serverPath = ctx.asAbsolutePath(path.join('resources', 'qdeveloperserver'))
12-
const clientPath = ctx.asAbsolutePath(path.join('resources', 'qdeveloperclient'))
10+
const serverPath = ctx.asAbsolutePath('resources/qdeveloperserver')
11+
const clientPath = ctx.asAbsolutePath('resources/qdeveloperclient')
1312
await new AmazonQLSPDownloader(serverPath, clientPath).tryInstallLsp()
1413

1514
/**

packages/amazonq/src/lsp/download.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
*/
55

66
import {
7-
LSPDownloader,
8-
Manifest,
7+
LspDownloader,
98
getLogger,
109
makeTemporaryToolkitFolder,
1110
tryRemoveFolder,
1211
fs,
12+
Manifest,
1313
} from 'aws-core-vscode/shared'
1414

1515
const manifestURL = 'https://aws-toolkit-language-servers.amazonaws.com/codewhisperer/0/manifest.json'
1616

17-
export class AmazonQLSPDownloader extends LSPDownloader {
17+
export class AmazonQLSPDownloader extends LspDownloader {
1818
constructor(
1919
private readonly serverPath: string,
2020
private readonly clientPath: string

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { telemetry } from '../../shared/telemetry'
1414
import { isCloud9 } from '../../shared/extensionUtilities'
1515
import globals, { isWeb } from '../../shared/extensionGlobals'
1616
import { isAmazonInternalOs } from '../../shared/vscode/env'
17-
import { LSPDownloader, Manifest } from '../../shared/downloadLSP'
17+
import { LspDownloader, Manifest } from '../../shared/fetchLsp'
1818
import { fs } from '../../shared/fs/fs'
1919
import { makeTemporaryToolkitFolder, tryRemoveFolder } from '../../shared/filesystemUtilities'
2020

@@ -49,7 +49,7 @@ export interface BuildIndexConfig {
4949
* Pre-process the input to Index Files API
5050
* Post-process the output from Query API
5151
*/
52-
export class LspController extends LSPDownloader {
52+
export class LspController extends LspDownloader {
5353
static #instance: LspController
5454
private _isIndexingInProgress = false
5555
private serverPath: string

packages/core/src/shared/downloadLSP.ts renamed to packages/core/src/shared/fetchLsp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface Manifest {
4242
}[]
4343
}
4444

45-
export abstract class LSPDownloader {
45+
export abstract class LspDownloader {
4646
constructor(
4747
private readonly manifestURL: string,
4848
private readonly supportedLspServerVersions?: string[]

packages/core/src/shared/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ export { i18n } from './i18n-helper'
5959
export * from './icons'
6060
export * as textDocumentUtil from './utilities/textDocumentUtilities'
6161
export { TabTypeDataMap } from '../amazonq/webview/ui/tabs/constants'
62-
export { LSPDownloader, Manifest, Content } from './downloadLSP'
62+
export * from './fetchLsp'

0 commit comments

Comments
 (0)