|
2 | 2 | "name": "processing-vscode", |
3 | 3 | "displayName": "Processing VSCode", |
4 | 4 | "description": "Processing Language Support for VSCode", |
5 | | - "version": "2.2.0", |
| 5 | + "version": "2.3.0", |
6 | 6 | "publisher": "Luke-zhang-04", |
7 | 7 | "engines": { |
8 | 8 | "vscode": "^1.48.0" |
|
33 | 33 | "onCommand:processing.OpenDocs", |
34 | 34 | "onCommand:processing.SearchWebsite", |
35 | 35 | "onCommand:processing.Run", |
| 36 | + "onCommand:processing.RunJava", |
| 37 | + "onCommand:processing.RunPy", |
36 | 38 | "onLanguage:pde", |
37 | 39 | "onLanguage:python" |
38 | 40 | ], |
|
41 | 43 | "commands": [ |
42 | 44 | { |
43 | 45 | "command": "processing.Run", |
44 | | - "title": "Processing: Run Open Processing Project" |
| 46 | + "title": "Processing: Run Open Processing Project", |
| 47 | + "enablement": "resourceLangId == python || resourceLangId == pde" |
45 | 48 | }, |
46 | 49 | { |
47 | 50 | "command": "processing.RunPy", |
48 | 51 | "title": "Processing: Run Open Processing Python Project", |
49 | | - "icon": "./images/play-arrow-with-logo.svg" |
| 52 | + "icon": "./images/play-arrow-with-logo.svg", |
| 53 | + "enablement": "resourceLangId == python && config.processing.py.isEnabled" |
50 | 54 | }, |
51 | 55 | { |
52 | 56 | "command": "processing.RunJava", |
53 | | - "title": "Processing: Run Open Processing Project", |
54 | | - "icon": "./images/play-arrow.svg" |
| 57 | + "title": "Processing: Run Open Processing Java Project", |
| 58 | + "icon": "./images/play-arrow.svg", |
| 59 | + "enablement": "resourceLangId == pde" |
55 | 60 | }, |
56 | 61 | { |
57 | 62 | "command": "processing.OpenExtensionDocumentation", |
58 | | - "title": "Processing: Open Extension Documentation" |
| 63 | + "title": "Processing: Open Extension Documentation", |
| 64 | + "enablement": "resourceLangId == pde" |
59 | 65 | }, |
60 | 66 | { |
61 | 67 | "command": "processing.OpenDocs", |
62 | | - "title": "Processing: Open Documentation for Selection" |
| 68 | + "title": "Processing: Open Documentation for Selection", |
| 69 | + "enablement": "resourceLangId == pde || resourceLangId == python && config.processing.py.isEnabled" |
63 | 70 | }, |
64 | 71 | { |
65 | 72 | "command": "processing.SearchWebsite", |
66 | | - "title": "Processing: Search Processing Website" |
| 73 | + "title": "Processing: Search Processing Website", |
| 74 | + "enablement": "resourceLangId == pde || resourceLangId == python && config.processing.py.isEnabled" |
67 | 75 | } |
68 | 76 | ], |
69 | 77 | "languages": [ |
|
105 | 113 | "group": "navigation" |
106 | 114 | }, |
107 | 115 | { |
108 | | - "when": "resourceLangId == python", |
| 116 | + "when": "resourceLangId == python && config.processing.py.isEnabled", |
109 | 117 | "command": "processing.RunPy", |
110 | 118 | "group": "navigation" |
111 | 119 | } |
|
117 | 125 | "group": "navigation" |
118 | 126 | }, |
119 | 127 | { |
120 | | - "when": "resourceLangId == python", |
| 128 | + "when": "resourceLangId == python && config.processing.py.isEnabled", |
121 | 129 | "command": "processing.RunPy", |
122 | 130 | "group": "navigation" |
123 | 131 | } |
|
134 | 142 | }, |
135 | 143 | "processing.docs": { |
136 | 144 | "type": "string", |
137 | | - "default": "processing.org", |
| 145 | + "default": "auto", |
138 | 146 | "enum": [ |
139 | 147 | "processing.org", |
140 | | - "p5js.org" |
| 148 | + "p5js.org", |
| 149 | + "py.processing.org", |
| 150 | + "auto" |
141 | 151 | ], |
142 | 152 | "enumDescriptions": [ |
143 | 153 | "Use processing.org for documentation", |
144 | | - "Use p5js for documentation" |
| 154 | + "Use p5js for documentation", |
| 155 | + "Use py.processing.org for documentation", |
| 156 | + "Automatically determine either processing.org or py.processing.org (never p5js) depending on the current file" |
145 | 157 | ], |
146 | | - "description": "Which documentation should this extension use?" |
| 158 | + "description": "Which documentation this extension should use" |
147 | 159 | }, |
148 | 160 | "processing.search": { |
149 | 161 | "type": "string", |
|
181 | 193 | "type": "string", |
182 | 194 | "default": "java", |
183 | 195 | "description": "Path to Java. Leave default if you've added java to your path, otherwise enter the path to `java` here. Example: `/usr/bin/java` for Unix, or `C:\\Program Files\\Java\\jdk1.8.0_202\\bin\\javac.exe` for Windows." |
| 196 | + }, |
| 197 | + "processing.py.isEnabled": { |
| 198 | + "type": "boolean", |
| 199 | + "default": true, |
| 200 | + "description": "If processing.py features should be enabled or not." |
184 | 201 | } |
185 | 202 | } |
186 | 203 | } |
|
0 commit comments