Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder tree can't display folder's name with \n correctly #125906

Closed
MondoGao opened this issue Jun 10, 2021 · 2 comments
Closed

Folder tree can't display folder's name with \n correctly #125906

MondoGao opened this issue Jun 10, 2021 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues *out-of-scope Posted issue is not in scope of VS Code
Milestone

Comments

@MondoGao
Copy link

MondoGao commented Jun 10, 2021

Does this issue occur when all extensions are disabled?: ✅Yes

  • Version: 1.56.2
  • Commit: 054a929
  • Date: 2021-05-12T17:44:30.902Z
  • Electron: 12.0.4
  • Chrome: 89.0.4389.114
  • Node.js: 14.16.0
  • V8: 8.9.255.24-electron.0
  • OS: Darwin x64 20.3.0

Steps to Reproduce:

  1. node -e "fs.mkdir('{\n folder', console.log)"
  2. Folder name will be truncated to only "{" in vscode folder tree:
    image
    rather than in ls
    image

mkdir '{\n' or mkdir {\<new-line> won't produce the same result as node!

@isidorn
Copy link
Contributor

isidorn commented Jun 10, 2021

This is a fair bug in the explorer. When displaying file names we should escape newlines.
For now assigning to backlog and we might tackle in the future

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues labels Jun 10, 2021
@isidorn isidorn added this to the Backlog milestone Jun 10, 2021
@isidorn isidorn added the *out-of-scope Posted issue is not in scope of VS Code label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug file-explorer Explorer widget issues *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

3 participants
@isidorn @MondoGao and others