File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 44 */
55
66import vscode from 'vscode'
7- import path from 'path'
87import { AmazonQLSPDownloader } from './download'
98
109export 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 /**
Original file line number Diff line number Diff line change 44 */
55
66import {
7- LSPDownloader ,
8- Manifest ,
7+ LspDownloader ,
98 getLogger ,
109 makeTemporaryToolkitFolder ,
1110 tryRemoveFolder ,
1211 fs ,
12+ Manifest ,
1313} from 'aws-core-vscode/shared'
1414
1515const 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
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { telemetry } from '../../shared/telemetry'
1414import { isCloud9 } from '../../shared/extensionUtilities'
1515import globals , { isWeb } from '../../shared/extensionGlobals'
1616import { isAmazonInternalOs } from '../../shared/vscode/env'
17- import { LSPDownloader , Manifest } from '../../shared/downloadLSP '
17+ import { LspDownloader , Manifest } from '../../shared/fetchLsp '
1818import { fs } from '../../shared/fs/fs'
1919import { 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
Original file line number Diff line number Diff 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 [ ]
Original file line number Diff line number Diff line change @@ -59,4 +59,4 @@ export { i18n } from './i18n-helper'
5959export * from './icons'
6060export * as textDocumentUtil from './utilities/textDocumentUtilities'
6161export { TabTypeDataMap } from '../amazonq/webview/ui/tabs/constants'
62- export { LSPDownloader , Manifest , Content } from './downloadLSP '
62+ export * from './fetchLsp '
You can’t perform that action at this time.
0 commit comments