sca-tool
Version:
Universal static code analysis tool for calculating API operation costs across multiple frameworks (NestJS, Express, Fastify)
40 lines • 1.06 kB
TypeScript
import { EditorConfig } from './types';
/**
* Editor detection utility for SCA-Tool
*/
export declare class EditorDetector {
private static readonly EDITOR_COMMANDS;
/**
* Detect the available code editor
*/
static detectEditor(): EditorConfig;
/**
* Find the first available editor from the list
*/
private static findAvailableEditor;
/**
* Check if a command is available in PATH
*/
private static isCommandAvailable;
/**
* Detect editor on Windows
*/
private static detectWindowsEditor;
/**
* Detect editor on macOS
*/
private static detectMacEditor;
/**
* Detect editor on Linux
*/
private static detectLinuxEditor;
/**
* Generate VS Code tasks.json for SCA integration
*/
static generateVSCodeTasks(outputPath?: string): void;
/**
* Open file in detected editor
*/
static openInEditor(filePath: string, lineNumber?: number, editorConfig?: EditorConfig): void;
}
//# sourceMappingURL=editor-detector.d.ts.map