Skip to content

Commit

Permalink
Merge pull request #207 from gtbono/feat-add-tool-args
Browse files Browse the repository at this point in the history
feat: add tool args
  • Loading branch information
ericdallo authored Oct 28, 2023
2 parents e9a079d + cd21178 commit 78ab137
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
6 changes: 6 additions & 0 deletions lsp-dart-dap.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 78ab137

Please sign in to comment.