提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
593 B

  1. /**
  2. * Launch an editor to open a file at a specific line and column.
  3. *
  4. * @param file File path with optional line and column numbers (e.g.
  5. * "/path/to/file.js:10:2").
  6. * @param specifiedEditor Optional editor command or path to use. Will be
  7. * parsed using `shell-quote`.
  8. * @param onErrorCallback Optional callback for handling errors.
  9. */
  10. declare function launchEditor(
  11. file: string,
  12. specifiedEditor?: string | ((fileName: string, errorMessage: string | null) => void),
  13. onErrorCallback?: (fileName: string, errorMessage: string | null) => void
  14. ): void;
  15. export = launchEditor;