-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
127 lines (127 loc) · 3.85 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "snippet-copy",
"displayName": "Snippet Copy",
"description": "Copy snippets of code without leading indentation for easier sharing",
"version": "2.0.0",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#1C252C",
"theme": "dark"
},
"publisher": "lumaxis",
"author": {
"name": "Lukas Spieß"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/lumaxis/snippet-copy"
},
"categories": [
"Other"
],
"engines": {
"vscode": "^1.81.1"
},
"browser": "./dist/web/extension.js",
"contributes": {
"commands": [
{
"command": "snippet-copy.copySnippet",
"title": "Copy Snippet"
},
{
"command": "snippet-copy.copySnippetAsMarkdownCodeBlock",
"title": "Copy Snippet as Markdown Code Block"
}
],
"configuration": {
"title": "Snippet Copy",
"properties": {
"snippet-copy.markdownCodeBlock.includeLanguageIdentifier": {
"type": "string",
"default": "prompt",
"markdownDescription": "Style of the generated [fenced Markdown code block](https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks). By default, prompts every time a snippet is copied as a Markdown code block.",
"enum": [
"never",
"always",
"prompt"
],
"markdownEnumDescriptions": [
"Copy a regular fenced Markdown code block without language identifier.",
"Copy a fenced Markdown code block that includes the language identifier of the current document. \nThis enables [automatic syntax highlighting](https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting) on e.g. GitHub or StackOverflow but isn't compatible with some apps, for example Slack.",
"Always prompt when copying a snippet as a Markdown code block whether to include the language identifier or not."
]
},
"snippet-copy.convertTabsToSpaces.enabled": {
"type": "boolean",
"default": "true",
"description": "Convert tabs in a snippet to spaces"
},
"snippet-copy.convertTabsToSpaces.tabSize": {
"type": "integer",
"default": 2,
"description": "How many spaces to replace a tab with"
}
}
},
"keybindings": [
{
"command": "snippet-copy.copySnippet",
"mac": "Cmd+Ctrl+c",
"linux": "Meta+Ctrl+c",
"win": "Win+Ctrl+c",
"when": "editorHasSelection"
},
{
"command": "snippet-copy.copySnippetAsMarkdownCodeBlock",
"mac": "Cmd+Ctrl+Shift+c",
"linux": "Meta+Ctrl+Shift+c",
"win": "Win+Ctrl+Shift+c",
"when": "editorHasSelection"
}
],
"menus": {
"editor/context": [
{
"command": "snippet-copy.copySnippet",
"when": "editorHasSelection",
"group": "9_cutcopypaste@2"
},
{
"command": "snippet-copy.copySnippetAsMarkdownCodeBlock",
"when": "editorHasSelection",
"group": "9_cutcopypaste@3"
}
]
}
},
"scripts": {
"test": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --extensionTestsPath=dist/web/test/suite/index.js ./src/web/test/fixtures",
"pretest": "npm run compile-web",
"vscode:prepublish": "npm run package-web",
"compile-web": "webpack",
"watch-web": "webpack --watch",
"package-web": "webpack --mode production --devtool hidden-source-map",
"lint": "eslint src --ext ts",
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/vscode": "^1.64.0",
"@types/webpack-env": "^1.18.4",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vscode/test-web": "^0.0.53",
"@vscode/vsce": "^2.24.0",
"assert": "^2.1.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"process": "^0.11.10",
"testdouble": "^3.20.0",
"ts-loader": "^9.5.1",
"typescript": "^5.4.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
}
}