Skip to content

Commit

Permalink
always "allow" file uploads/downloads in desktop mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Jan 17, 2025
1 parent 2d4492c commit 8872ae1
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ export class NativeWorkbenchEnvironmentService extends AbstractNativeEnvironment
@memoize
get filesToWait(): IPathsToWaitFor | undefined { return this.configuration.filesToWait; }

// --- Start Positron ---
// Always file downloads and uploads on Positron Desktop. These can be
// disabled in browser mode for security reasons (see
// BrowserWorkbenchEnvironmentService), but are always enabled in the
// desktop/Electron configuration.
get isEnabledFileDownloads(): boolean {
return true;
}

get isEnabledFileUploads(): boolean {
return true;
}
// --- End Positron ---

constructor(
private readonly configuration: INativeWindowConfiguration,
productService: IProductService
Expand Down

0 comments on commit 8872ae1

Please sign in to comment.