Skip to content

Commit f2d8897

Browse files
committed
upgrade lsp to 0.1.24
1 parent 6ce3832 commit f2d8897

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface Manifest {
6666
}
6767
const manifestUrl = 'https://aws-toolkit-language-servers.amazonaws.com/q-context/manifest.json'
6868
// this LSP client in Q extension is only going to work with these LSP server versions
69-
const supportedLspServerVersions = ['0.1.22', '0.1.19']
69+
const supportedLspServerVersions = ['0.1.24']
7070

7171
const nodeBinName = process.platform === 'win32' ? 'node.exe' : 'node'
7272

@@ -354,15 +354,14 @@ export class LspController {
354354
credentialStartUrl: buildIndexConfig.startUrl,
355355
})
356356
} else {
357-
// TODO: Re-enable this code path for LSP 0.1.20+
358-
// getLogger().error(`LspController: Failed to build index of project`)
359-
// telemetry.amazonq_indexWorkspace.emit({
360-
// duration: performance.now() - start,
361-
// result: 'Failed',
362-
// amazonqIndexFileCount: 0,
363-
// amazonqIndexFileSizeInMB: 0,
364-
// reason: `Unknown`,
365-
// })
357+
getLogger().error(`LspController: Failed to build index of project`)
358+
telemetry.amazonq_indexWorkspace.emit({
359+
duration: performance.now() - start,
360+
result: 'Failed',
361+
amazonqIndexFileCount: 0,
362+
amazonqIndexFileSizeInMB: 0,
363+
reason: `Unknown`,
364+
})
366365
}
367366
} catch (error) {
368367
//TODO: use telemetry.run()

0 commit comments

Comments
 (0)