File tree Expand file tree Collapse file tree
src/vs/workbench/services/dialogs/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,12 +230,12 @@ export abstract class AbstractFileDialogService implements IFileDialogService {
230230 return remoteFileDialog . showSaveDialog ( options ) ;
231231 }
232232
233- protected getSchemeFilterForWindow ( ) : string {
234- return ! this . environmentService . configuration . remoteAuthority ? Schemas . file : REMOTE_HOST_SCHEME ;
233+ protected getSchemeFilterForWindow ( defaultUriScheme ?: string ) : string {
234+ return ! this . environmentService . configuration . remoteAuthority ? ( ! defaultUriScheme || defaultUriScheme === Schemas . file ? Schemas . file : defaultUriScheme ) : REMOTE_HOST_SCHEME ;
235235 }
236236
237237 protected getFileSystemSchema ( options : { availableFileSystems ?: readonly string [ ] , defaultUri ?: URI } ) : string {
238- return options . availableFileSystems && options . availableFileSystems [ 0 ] || this . getSchemeFilterForWindow ( ) ;
238+ return options . availableFileSystems && options . availableFileSystems [ 0 ] || this . getSchemeFilterForWindow ( options . defaultUri ?. scheme ) ;
239239 }
240240
241241 abstract pickFileFolderAndOpen ( options : IPickAndOpenOptions ) : Promise < void > ;
You can’t perform that action at this time.
0 commit comments