Skip to content

Commit e211ef1

Browse files
author
Benjamin Pasero
committed
💄
1 parent 72177d7 commit e211ef1

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/vs/workbench/contrib/files/browser/views/explorerViewer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/vs/workbench/services/textfile/browser/textFileService.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)