config

package
v1.1.439 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDebuggingEnabled added in v1.1.363

func GetDebuggingEnabled() bool

GetDebuggingEnabled gets whether debugging is enabled

func SetDebuggingEnabled added in v1.1.363

func SetDebuggingEnabled(value bool)

SetDebuggingEnabled sets whether debugging is enabled

Types

type CommandConfig added in v1.1.212

type CommandConfig struct {
	Executable string   `json:"executable,omitempty"` // The program to run
	Arguments  []string `json:"args,omitempty"`       // The arguments to pass to the executable (filename will automatically be appended)
}

CommandConfig respresents the options for launching a command

type Config

type Config struct {
	KeyBindings map[string]interface{} `json:"keyBindings,omitempty"`
	Editor      EditorConfig           `json:"editor,omitempty"`
}

Config represents the user configuration options

func Load

func Load() (Config, error)

Load the user configuration settings

type EditorConfig added in v1.1.212

type EditorConfig struct {
	Command                 CommandConfig `json:"command,omitempty"`                 // The command to execute to launch the editor
	TranslateFilePathForWSL bool          `json:"translateFilePathForWSL,omitEmpty"` //nolint:golint,staticcheck // WSL use only. True to translate the path to a Windows path (e.g. when running under WSL but using a Windows editor)
	TempDir                 string        `json:"tempDir,omitempty"`                 // Specify the directory to use for temporary files for editing (defaults to OS temp dir)
	RevertToStandardBuffer  bool          `json:"revertToStandardBuffer,omitempty"`  // Set to true to revert to standard buffer while editing (e.g. for terminal-based editors)
}

EditorConfig represents the user options for external editor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL