mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
Disallow floating promises. (#14605)
This commit is contained in:
committed by
GitHub
parent
3cf44acc08
commit
025e450ac2
@@ -107,6 +107,7 @@ function sendIdeContextUpdateNotification(
|
||||
params: ideContext,
|
||||
});
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
transport.send(notification);
|
||||
}
|
||||
|
||||
@@ -196,6 +197,7 @@ export class IDEServer {
|
||||
const onDidChangeDiffSubscription = this.diffManager.onDidChange(
|
||||
(notification) => {
|
||||
for (const transport of Object.values(this.transports)) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
transport.send(notification);
|
||||
}
|
||||
},
|
||||
@@ -248,6 +250,8 @@ export class IDEServer {
|
||||
delete this.transports[transport.sessionId];
|
||||
}
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
mcpServer.connect(transport);
|
||||
} else {
|
||||
this.log(
|
||||
|
||||
Reference in New Issue
Block a user