Tags: dart-lang/webdev
Tags
Support running DWDS without a Chrome Debug Port (web-socket-based) (#… …2639) * implemented socket-based dwds * fix issue with run main at start * updated changelog * simulate debugExtension in websocket-based execution flow * added multiwindow support * refactoring and removing unused method * support page refresh from vsCode * refactor createisolate and resume method * implemented pause/resume logic * improve canReuseConnection logic * comments cleanup * fixed canReuseConnection logic * implemented _handleConnectionClosed and fix issue with getVM * fix issue with handling isolate cleanup * addressed comments regarding closing remoteDebugger * code cleanup * created common interface for debugService and webSocketDebugService * remove use of _acceptNewConnections in WebSocketDebugService * created proxy_service.dart and consolidated all duplicated code * consolidate webSocketAppDebugService and AppDebugServices * consolidate dwdsVmClient and WebSocketDwdsVmClient * refactored can remove duplicate methods * remove use of dynamic * fix dev_handler error * consolidate handleChromeMessages and handleWebSocketMessages created default createIsolate and destroyIsolate in ProxyService * updated logg message in _sendRequestToClients * updated dev_handler to throw error if proxy_service is not the right type * addressing analyzer issues * removed unused variable * updated port to 44456 * refactored classes to and interface names to be more clear * fix variable name error * updated variable to be type * prepare version 24.4.1 for release
Invalidate caches after a hot reload (#2641) Many of the caches we computed on the original load need to be invalidated. Previously, we pessimistically tore down the caches and reinitialized them. With this PR, a ModifiedModuleReport is computed that allows us to only invalidate and recompute information for modules/libraries that were either deleted or reloaded. Specifically, the caches in MetadataProvider, Modules, Locations, SkipLists, AppInspector, and LibraryHelper are now specially invalidated and recomputed. Removes an existing option to use the module URI instead of the module name in the MetadataProvider. This option is not relevant until we can unify this change across the ecosystem. Fixes #2628.
Fix duplicate connection/logs in Webdev (#2635) * bump dwds version to 24.3.9 * updated dwds constraints to 24.3.11 * fix duplicate logs * fix duplicate logs * Revert "fix duplicate logs" This reverts commit 2ccd2d9. * updated changelog * check and resuse active app state for each appId * addressed comments
modifying DWDS Injector to always inject client and introduce useDwds… …WebSocketConnection flag (#2629) * modifying injector to always inject client and introduce runMainAtStart flag * mark fields as deprecated * added method to mark application as completed to avoid calling main() twice * added a flag to determine the communication protocol; temporirily use it to trigger main * addressed comment in client.dart
[dwds] Split hot reload callback into 2, disable breakpoints in chang… …ed files, and publish 24.3.10 (#2606) dart-lang/sdk#60186 Breakpoints are currently broken when doing a hot reload when files change. They either are not re-mapped or point to the wrong location. For now, we should disable them in the changed libraries. In order to do this, we split the hot reload implementation into 2 in order to get the list of changed libraries. The call to hot reload will later use the cached list to call out to the embedder. Note that this likely won't change any behavior. New JS files already don't have breakpoints, so this PR should be mostly about cleaning up bookkeeping.
Updated DWDS to include a boolean flag that enables debugging support… … when set to true (#2601) * updated Dwds with bool that only enableDebuggingSupport when set to true * updated Changelog * formatted file * updated dwds version in pubspec to 24.3.8 * updated version.dart to 24.3.8 * updated docstring for DWDSInjector class * updated docstring for DWDSInjector class * modified docstring
PreviousNext