(injectionOpts)
| 527 | } |
| 528 | |
| 529 | function needsRuntimeInjection(injectionOpts) { |
| 530 | return Boolean( |
| 531 | injectionOpts.sessionApiKey || |
| 532 | injectionOpts.authRequired || |
| 533 | injectionOpts.runtimeServicesInfo || |
| 534 | injectionOpts.lockToCloud || |
| 535 | injectionOpts.vscodeBasePath || |
| 536 | injectionOpts.disableTelemetry || |
| 537 | (injectionOpts.basePath && injectionOpts.basePath !== "/"), |
| 538 | ); |
| 539 | } |
| 540 | |
| 541 | function looksLikeAssetRequest(urlPath) { |
| 542 | const last = urlPath.split("/").pop() ?? ""; |