launch-ide
Version:
Automatically recognize the editor by running processes and open the specified file in it.
17 lines (16 loc) • 491 B
TypeScript
import { Editor, IDEOpenMethod } from './type';
interface LaunchIDEParams {
file: string;
line?: number;
column?: number;
editor?: Editor;
method?: IDEOpenMethod;
format?: string | string[];
onError?: (file: string, error: string) => void;
rootDir?: string;
usePid?: boolean;
}
export declare function launchIDE(params: LaunchIDEParams): void;
export * from './type';
export { formatOpenPath } from './get-args';
export { getEnvVariable } from './utils';