-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking: Replace launchEditor implementation (#2587)
- Loading branch information
Showing
4 changed files
with
40 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
declare module 'launch-editor' { | ||
/** | ||
* Launch an editor to open a file at a specific line and column. | ||
* | ||
* @param file File path with optional line and column numbers (e.g. | ||
* "/path/to/file.js:10:2"). | ||
* @param specifiedEditor Optional editor command or path to use. Will be | ||
* parsed using `shell-quote`. | ||
* @param onErrorCallback Optional callback for handling errors. | ||
*/ | ||
function launchEditor( | ||
file: string, | ||
specifiedEditor?: | ||
| string | ||
| ((fileName: string, errorMessage: string | null) => void), | ||
onErrorCallback?: (fileName: string, errorMessage: string | null) => void, | ||
): void; | ||
|
||
export = launchEditor; | ||
} |
Oops, something went wrong.