Skip to content

Commit eca3d31

Browse files
authored
Fix regression in paste context menu (#198346)
1 parent 23fc07c commit eca3d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/files/browser/fileActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ export const pasteFileHandler = async (accessor: ServicesAccessor, fileList?: Fi
12031203
};
12041204

12051205
async function getFilesToPaste(fileList: FileList | undefined, clipboardService: IClipboardService): Promise<readonly URI[]> {
1206-
if (fileList) {
1206+
if (fileList && fileList.length > 0) {
12071207
// with a `fileList` we support natively pasting files from clipboard
12081208
return [...fileList].filter(file => !!file.path && isAbsolute(file.path)).map(file => URI.file(file.path));
12091209
} else {

0 commit comments

Comments
 (0)