Skip to content

Commit 6a37806

Browse files
authored
fix: better context key expressions (#152)
1 parent 523a9c9 commit 6a37806

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
[
2828
"git.blame.decorations"
2929
],
30-
"${((!config.git.blame.decorations || config.git.blame.decorations === 'none') && 'line') || (config.git.blame.decorations === 'line' && 'file') || 'none'}",
30+
"${(config.git.blame.decorations === 'line' && 'file') || (config.git.blame.decorations === 'file' && 'none') || 'line'}",
3131
null
3232
],
3333
"category": "Git",
34-
"title": "${((!config.git.blame.decorations || config.git.blame.decorations === 'none') && 'Show blame for selected lines') || (config.git.blame.decorations === 'line' && 'Show blame for the whole file') || 'Hide blame'}",
34+
"title": "${(config.git.blame.decorations === 'line' && 'Show blame for the whole file') || (config.git.blame.decorations === 'file' && 'Hide blame') || 'Show blame for selected lines'}",
3535
"actionItem": {
3636
"label": "Blame",
37-
"description": "${((!config.git.blame.decorations || config.git.blame.decorations === 'none') && 'Show Git blame line annotations on selected lines') || (config.git.blame.decorations === 'line' && 'Show Git blame line annotations for the whole file') || 'Hide Git blame line annotations'}",
37+
"description": "${(config.git.blame.decorations === 'line' && 'Show Git blame line annotations for the whole file') || (config.git.blame.decorations === 'file' && 'Hide Git blame line annotations') || 'Show Git blame line annotations on selected lines'}",
3838
"pressed": "(config.git.blame.decorations === 'line') || (config.git.blame.decorations === 'file')",
3939
"iconURL": "https://raw.githubusercontent.com/sourcegraph/sourcegraph-git-extras/63dd95962c43b95b3f3a9ea2aa0165d6b38a958c/icon/git_logo.svg?sanitize=true"
4040
}

0 commit comments

Comments
 (0)