azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

Cancelling Save As Results in Failed Error

Open TonyLugg opened this issue 1 year ago • 4 comments

Type: Bug

When in a Query tab, choosing File->Save As from the menu, then hitting Cancel, causes an error "Failed to save .sql: Cannot read properties of undefined (reading 'resource').

Azure Data Studio version: azuredatastudio 1.49.1 (2f696aa95a13ccabd7e0a4431d1d759e3a7b8cfd, 2024-08-13T18:12:38.831Z) OS version: Windows_NT x64 10.0.22631 Restricted Mode: No Preview Features: Enabled Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-14700 (28 x 2112)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.69GB (10.19GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (5)
Extension Author (truncated) Version
admin-pack Mic 0.0.2
agent Mic 0.49.0
dacpac Mic 1.14.0
import Mic 1.6.1
profiler Mic 0.14.0

TonyLugg avatar Nov 25 '24 14:11 TonyLugg

I'm also seeing this annoyance.

sharpjs avatar Dec 20 '24 18:12 sharpjs

Thanks for reporting this issue. I wasn't able to repro this doing a "New Query->Type some content->File Save As->Cancel" steps. Is there any other context that could help narrow down what's going on here?

kburtram avatar Jan 22 '25 01:01 kburtram

@kburtram: Steps to reproduce for me:

  • Launch app.
  • File -> New Query
  • File -> Save
  • Click Save
  • File -> Save As...
  • Click Cancel

sharpjs avatar Jan 22 '25 20:01 sharpjs

Just experienced the same issue with the same steps to reproduce.

joseba890 avatar Mar 20 '25 16:03 joseba890