Skip to content

Commit

Permalink
Fix regression in paste context menu (#198346)
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 committed Nov 15, 2023
1 parent 23fc07c commit eca3d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/files/browser/fileActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ export const pasteFileHandler = async (accessor: ServicesAccessor, fileList?: Fi
};

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

0 comments on commit eca3d31

Please sign in to comment.