Sha256: dd13371b447a395aa5dda82f99581f5be95921838fc568302cf94b07629c7d68

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

import { workspace } from 'vscode'

export function calcExecutionConfiguration() {
    const yodaPathEnv = process.env.YODA_EXECUTABLE_PATH
    const yodaPathConfiguration = workspace.getConfiguration("yoda").get("path") as (string | null);
    const command = yodaPathEnv || yodaPathConfiguration || 'yoda'

    return { command }
}

export function getTraceConfiguration (): string | null {
  return workspace.getConfiguration("yoda").get("trace.server") as (string | null);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yoda-language-server-0.8.0 client/vscode/src/config.ts