Pike LSP TypeScript API - v0.1.0-alpha.20
    Preparing search index...

    Bridge manager wraps PikeBridge with health monitoring.

    Tracks server uptime, recent errors, Pike version info, and provides pass-through methods for all PikeBridge functionality.

    Index

    Constructors

    Properties

    bridge: PikeBridge | null

    Methods

    • Unified analyze - consolidate multiple Pike operations in one request.

      Delegates to PikeBridge.analyze() which performs compilation and tokenization once, then distributes results to all requested operations. More efficient than calling parse(), introspect(), and analyzeUninitialized() separately.

      LOG-14-01: Logs all analyze() calls with timing and cache hit information to verify whether duplicate analyze calls occur during document changes.

      Parameters

      • code: string

        Pike source code to analyze.

      • include: AnalysisOperation[]

        Which operations to perform (at least one required).

      • Optionalfilename: string

        Optional filename for error messages.

      • OptionaldocumentVersion: number

        Optional LSP document version for cache key.

      Returns Promise<AnalyzeResponse>

      Analyze response with result/failures structure and performance timing.

    • Analyze uninitialized variable usage.

      Parameters

      • text: string
      • filename: string

      Returns Promise<AnalyzeUninitializedResult>

    • Evaluate a constant Pike expression.

      Parameters

      • expression: string
      • Optionalfilename: string

      Returns Promise<{ error?: string; success: number; type?: string; value?: unknown }>

    • Find all rename positions for a symbol using Pike's Rename module.

      Parameters

      • code: string
      • symbolName: string
      • line: number
      • Optionalcharacter: number
      • Optionalfilename: string

      Returns Promise<FindRenamePositionsResult>

    • PERF-003: Get completion context at a specific position.

      Parameters

      • code: string

        Source code to analyze

      • line: number

        Line number (1-based)

      • character: number

        Character position (0-based)

      • OptionaldocumentUri: string

        Optional document URI for tokenization caching

      • OptionaldocumentVersion: number

        Optional LSP document version for cache invalidation

      Returns Promise<CompletionContext>

    • Prepare rename - get symbol range at position.

      Parameters

      • code: string
      • line: number
      • character: number
      • Optionalfilename: string

      Returns Promise<PrepareRenameResult | null>

    • Validate Roxen module API compliance.

      Phase 5: Roxen-specific diagnostics. Checks required callbacks, defvar usage, and tag signatures.

      Delegates to the bridge's roxenValidate method which calls the roxen_validate RPC handler in Pike.

      Parameters

      • code: string

        Source code to validate

      • filename: string

        Filename for error messages

      • OptionalmoduleInfo: Record<string, unknown>

        Optional Roxen module information from detection

      Returns Promise<RoxenValidationResult>

      Validation diagnostics

    • Start the bridge subprocess and cache version information. PERF-011: Tracks startup timing for performance monitoring. PERF-013: Fetches version info asynchronously to reduce perceived startup time.

      Returns Promise<void>