Skip to content

Commit 9846790

Browse files
authored
feat(amazonq): Automatically pause and resume @workspace indexing when OS CPU load is high (aws#5757)
1 parent e7962f3 commit 9846790

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Automatically pause and resume @workspace indexing when OS CPU load is high"
4+
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface Manifest {
6868
}
6969
const manifestUrl = 'https://aws-toolkit-language-servers.amazonaws.com/q-context/manifest.json'
7070
// this LSP client in Q extension is only going to work with these LSP server versions
71-
const supportedLspServerVersions = ['0.1.9']
71+
const supportedLspServerVersions = ['0.1.13']
7272

7373
const nodeBinName = process.platform === 'win32' ? 'node.exe' : 'node'
7474
/*
@@ -285,7 +285,7 @@ export class LspController {
285285
const resp: RelevantTextDocument[] = []
286286
chunks?.forEach((chunk) => {
287287
const text = chunk.context ? chunk.context : chunk.content
288-
if (chunk.programmingLanguage) {
288+
if (chunk.programmingLanguage && chunk.programmingLanguage !== 'unknown') {
289289
resp.push({
290290
text: text,
291291
relativeFilePath: chunk.relativePath ? chunk.relativePath : path.basename(chunk.filePath),

0 commit comments

Comments
 (0)