@@ -32,7 +32,6 @@ import { IModelService } from 'vs/editor/common/services/modelService';
3232import { INotificationService , Severity } from 'vs/platform/notification/common/notification' ;
3333import { isEqualOrParent , isEqual , joinPath , dirname , extname , basename } from 'vs/base/common/resources' ;
3434import { posix } from 'vs/base/common/path' ;
35- import { REMOTE_HOST_SCHEME } from 'vs/platform/remote/common/remoteHosts' ;
3635import { getConfirmMessage , IDialogService , IFileDialogService , ISaveDialogOptions , IConfirmation } from 'vs/platform/dialogs/common/dialogs' ;
3736import { IModeService } from 'vs/editor/common/services/modeService' ;
3837import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
@@ -615,7 +614,7 @@ export class TextFileService extends Disposable implements ITextFileService {
615614 if ( path && path [ 0 ] !== posix . sep ) {
616615 path = posix . sep + path ;
617616 }
618- return untitled . with ( { scheme : REMOTE_HOST_SCHEME , authority, path } ) ;
617+ return untitled . with ( { scheme : Schemas . vscodeRemote , authority, path } ) ;
619618 }
620619 return untitled . with ( { scheme : Schemas . file } ) ;
621620 }
@@ -800,7 +799,7 @@ export class TextFileService extends Disposable implements ITextFileService {
800799 private suggestFileName ( untitledResource : URI ) : URI {
801800 const untitledFileName = this . untitledEditorService . suggestFileName ( untitledResource ) ;
802801 const remoteAuthority = this . environmentService . configuration . remoteAuthority ;
803- const schemeFilter = remoteAuthority ? REMOTE_HOST_SCHEME : Schemas . file ;
802+ const schemeFilter = remoteAuthority ? Schemas . vscodeRemote : Schemas . file ;
804803
805804 const lastActiveFile = this . historyService . getLastActiveFile ( schemeFilter ) ;
806805 if ( lastActiveFile ) {
0 commit comments