mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
Disallow and suppress unsafe assignment (#19736)
This commit is contained in:
committed by
GitHub
parent
b746524a1b
commit
58d637f919
@@ -38,6 +38,7 @@ async function checkForUpdates(
|
||||
isManagedExtensionSurface: boolean,
|
||||
) {
|
||||
try {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const currentVersion = context.extension.packageJSON.version;
|
||||
|
||||
// Fetch extension details from the VSCode Marketplace.
|
||||
@@ -75,9 +76,12 @@ async function checkForUpdates(
|
||||
return;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const data = await response.json();
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const extension = data?.results?.[0]?.extensions?.[0];
|
||||
// The versions are sorted by date, so the first one is the latest.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const latestVersion = extension?.versions?.[0]?.version;
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user