CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

🐞 Can't create a `New File`

Open avnerbarr opened this issue 1 year ago • 6 comments

Description

In an existing project, right click in the project explorer

image

click file.

Nothing appears

Go to directory on disk , do ls

you will see some blank files (untitled)

image

To Reproduce

create a new project in tmp

I did yarn init

open the project in codeedit

right click an existing file and click "new file"

Expected Behavior

should open a dialogue to create a file and the appropriate extension. the file should appear in the project explorer

Version Information

0.0.3 alpha (30)

ventura 13.2.1

Additional Context

No response

Screenshots

No response

avnerbarr avatar Mar 12 '23 08:03 avnerbarr

This is certainly a regression introduced recently and most likely also linked to the following issue since the files are actually created but the project navigator isn't updating:

  • #1188

@avnerbarr thank you for the detailed report.

lukepistrol avatar Mar 23 '23 16:03 lukepistrol

@lukepistrol are you looking into this ? I'm trying to work up a fix, I did get to the not updating part so this line is not working correctly on the OutlineMenu class : 200 outlineView.expandItem((item?.isFolder ?? true) ? item : item?.parent)

armartinez avatar Mar 23 '23 16:03 armartinez

@armartinez not really for now - just triaging some newer issues. If you want to take on this issue just let me know and I'll assign you 😊 (Also leave a comment on the other linked issue so I can assign you there too)

lukepistrol avatar Mar 23 '23 16:03 lukepistrol

@lukepistrol yes I'll take the issue, it seems like a nice one to start contributing to the project

armartinez avatar Mar 23 '23 16:03 armartinez

Perfect!

lukepistrol avatar Mar 23 '23 16:03 lukepistrol

@lukepistrol https://github.com/CodeEditApp/CodeEdit/pull/1236

armartinez avatar Apr 14 '23 10:04 armartinez