mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 13:34:15 -07:00
Disallow floating promises. (#14605)
This commit is contained in:
committed by
GitHub
parent
3cf44acc08
commit
025e450ac2
@@ -278,6 +278,7 @@ export class IdeClient {
|
||||
});
|
||||
|
||||
// Ensure the mutex is released only after the diff interaction is complete.
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
promise.finally(release);
|
||||
|
||||
return promise;
|
||||
@@ -406,6 +407,7 @@ export class IdeClient {
|
||||
IDEConnectionStatus.Disconnected,
|
||||
'IDE integration disabled. To enable it again, run /ide enable.',
|
||||
);
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
this.client?.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user