lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
282 stars 27 forks source link

Weird behavior when creating a new image #34

Closed JacksonKearl closed 3 years ago

JacksonKearl commented 3 years ago
  1. New file, named whatever.png
  2. Luna opens up, but there's no image.
  3. Click the 0x0 in the in-editor status bar, prompts for height and width
  4. Get this prompt, which doesn't really make sense in this context image
  5. Upon clicking either of the options, nothing seems to happen. Image is still 0x0.

I'd expect the case of creating a brand new file in explorer to open up luna and immediately prompt me for height/width, then not prompt for rescaling mode.

Tyriar commented 3 years ago

I was thinking about implementing this but thought it was just error out and that's the expected behavior. Maybe I can special case an empty file like this to act similar to New Image.

Tyriar commented 3 years ago

Did one better I think and pulled the dimensions from luna.defaultImageSize