|
19 | 19 | "vscode": "^1.44.0" |
20 | 20 | }, |
21 | 21 | "activationEvents": [ |
22 | | - "onCommand:snippet-copy.copyWithoutLeadingIndentation" |
| 22 | + "onCommand:snippet-copy.copySnippet", |
| 23 | + "onCommand:snippet-copy.copySnippetAsMarkdownCodeBlock" |
23 | 24 | ], |
24 | 25 | "main": "./out/extension.js", |
25 | 26 | "contributes": { |
26 | 27 | "commands": [ |
27 | 28 | { |
28 | | - "command": "snippet-copy.copyWithoutLeadingIndentation", |
29 | | - "title": "Copy Without Leading Indentation" |
| 29 | + "command": "snippet-copy.copySnippet", |
| 30 | + "title": "Copy Snippet Without Leading Indentation" |
| 31 | + }, |
| 32 | + { |
| 33 | + "command": "snippet-copy.copySnippetAsMarkdownCodeBlock", |
| 34 | + "title": "Copy Snippet Without Leading Indentation as Markdown Code Block" |
30 | 35 | } |
31 | 36 | ], |
| 37 | + "configuration": { |
| 38 | + "title": "Snippet Copy", |
| 39 | + "properties": { |
| 40 | + "snippet-copy.addLanguageIdentifierToMarkdownBlock": { |
| 41 | + "type": "boolean", |
| 42 | + "default": false, |
| 43 | + "description": "Add a programming language identifier to the beginning of the Markdown code block. This is incompatible with some apps, for example Slack." |
| 44 | + } |
| 45 | + } |
| 46 | + }, |
32 | 47 | "keybindings": [ |
33 | 48 | { |
34 | | - "command": "snippet-copy.copyWithoutLeadingIndentation", |
| 49 | + "command": "snippet-copy.copySnippet", |
35 | 50 | "mac": "Cmd+Ctrl+c", |
36 | 51 | "linux": "Meta+Ctrl+c", |
37 | 52 | "win": "Win+Ctrl+c", |
38 | 53 | "when": "editorHasSelection" |
| 54 | + }, |
| 55 | + { |
| 56 | + "command": "snippet-copy.copySnippetAsMarkdownCodeBlock", |
| 57 | + "mac": "Cmd+Ctrl+Shift+c", |
| 58 | + "linux": "Meta+Ctrl+Shift+c", |
| 59 | + "win": "Win+Ctrl+Shift+c", |
| 60 | + "when": "editorHasSelection" |
39 | 61 | } |
40 | 62 | ], |
41 | 63 | "menus": { |
42 | 64 | "editor/context": [ |
43 | 65 | { |
44 | | - "command": "snippet-copy.copyWithoutLeadingIndentation", |
| 66 | + "command": "snippet-copy.copySnippet", |
45 | 67 | "when": "editorHasSelection", |
46 | 68 | "group": "9_cutcopypaste@2" |
| 69 | + }, |
| 70 | + { |
| 71 | + "command": "snippet-copy.copySnippetAsMarkdownCodeBlock", |
| 72 | + "when": "editorHasSelection", |
| 73 | + "group": "9_cutcopypaste@3" |
47 | 74 | } |
48 | 75 | ] |
49 | 76 | } |
|
0 commit comments