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` | 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)