From df54ceb881a329cfb98438ecf8f846d2a30589fa Mon Sep 17 00:00:00 2001 From: Giovanni Tempobono Date: Fri, 27 Oct 2023 18:40:45 -0300 Subject: [PATCH 1/2] feat: add tool args --- lsp-dart-dap.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lsp-dart-dap.el b/lsp-dart-dap.el index 1b0be4b..fbad9a6 100644 --- a/lsp-dart-dap.el +++ b/lsp-dart-dap.el @@ -101,6 +101,11 @@ :group 'lsp-dart :type '(repeat string)) +(defcustom lsp-dart-dap-tool-args [] + "Additional args for the dart or flutter tool" + :group 'lsp-dart + :type '(repeat string)) + (defcustom lsp-dart-dap-vm-service-port 0 "Service port for dart debugging VM." :group 'lsp-dart @@ -164,6 +169,7 @@ Required to support 'Inspect Widget'." (dap--put-if-absent conf :maxLogLineLength lsp-dart-dap-max-log-line-length) (dap--put-if-absent conf :cwd (lsp-dart-get-project-root)) (dap--put-if-absent conf :vmAdditionalArgs lsp-dart-dap-vm-additional-args) + (dap--put-if-absent conf :toolArgs lsp-dart-dap-tool-args) (dap--put-if-absent conf :vmServicePort lsp-dart-dap-vm-service-port) (dap--put-if-absent conf :debugExternalLibraries lsp-dart-dap-debug-external-libraries) (dap--put-if-absent conf :debugSdkLibraries lsp-dart-dap-debug-sdk-libraries) From cd21178738537dae181d38e16182b16dab65e1f1 Mon Sep 17 00:00:00 2001 From: Giovanni Tempobono Date: Fri, 27 Oct 2023 18:54:58 -0300 Subject: [PATCH 2/2] docs: add lsp-dart-dap-tool-args to the README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf5cd09..9ee2868 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,8 @@ lsp-dart supports running Flutter and Dart commands as following: | `lsp-dart-dap-flutter-test-debugger-program` | The command to execute the test debugger extension on flutter projects. | Check source file | | `lsp-dart-dap-debug-external-libraries` | Whether to enable the debug on external libraries | `nil` | | `lsp-dart-dap-debug-sdk-libraries` | Whether to enable the debug on Dart SDK libraries | `nil` | -| `lsp-dart-dap-vm-additional-args` | Additional args for dart debugging VM when the debugging. | `""` | +| `lsp-dart-dap-vm-additional-args` | Additional args for dart debugging VM when the debugging. +| `lsp-dart-dap-tool-args` | Arguments to be passed to the Dart or Flutter tool. | `""` | | `lsp-dart-dap-flutter-track-widget-creation` | Whether to pass –track-widget-creation to Flutter apps. Required to support 'Inspect Widget'. | `t` | | `lsp-dart-dap-flutter-structured-errors` | Whether to use Flutter’s structured error support for improve error display. | `t` | | `lsp-dart-dap-flutter-hot-reload-on-save` | When enabled, every buffer save triggers a `lsp-dart-dap-flutter-hot-reload` | `nil` |