Skip to content

Conversation

@jeanp413
Copy link
Contributor

Chose to ignore filenames whose length > 255 to avoid an explosive combination of extensions
Another option would be to just use the last n extensions
cc @bpasero let me know what you think

This PR fixes #116199

@bpasero bpasero self-assigned this Feb 10, 2021
@bpasero bpasero added this to the February 2021 milestone Feb 10, 2021
// (most file systems do not allow files > 255 length) with lots of `.` characters
// https://github.com/microsoft/vscode/issues/116199
if (name.length <= 255) {
const dotSegments = name.split('.');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Instead of the name length check, could we simply limit the number of items in dotSegment? e.g.

name.split('.').slice(-5));

That would at least show some of the class extensions?

@joaomoreno joaomoreno changed the base branch from master to main February 15, 2021 08:51
@bpasero
Copy link
Member

bpasero commented Feb 19, 2021

Thanks, I think we can go with this suggested change 👍

@bpasero bpasero merged commit d151e0a into microsoft:main Feb 19, 2021
@jeanp413 jeanp413 deleted the fix-116199 branch February 19, 2021 08:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VSCode becomes unresponsive after pasting filename with many dots in file tree

3 participants