Fix warnings for protobuf object literals (#3948)

Create protobuf objects with .create()
This commit is contained in:
Sarah Fortune authored and GitHub committed 2025-05-31 01:35:29 -07:00
1 parent 89f35b0800
commit f7e5398ac8
30 files changed
+99 -96

No files matched your search

@@ -15,7 +15,7 @@ export async function updateTerminalConnectionTimeout(controller: Controller, re
if (typeof timeout === "number" && !isNaN(timeout) && timeout > 0) {
// Update the global state directly
await updateGlobalState(controller.context, "shellIntegrationTimeout", timeout)
return { value: timeout }
return Int64.create({ value: timeout })
} else {
console.warn(`Invalid shell integration timeout value received: ${timeout}. Expected a positive number.`)
throw new Error("Invalid timeout value. Expected a positive number.")