-
Notifications
You must be signed in to change notification settings - Fork 15
Extension Configuration
-
ghcSimple.feature.*
: Feature switchesSome 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
outputGHCi'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 ofstack ide targets
. Leave blank for auto detection. When set, overrides the deprecatedghcSimple.workspaceType
. If you set this, please also setghcSimple.replScope
to an appropriate value. -
ghcSimple.replScope
: The scope of each GHCi sessionWhether 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 commandsCommands 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 blocksDisable 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 REPLWhether 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.
-
ghcSimple.workspaceType
: Removed and has no effect. Please see the wiki pages FAQ (section Migrating fromworkspaceType
) and Project Configuration for how you can configure your project for vscode-ghc-simple v0.2.x.