File tree Expand file tree Collapse file tree 6 files changed +8
-9
lines changed
Expand file tree Collapse file tree 6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ import {
1212 fs ,
1313 LspResolution ,
1414 getNodeExecutableName ,
15+ cleanUpLSPDownloads ,
1516} from 'aws-core-vscode/shared'
1617import path from 'path'
17- import { cleanUpLSPDownloads } from 'aws-core-vscode/amazonq'
1818
1919const manifestURL = 'https://aws-toolkit-language-servers.amazonaws.com/codewhisperer/0/manifest.json'
2020export const supportedLspServerVersions = '^2.3.0'
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ export {
1717} from './onboardingPage/walkthrough'
1818export { LspController } from './lsp/lspController'
1919export { LspClient } from './lsp/lspClient'
20- export { cleanUpLSPDownloads } from './lsp/util'
2120export { api } from './extApi'
2221export { AmazonQChatViewProvider } from './webview/webView'
2322export { init as cwChatAppInit } from '../codewhispererChat/app'
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { LanguageServerResolver } from '../../shared/lsp/lspResolver'
1010import { Range } from 'semver'
1111import { getNodeExecutableName } from '../../shared/lsp/utils/platform'
1212import { fs } from '../../shared/fs/fs'
13- import { cleanUpLSPDownloads } from './util '
13+ import { cleanUpLSPDownloads } from '../../shared '
1414
1515const manifestUrl = 'https://aws-toolkit-language-servers.amazonaws.com/q-context/manifest.json'
1616// this LSP client in Q extension is only going to work with these LSP server versions
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export { TabTypeDataMap } from '../amazonq/webview/ui/tabs/constants'
6363export * from './lsp/manifestResolver'
6464export * from './lsp/lspResolver'
6565export * from './lsp/types'
66+ export * from './lsp/utils/cleanup'
6667export { default as request } from './request'
6768export * from './lsp/utils/platform'
6869export * as processUtils from './utilities/processUtils'
Original file line number Diff line number Diff line change 44 */
55
66import path from 'path'
7- import { LspVersion } from '../../shared '
8- import { fs } from '../../shared/fs/fs'
9- import { partition } from '../../shared/utilities/tsUtils'
7+ import { LspVersion } from '../types '
8+ import { fs } from '../../../ shared/fs/fs'
9+ import { partition } from '../../../ shared/utilities/tsUtils'
1010import { sort } from 'semver'
1111
12- export async function getDownloadedVersions ( installLocation : string ) {
12+ async function getDownloadedVersions ( installLocation : string ) {
1313 return ( await fs . readdir ( installLocation ) ) . map ( ( [ f , _ ] , __ ) => f )
1414}
1515
Original file line number Diff line number Diff line change 44 */
55
66import { Uri } from 'vscode'
7- import { fs } from '../../../shared'
7+ import { cleanUpLSPDownloads , fs } from '../../../shared'
88import { createTestWorkspaceFolder } from '../../testUtil'
99import path from 'path'
1010import assert from 'assert'
11- import { cleanUpLSPDownloads } from '../../../amazonq/lsp/util'
1211
1312async function fakeInstallVersion ( version : string , installationDir : string ) : Promise < void > {
1413 const versionDir = path . join ( installationDir , version )
You can’t perform that action at this time.
0 commit comments