Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
175 lines (175 loc) · 7.27 KB
/
Copy pathpackage.json
File metadata and controls
175 lines (175 loc) · 7.27 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"name": "trailing-spaces",
"displayName": "Trailing Spaces",
"description": "Highlight trailing spaces and delete them in a flash!",
"version": "0.4.4",
"publisher": "shardulm94",
"icon": "icon.png",
"engines": {
"vscode": "^1.68.0"
},
"extensionKind": [
"workspace"
],
"categories": [
"Other"
],
"main": "./dist/extension.js",
"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 lines being currently edited (i.e. with active cursors) will have its trailing spaces highlighted. Set to false to ignore trailing spaces on the current lines."
},
"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.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"
}
]
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true
},
"virtualWorkspaces": true
},
"activationEvents": [
"onStartupFinished"
],
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && node esbuild.js",
"watch": "node esbuild.js --watch",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"check-types": "tsc --noEmit",
"compile-tests": "tsc -p ./",
"pretest": "npm run compile-tests && node esbuild.js && npm run lint && mkdirp out/test/suite/files && ncp src/test/suite/files out/test/suite/files",
"lint": "eslint src",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/diff": "^5.2.3",
"@types/mocha": "^10.0.10",
"@types/node": "^24.0.0",
"@types/vscode": "1.68.0",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.28.1",
"eslint": "^9.39.4",
"glob": "^11.1.0",
"mkdirp": "^3.0.1",
"mocha": "^10.8.2",
"ncp": "^2.0.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.61.1"
},
"dependencies": {
"diff": "^5.0.2"
},
"overrides": {
"serialize-javascript": "^7.0.5"
},
"repository": {
"type": "git",
"url": "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",
"__metadata": {
"id": "6ad45f5a-09ec-44e5-b363-867ddc1ec674",
"publisherDisplayName": "Shardul Mahadik",
"publisherId": "cdbc316c-f1de-43c4-9a22-4e211e955680",
"isPreReleaseVersion": false
}
}