File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/vs/workbench/services/files/electron-browser Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export class FileService implements IFileService {
3535 private static readonly NET_VERSION_ERROR = 'System.MissingMethodException' ;
3636 private static readonly NET_VERSION_ERROR_IGNORE_KEY = 'ignoreNetVersionError' ;
3737
38- private raw : IFileService ;
38+ private raw : NodeFileService ;
3939
4040 private toUnbind : IDisposable [ ] ;
4141
Original file line number Diff line number Diff line change @@ -233,6 +233,15 @@ export class RemoteFileService extends FileService {
233233 return this . _withProvider ( resource ) . then ( provider => {
234234
235235 return this . resolveFile ( resource ) . then ( fileStat => {
236+
237+ if ( options . etag === fileStat . etag ) {
238+ throw new FileOperationError (
239+ localize ( 'fileNotModifiedError' , "File not modified since" ) ,
240+ FileOperationResult . FILE_NOT_MODIFIED_SINCE ,
241+ options
242+ ) ;
243+ }
244+
236245 const guessEncoding = options . autoGuessEncoding ;
237246 const count = maxBufferLen ( options ) ;
238247 const chunks : Buffer [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments