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