Change:
When I report an issue from our issue reporter from an untrusted workspace, there is no info about this in the GH issue.
Marking as important to make sure we care about this before enabling trust by default to not make our life harder for triaging issues than it needs to be.
Two examples: in an effort to make the smallest change this late in the game, I’ve put it in System Info however when you report a performance issue, we also have a section called “Workspace Info” that shows up that gives details on the workspace (like number of files, etc). I think it should eventually go there
lol jk sent a PR putting it next to the OS which I don't love... but the change is small and it means the user can't not tell us their WT situation which is good.

Discussion:
this.applyStyles(configuration.data.styles); this.handleExtensionData(configuration.data.enabledExtensions); this.updateExperimentsInfo(configuration.data.experiments); <ins> this.updateRestrictedMode(configuration.data.restrictedMode); </ins> } render(): void {

} } <ins> private updateRestrictedMode(restrictedMode: boolean) { this.issueReporterModel.update({ restrictedMode }); } </ins> private updateExperimentsInfo(experimentInfo: string | undefined) { this.issueReporterModel.update({ experimentInfo }); const target = document.querySelector<HTMLElement>('.block-experiments .block-info');

query?: string; filterResultCount?: number; experimentInfo?: string; <ins> restrictedMode?: boolean; </ins> } export class IssueReporterModel {

${this.getExtensionVersion()} VS Code version: ${this._data.versionInfo && this._data.versionInfo.vscodeVersion} OS version: ${this._data.versionInfo && this._data.versionInfo.os} <ins> Restricted Mode: ${this._data.restrictedMode ? 'Yes' : 'No'} </ins> ${this.getRemoteOSes()} ${this.getInfos()} <!-- generated by issue reporter -->`;

issueType?: IssueType; extensionId?: string; experiments?: string; <ins> restrictedMode: boolean; </ins> githubAccessToken: string; readonly issueTitle?: string; readonly issueBody?: string;

import { ITASExperimentService } from 'vs/workbench/services/experiment/common/experimentService'; import { IAuthenticationService } from 'vs/workbench/services/authentication/browser/authenticationService'; import { registerMainProcessRemoteService } from 'vs/platform/ipc/electron-sandbox/services'; <ins> import { IWorkspaceTrustManagementService } from 'vs/platform/workspace/common/workspaceTrust'; </ins> export class WorkbenchIssueService implements IWorkbenchIssueService { declare readonly _serviceBrand: undefined;

@IExtensionManagementService private readonly extensionManagementService: IExtensionManagementService, @IWorkbenchExtensionEnablementService private readonly extensionEnablementService: IWorkbenchExtensionEnablementService, @INativeWorkbenchEnvironmentService private readonly environmentService: INativeWorkbenchEnvironmentService, <ins> @IWorkspaceTrustManagementService private readonly workspaceTrustManagementService: IWorkspaceTrustManagementService, </ins> @IProductService private readonly productService: IProductService, @ITASExperimentService private readonly experimentService: ITASExperimentService, @IAuthenticationService private readonly authenticationService: IAuthenticationService

zoomLevel: getZoomLevel(), enabledExtensions: extensionData, experiments: experiments?.join('n'), <ins> restrictedMode: !this.workspaceTrustManagementService.isWorkpaceTrusted(), </ins> githubAccessToken, }, dataOverrides); return this.issueService.openReporter(issueReporterData);