Function
hasCommandWithArguments
(isAtEndWithWhitespace: boolean, value: string)
Source from the content-addressed store, hash-verified
| 341 | return null; |
| 342 | } |
| 343 | function hasCommandWithArguments(isAtEndWithWhitespace: boolean, value: string) { |
| 344 | // If value.endsWith(' ') but the user is not at the end, then the user has |
| 345 | // potentially gone back to the command in an effort to edit the command name |
| 346 | // (but preserve the arguments). |
| 347 | return !isAtEndWithWhitespace && value.includes(' ') && !value.endsWith(' '); |
| 348 | } |
| 349 | |
| 350 | /** |
| 351 | * Hook for handling typeahead functionality for both commands and file paths |
Tested by
no test coverage detected