devtools
7d0a194c - New VSCode fallback behaviour for copyToClipboard (#6598)

Commit
1 year ago
New VSCode fallback behaviour for copyToClipboard (#6598) ![](https://media.giphy.com/media/4URfklUToxk6A/giphy.gif) Adds a fallback behaviour for copying which will allow copy buttons to actually work in VSCode. NOTE: success toasts will no longer show in VSCode though. I've also added some logging just in case a user is looking at their console when a copy fails. Hopefully this provides enough information that the unhide-able error doesn't look suspicious. ![Screenshot 2023-10-26 at 10 53 39 AM](https://github.com/flutter/devtools/assets/1386322/b4ebd139-f3f5-4dd6-8c62-794f7d6df80d) Related to https://github.com/Dart-Code/Dart-Code/pull/4814 Fixes https://github.com/flutter/devtools/issues/5775 Mirror package:web version from Flutter SDK
Author
Committer
Parents
  • packages/devtools_app
    • lib/src
      • framework
        • File
          settings_dialog.dart
      • screens/network
        • File
          network_screen.dart
      • shared
        • File
          common_widgets.dart
        • config_specific/copy_to_clipboard
          • File
            _copy_to_clipboard_desktop.dart
          • File
            _copy_to_clipboard_web.dart
          • File
            copy_to_clipboard.dart
        • File
          dialogs.dart
        • File
          editable_list.dart
        • File
          utils.dart
    • File
      pubspec.yaml