Skip to content

Extension Configuration

dramforever edited this page Mar 21, 2021 · 2 revisions
  • ghcSimple.feature.*: Feature switches

    Some users might want only a subset of the features provided in vscode-ghc-simple. These options can be used to disabled unneeded features.

  • ghcSimple.filterInfo: Shorten :info output

    GHCi's :info writes instance information, which is usually excessively long and not useful for a quick look. With this option, these are filtered out. Enabled by default.

  • ghcSimple.replCommand: The command used to start GHCi.

    Configure this to change the command used to start GHCi. $stack_ide_targets will be replaced by the output of stack ide targets. Leave blank for auto detection. When set, overrides the deprecated ghcSimple.workspaceType. If you set this, please also set ghcSimple.replScope to an appropriate value.

  • ghcSimple.replScope: The scope of each GHCi session

    Whether GHCi should be started for a project or individual files. Note: This option has no effect when ghcSimple.replCommand is set to empty string for auto detection.

  • ghcSimple.startupCommands.*: GHCi Startup commands

    Commands to run at GHCi startup. Configures some common options.

    Two of the command lists are semantically meant to configure GHCi for use by vscode-ghc-simple:

    • all: Commands for all workspaces
    • bare: Commands for standalone files (bare workspaces)

    If you need to add more commands, it's suggested that you do so using the following command list, so that the previous to can be updated as needed in newer versions of vscode-ghc-simple:

    • custom: Custom commands for all workspaces

    Change the options in workspace settings instead of user settings if you want to apply the settings to a workspace locally.

  • ghcSimple.maxCompletions: Maximum number of completion items to show.

  • ghcSimple.inlineRepl.codeLens: Show code lens for GHCi REPL blocks

    Disable this if you don't like 'Run in GHCi' code lens littered around your files. If you disable the inline repl feature using ghcSimple.feature.inlineRepl you will also not see code lens.

  • ghcSimple.inlineRepl.loadType: -fbyte-code or -fobject-code for REPL

    Whether to load modules with -fbyte-code or -fobject-code when using the REPL. The former is the default as it loads faster. The latter runs faster and can use FFI. Write :set -fbyte-code or :set -fobject-code as first line of GHCi REPL block to override. Note that code in GHCi is always interpreted bytecode.

Removed configurations

Clone this wiki locally