anchor.diff:              isolateRefs.id,
             );
             final LibraryRef library = isolateResponse.rootLib;
  -          if (library != null && library.uri.startsWith('package:$packageName')) {
  +          if (library != null &&
  +             (library.uri.startsWith('package:$packageName') ||
  +              library.uri.startsWith(RegExp(r'file:\/\/\/.*\/' + packageName)))) {
               UsageEvent(
                 _kEventName,
                 'success',
                 flutterUsage: _flutterUsage,
               ).send();
   
  -            // We absolutely must dispose this vmService instance, otherwise
  -            // DDS will fail to start.
  +            // This vmService instance must be disposed of, otherwise DDS will
  +            // fail to start.
               vmService.dispose();
               return Uri.parse('http://localhost:$hostPort');
             }
  
positive.code:     // Attempt to connect to the VM service 5 times.
      int attempts = 0;
      Exception firstException;
      while (attempts < 5) {
        try {
          final VmService vmService = await _vmServiceConnectUri(
            assumedWsUri.toString(),
          );
          final VM vm = await vmService.getVM();
  
negative.code:         // No action, we might have failed to connect.
          firstException ??= err;
          _logger.printTrace(err.toString());
        } finally {
          // This vmService instance must be disposed of, otherwise DDS will
          // fail to start.
          vmService?.dispose();
        }
  
        // No exponential backoff is used here to keep the amount of time the
  