Skip to content

Commit

Permalink
0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JennieJi committed Nov 16, 2023
1 parent 74dcc81 commit 52d2ace
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 32 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "glab-snippets",
"displayName": "GLab Snippets",
"description": "Use snippets from GitLab easily",
"version": "0.5.1",
"version": "0.5.2",
"publisher": "jyee721",
"icon": "resources/icons/logo.png",
"author": {
Expand Down Expand Up @@ -82,20 +82,20 @@
"title": "Download",
"icon": "$(save)"
},
{
{
"command": "gitlabSnippets.copyToClipboard",
"title": "Copy to clipboard",
"icon": "$(copy)"
},
{
{
"command": "gitlabSnippets.copyToClipboardAndPaste",
"title": "Copy to clipboard and paste",
"icon": "$(clippy)"
},
{
"command": "gitlabSnippets.viewSnippet",
},
{
"command": "gitlabSnippets.viewSnippet",
"title": "View",
"icon": "$(open-preview)"
"icon": "$(open-preview)"
},
{
"command": "gitlabSnippets.viewSnippetInBrowser",
Expand Down Expand Up @@ -213,11 +213,11 @@
"when": "view =~ /gitlabSnippetsExplorer/ && viewItem =~ /^snippet(File)?$/ && config.glabSnippetsConfiguration.defaultAction != copyToClipboardAndPaste",
"group": "inline"
},
{
"command": "gitlabSnippets.viewSnippet",
"when": "view =~ /gitlabSnippetsExplorer/ && viewItem =~ /^snippet(File)?$/ && config.glabSnippetsConfiguration.defaultAction != viewSnippet",
"group": "inline"
},
{
"command": "gitlabSnippets.viewSnippet",
"when": "view =~ /gitlabSnippetsExplorer/ && viewItem =~ /^snippet(File)?$/ && config.glabSnippetsConfiguration.defaultAction != viewSnippet",
"group": "inline"
},
{
"command": "gitlabSnippets.star",
"when": "view =~ /gitlabSnippetsExplorer-(all|mine)/ && viewItem =~ /^snippet(Repo)?$/",
Expand Down Expand Up @@ -272,22 +272,26 @@
}
]
},
"configuration": {
"title": "GLab Snippets Configuration",
"properties": {
"glabSnippetsConfiguration.defaultAction": {
"type": "string",
"default": "copyToClipboard",
"description": "Set default action to perform on click of items (restart Visual Studio Code for changes to take effect)",
"enum": ["copyToClipboard", "copyToClipboardAndPaste", "viewSnippet"],
"enumDescriptions": [
"Copy snippet content to clipboard",
"Copy snippet content to clipboard and paste it",
"Open snippet file in a new tab"
]
}
}
}
"configuration": {
"title": "GLab Snippets Configuration",
"properties": {
"glabSnippetsConfiguration.defaultAction": {
"type": "string",
"default": "copyToClipboard",
"description": "Set default action to perform on click of items (restart Visual Studio Code for changes to take effect)",
"enum": [
"copyToClipboard",
"copyToClipboardAndPaste",
"viewSnippet"
],
"enumDescriptions": [
"Copy snippet content to clipboard",
"Copy snippet content to clipboard and paste it",
"Open snippet file in a new tab"
]
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
Expand Down

0 comments on commit 52d2ace

Please sign in to comment.