Don't show Run/Debug button for files that don't have a main function #4563
Labels
in debugger
Relates to the debug adapter or process of launching a debug session
in editor
Relates to code editing or language features
is enhancement
Milestone
Type: Bug
The Run button used be active only on main.dart. After an update (note sure which on), the Run button is now active on all .dart extension file, which gives error main entry not found. Either the Run button should be active only on main.dart or the extension should locate and run main.dart automatically.
Extension version: 3.64.0
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:47:05.613Z)
OS version: Linux x64 5.15.0-72-generic
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
The text was updated successfully, but these errors were encountered: