Skip to content

Detect if setting is default or user-defined #183

Discussion options

You must be logged in to vote

The inspect method on WorkspaceConfiguration can do what you want. It lets you see the values at each layer of configuration. For example, if there is a defaultValue but no globalValue, workspaceValue, workspaceFolderValue, etc., then the user has not explicitly set that setting.

EDIT: to correct a mistake that @eamodio pointed out

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eamodio
Comment options

@TwitchBronBron
Comment options

Answer selected by TwitchBronBron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants