src/vs/workbench/services/host/browser/browserHostService.ts/BrowserHostService/preservePayload
class BrowserHostService:	private preservePayload(isEmptyWindow: boolean): Array<unknown> | undefined {

		// Selectively copy payload: for now only extension debugging properties are considered
		const newPayload: Array<unknown> = new Array();
		if (!isEmptyWindow && this.environmentService.extensionDevelopmentLocationURI) {
			newPayload.push(['extensionDevelopmentPath', this.environmentService.extensionDevelopmentLocationURI.toString()]);

			if (this.environmentService.debugExtensionHost.debugId) {
				newPayload.push(['debugId', this.environmentService.debugExtensionHost.debugId]);
			}

			if (this.environmentService.debugExtensionHost.port) {
				newPayload.push(['inspect-brk-extensions', String(this.environmentService.debugExtensionHost.port)]);
			}
		}

		if (!this.userDataProfileService.currentProfile.isDefault) {
			newPayload.push(['lastActiveProfile', this.userDataProfileService.currentProfile.id]);
		}

		return newPayload.length ? newPayload : undefined;
	}