File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/vs/workbench/contrib/files/browser Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -286,9 +286,6 @@ export class ExplorerService implements IExplorerService {
286
286
const previouslyCutItems = this . cutItems ;
287
287
this . cutItems = cut ? items : undefined ;
288
288
await this . clipboardService . writeResources ( items . map ( s => s . resource ) ) ;
289
- if ( items . length === 1 ) {
290
- await this . clipboardService . writeText ( items [ 0 ] . name ) ;
291
- }
292
289
293
290
this . view ?. itemsCopied ( items , cut , previouslyCutItems ) ;
294
291
}
Original file line number Diff line number Diff line change @@ -329,8 +329,9 @@ export class ExplorerView extends ViewPane implements IExplorerView {
329
329
if ( ! this . hasFocus ( ) || this . readonlyContext . get ( ) ) {
330
330
return ;
331
331
}
332
-
333
- await this . commandService . executeCommand ( 'filesExplorer.paste' , event . clipboardData ?. files ) ;
332
+ if ( event . clipboardData ?. files ?. length ) {
333
+ await this . commandService . executeCommand ( 'filesExplorer.paste' , event . clipboardData ?. files ) ;
334
+ }
334
335
} ) ) ;
335
336
}
336
337
You can’t perform that action at this time.
0 commit comments