forked from shardulm94/vscode-trailingspaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
158 lines (158 loc) · 5.79 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "trailing-spaces",
"displayName": "Trailing Spaces",
"description": "Highlight trailing spaces and delete them in a flash!",
"version": "0.3.1",
"publisher": "shardulm94",
"icon": "icon.png",
"engines": {
"vscode": "^1.6.0"
},
"categories": [
"Other"
],
"main": "./out/src/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Trailing Spaces Configuration",
"properties": {
"trailing-spaces.logLevel": {
"type": "string",
"enum": [
"none",
"log",
"info",
"warn",
"error"
],
"default": "warn",
"description": "Controls the verbosity of logging. Logs can be seen in the console by opening the dev tools. `log` is the most verbose and `error` will only show critical errors."
},
"trailing-spaces.includeEmptyLines": {
"type": "boolean",
"default": true,
"description": "By default, empty lines are cleared as well when calling the deletion command. Set to false to ignore empty lines upon deletion."
},
"trailing-spaces.highlightCurrentLine": {
"type": "boolean",
"default": true,
"description": "By default, the line being currently edited will have its trailing spaces highlighted. Set to false to ignore trailing spaces on the edited line."
},
"trailing-spaces.regexp": {
"type": "string",
"default": "[ \t]+",
"description": "By default, only simple spaces and tabs are matched as \"trailing spaces\"."
},
"trailing-spaces.liveMatching": {
"type": "boolean",
"default": true,
"description": "By default, Trailing Spaces is \"live\". It means the trailing spaces regions will be matched in the background, and highlighted if a color scope is defined, when the document is opened and edited. Set to false to disable live matching and highlighting (the deletion command remains available, so-called \"lazy matching\")."
},
"trailing-spaces.deleteModifiedLinesOnly": {
"type": "boolean",
"default": false,
"description": "By default, trailing spaces are deleted within the whole document. Set to true to affect only the lines you edited since last save. Trailing spaces will still be searched for and highlighted in the whole document."
},
"trailing-spaces.syntaxIgnore": {
"type": "array",
"default": [],
"description": "With this option you can ignore specific files based on the syntax used. An item has to match the case-sensitive string of the language used in the file."
},
"trailing-spaces.schemeIgnore": {
"type": "array",
"default": [
"output"
],
"description": "With this option you can ignore specific schemes. An item has to match the case-sensitive string of the scheme of the document."
},
"trailing-spaces.pathToIgnore": {
"type": "string",
"default": "",
"description": "With this option you can ignore files whose paths contain a match for the regular expression (case insensitive)."
},
"trailing-spaces.trimOnSave": {
"type": "boolean",
"default": false,
"description": "Controls whether trailing spaces are trimmed automatically when saving a file."
},
"trailing-spaces.showStatusBarMessage": {
"type": "boolean",
"default": true,
"description": "By default, trailing space deletions will be communicated through a status bar message. Set to false to disable these messages."
},
"trailing-spaces.backgroundColor": {
"type": "string",
"default": "rgba(255,0,0,0.3)",
"description": "Controls the background color of the trailing space decoration."
},
"trailing-spaces.borderColor": {
"type": "string",
"default": "rgba(255,100,100,0.15)",
"description": "Controls the color of the border around the trailing space decoration."
}
}
},
"commands": [
{
"command": "trailing-spaces.deleteTrailingSpaces",
"title": "Delete",
"category": "Trailing Spaces"
},
{
"command": "trailing-spaces.deleteTrailingSpacesModifiedLinesOnly",
"title": "Delete - Modified Lines Only",
"category": "Trailing Spaces"
},
{
"command": "trailing-spaces.highlightTrailingSpaces",
"title": "Highlight",
"category": "Trailing Spaces"
}
]
},
"activationEvents": [
"onCommand:trailing-spaces.deleteTrailingSpaces",
"onCommand:trailing-spaces.deleteTrailingSpacesModifiedLinesOnly",
"onCommand:trailing-spaces.highlightTrailingSpaces",
"*"
],
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"pretest": "ncp test/files out/test/files",
"test": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^3.3.0",
"vscode": "^1.0.0",
"mocha": "^5.0.0",
"@types/node": "^6.0.40",
"@types/mocha": "^5.0.0",
"ncp": "^2.0.0",
"@types/diff": "^4.0.0"
},
"directories": {
"test": "test"
},
"dependencies": {
"diff": "^4.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shardulm94/vscode-trailingspaces.git"
},
"keywords": [
"trailing",
"spaces",
"delete",
"highlight"
],
"author": "Shardul Mahadik",
"license": "MIT",
"bugs": {
"url": "https://github.com/shardulm94/vscode-trailingspaces/issues"
},
"homepage": "https://github.com/shardulm94/vscode-trailingspaces#readme"
}