yahu1031 ยท GitHub

Describe the bug

When I debug the code and restart the program, Terminating debug session is not going off from bottom right corner.

To Reproduce
Steps to reproduce the behavior:

  1. Use any sample code in dart and run once and restart again
    Eg:
import 'dart:developer' as console;
import 'package:shelf/shelf.dart' show Request, Response;
import 'package:shelf/shelf_io.dart' as shelf_io;
import 'package:shelf_router/shelf_router.dart' show Router;
Future<void> main() async {
  /// Router object
  Router app = Router();
  app.get('/', (Request request) {
    return Response.ok(
      'Hey there ๐Ÿ‘‹๐Ÿป',
      headers: {'Content-Type': 'text/plain'},
    );
  });
  /// Serving
  await shelf_io.serve(app, 'localhost', 1031).then((value) => console
      .log('API running at http://${value.address}:${value.port} ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ'));
}

Expected behavior
It must not show that Terminating debug session.... notification

Screenshots
image

Versions (please complete the following information):

  • VS Code version: 1.56.2
  • Gitpod code version: 1.55.1
  • Dart extension version: v3.22.0
  • Dart SDK version: 2.13.0 (stable)
  • Flutter SDK version: 2.2.0 (stable)

Read the original on github.com โ†—