File tree Expand file tree Collapse file tree
contrib/files/browser/views
services/textfile/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -604,7 +604,6 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
604604 }
605605 }
606606
607-
608607 private async handleExternalDrop ( data : DesktopDragAndDropData , target : ExplorerItem , originalEvent : DragEvent ) : Promise < void > {
609608 const droppedResources = extractResources ( originalEvent , true ) ;
610609 // Check for dropped external files to be folders
Original file line number Diff line number Diff line change @@ -170,8 +170,6 @@ export abstract class AbstractTextFileService extends Disposable implements ITex
170170 }
171171
172172 private async backupBeforeShutdown ( dirtyToBackup : URI [ ] , reason : ShutdownReason ) : Promise < boolean > {
173- const windowCount = await this . hostService . windowCount ;
174-
175173 // When quit is requested skip the confirm callback and attempt to backup all workspaces.
176174 // When quit is not requested the confirm callback should be shown when the window being
177175 // closed is the only VS Code window open, except for on Mac where hot exit is only
@@ -182,7 +180,7 @@ export abstract class AbstractTextFileService extends Disposable implements ITex
182180 case ShutdownReason . CLOSE :
183181 if ( this . contextService . getWorkbenchState ( ) !== WorkbenchState . EMPTY && this . configuredHotExit === HotExitConfiguration . ON_EXIT_AND_WINDOW_CLOSE ) {
184182 doBackup = true ; // backup if a folder is open and onExitAndWindowClose is configured
185- } else if ( windowCount > 1 || platform . isMacintosh ) {
183+ } else if ( await this . hostService . windowCount > 1 || platform . isMacintosh ) {
186184 doBackup = false ; // do not backup if a window is closed that does not cause quitting of the application
187185 } else {
188186 doBackup = true ; // backup if last window is closed on win/linux where the application quits right after
You can’t perform that action at this time.
0 commit comments