-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextension.json
100 lines (100 loc) · 2.91 KB
/
extension.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
{
"identifier": "cc.aeron.nova-black",
"name": "Black",
"organization": "Aeron",
"description": "Black, the uncompromising Python code formatter, for Nova.",
"version": "1.1.1",
"categories": [
"formatters",
"commands"
],
"repository": "https://github.com/Aeron/Black.novaextension",
"bugs": "https://github.com/Aeron/Black.novaextension/issues",
"license": "Apache-2.0",
"main": "main.js",
"activationEvents": [
"onLanguage:python"
],
"entitlements": {
"process": true,
"filesystem": "readonly"
},
"commands": {
"editor": [
{
"title": "Format with Black",
"command": "formatWithBlack",
"shortcut": "cmd-shift-B",
"filters": {
"syntaxes": [
"python"
]
}
}
],
"extensions": [
{
"title": "Format Workspace with Black",
"command": "formatWorkspaceWithBlack",
"shortcut": "cmd-shift-opt-B"
}
]
},
"config": [
{
"key": "cc.aeron.nova-black.executablePath",
"title": "Executable Path",
"description": "Path to the Black executable.",
"type": "path",
"default": "/usr/local/bin/black"
},
{
"key": "cc.aeron.nova-black.commandArguments",
"title": "Command Arguments",
"description": "Additional arguments. The --quiet option is always set. The --stdin-filename is set conditionally.",
"type": "string",
"default": null
},
{
"key": "cc.aeron.nova-black.formatOnSave",
"title": "Format on a file save",
"type": "boolean",
"default": true
}
],
"configWorkspace": [
{
"key": "cc.aeron.nova-black.executablePath",
"title": "Executable Path",
"description": "Path to the Black executable.",
"type": "path",
"placeholder": "/usr/local/bin/black"
},
{
"key": "cc.aeron.nova-black.commandArguments",
"title": "Command Arguments",
"description": "Additional arguments. The --quiet option is always set. The --stdin-filename is set conditionally.",
"type": "string"
},
{
"key": "cc.aeron.nova-black.formatOnSave",
"title": "Format on a file save",
"type": "enum",
"values": [
[
-1,
"Global"
],
[
1,
"Yes"
],
[
0,
"No"
]
],
"default": -1
}
]
}