Skip to content

Commit b38f025

Browse files
committed
revert ondidsave
1 parent 2700813 commit b38f025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ export async function activate(extensionContext: ExtensionContext) {
222222
return
223223
}
224224
savedDocument = document.uri
225-
void LspClient.instance.updateIndex([document.uri.fsPath], 'update')
226225
}),
227226
vscode.window.onDidChangeActiveTextEditor((editor) => {
228227
if (savedDocument && editor && editor.document.uri.fsPath !== savedDocument.fsPath) {
229-
// void LspClient.instance.updateIndex([editor.document.uri.fsPath], 'update')
228+
console.log('onDidChangeActiveTextEditor', savedDocument.fsPath)
229+
void LspClient.instance.updateIndex([savedDocument.fsPath], 'update')
230230
}
231231
}),
232232
vscode.workspace.onDidCreateFiles((e) => {

0 commit comments

Comments
 (0)