dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
213 stars 71 forks source link

Add a reload handler along with a restart handler #2439

Closed elliette closed 1 month ago

elliette commented 1 month ago

Follow up to https://github.com/dart-lang/webdev/pull/2437

Ideally web developers should be able to choose whether the "restart" button from Cider triggers a hot restart or a page reload (this is because hot-restart is not supported for all internal web apps).

This changes the ext.dwds.restart service extension to trigger a hot-restart, and adds ext.dwds.reload which will trigger a page reload.