forked from kevb34ns/auto-comment-blocks
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
128 lines (128 loc) · 4.59 KB
/
package.json
File metadata and controls
128 lines (128 loc) · 4.59 KB
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
128
{
"name": "automatic-comment-blocks",
"displayName": "Automatic Comment Blocks",
"description": "Provides block comment completion for Javadoc-style multi-line comments and single-line comment blocks for most officially supported languages.",
"version": "1.1.14",
"publisher": "ycodetech",
"homepage": "https://github.com/ycodetech/auto-comment-blocks",
"repository": {
"type": "git",
"url": "https://github.com/ycodetech/auto-comment-blocks.git"
},
"license": "SEE LICENSE IN LICENSE",
"icon": "img/icon.png",
"galleryBanner": {
"color": "#171A29",
"theme": "dark"
},
"engines": {
"vscode": "^1.96.0"
},
"keywords": [
"auto",
"comment",
"block",
"asterisk"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage"
],
"main": "./out/src/extension.js",
"contributes": {
"configuration": {
"title": "Auto Comment Blocks",
"properties": {
"auto-comment-blocks.singleLineBlockOnEnter": {
"type": "boolean",
"default": false,
"markdownDescription": "If enabled, a new commented line is inserted when Enter is pressed, and single-line comments are broken by pressing `Shift + Enter`. If disabled (the default), a commented line is inserted when `Shift + Enter` is pressed, and single-line comments are broken by pressing `Enter`."
},
"auto-comment-blocks.disabledLanguages": {
"type": "array",
"default": [],
"markdownDescription": "Add language IDs here to disable any comment completion for that language."
},
"auto-comment-blocks.slashStyleBlocks": {
"type": "array",
"default": [],
"markdownDescription": "Add language IDs here to enable `//` and `///`-style single-line comment blocks for that language. This allows unsupported languages to have comment completion."
},
"auto-comment-blocks.hashStyleBlocks": {
"type": "array",
"default": [],
"markdownDescription": "Add language IDs here to enable `#`-style single-line comment blocks for that language. This allows unsupported languages to have comment completion."
},
"auto-comment-blocks.semicolonStyleBlocks": {
"type": "array",
"default": [],
"markdownDescription": "Add language IDs here to enable `;`-style single-line comment blocks for that language. This allows unsupported languages to have comment completion."
},
"auto-comment-blocks.multiLineStyleBlocks": {
"type": "array",
"default": [
"blade",
"html"
],
"markdownDescription": "Add language IDs here to enable multi-line comment blocks support for that language. This allows unsupported languages to have comment completion. The default is `['blade', 'html']`"
},
"auto-comment-blocks.overrideDefaultLanguageMultiLineComments": {
"type": "object",
"default": {},
"markdownDescription": "A key : value pairing of language IDs and the beginning portion of a multi-line comment style, to override the default comment style for the vscode `command editor.action.blockComment` (native Keybinding `shift + alt + a` (macOS: `shift + option + a`)). eg. `{'php': '/*!'}`"
},
"auto-comment-blocks.bladeOverrideComments": {
"scope": "resource",
"type": "boolean",
"default": false,
"markdownDescription": "When enabled, Blade style block comments will be used in Blade contexts. Ie. `{{-- --}}` comments will be used instead of the HTML `<!-- -->` comments. Keybinding to enable/disable, default `ctrl + shift + m` (macOS: `cmd + shift + m`). If `blade` language ID is set in the disabledLanguages, then the HTML `<!-- -->` comments will be used."
}
}
},
"commands": [
{
"command": "auto-comment-blocks.singleLineBlock",
"title": "Continue Single-Line Comment Block",
"category": "Auto Comment Blocks"
},
{
"command": "auto-comment-blocks.changeBladeMultiLineBlock",
"title": "Toggle Blade Multi-Line Comment Style",
"category": "Auto Comment Blocks"
}
],
"keybindings": [
{
"command": "auto-comment-blocks.singleLineBlock",
"key": "shift+enter",
"when": "editorTextFocus"
},
{
"command": "auto-comment-blocks.changeBladeMultiLineBlock",
"key": "ctrl+shift+m",
"mac": "cmd+shift+m",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"test": "node ./out/test/extension.test.js"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "^22.9.0",
"@types/vscode": "^1.96",
"mocha": "^10.8.2",
"typescript": "^5.7"
},
"dependencies": {
"is-wsl": "^3.1.0",
"jsonc-parser": "^3.3.1",
"package-json-type": "^1.0.3"
}
}