You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(run): allow interruption of running processing program (#17)
Feature for #14
- Sends sigint (\x03) to terminal before running processing again
- To use, set `processing.shouldSendSigint` to `true`
- Off by default to avoid cross-platform compatibility issues
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,8 @@ This is a [fork of a Visual Studio Code extension created by Tobiah Zarlez](http
34
34
## What this extension isn't
35
35
36
36
- This extension does not allow you to debug Java or Processing projects.
37
-
- This is **NOT a language server**, and hence cannot provide the features a language server can. There simply is not enough demand for a Processing language server, and that type of thing is definetly out of the scope of my abilities. Langauge servers take entire teams from big companies such as Microsoft to make.
38
-
- This extension cannot provide intellesence, for example
37
+
- This is **NOT a language server**, and hence cannot provide the features a language server can. There simply is not enough demand for a Processing language server, and that type of thing is definitely out of the scope of my abilities. Language servers take entire teams from big companies such as Microsoft to make.
38
+
- This extension cannot provide IntelliSense, for example
39
39
40
40
## Why the fork?
41
41
@@ -85,7 +85,8 @@ Installing this extension will add the following commands to your command pallet
85
85
- Use the pallet command "Processing: Open Documentation for Selection" to open the processing documentation for the current selection.
86
86
- By default uses processing.org's documentation. Can change to p5js's if preferred using the `processing.docs` setting.
87
87
- Run
88
-
- Runs the current Processing project (from current working directory). Will automatically detect if the project is Processing Java or Python
88
+
- Runs the current Processing project (from current working directory). Will automatically detect if the project is Processing Java or Python.
89
+
- If the setting `processing.shouldSendSigint` is set to `true`, run will interrupt the current running processing program before running the new one.
89
90
- RunJava
90
91
- Runs the current Processing Java project (from CWD)
91
92
- RunPy
@@ -116,3 +117,8 @@ This extension attempts to make Processing with Python easier to use. Follow the
116
117
- Snippets are based on the [Processing Sublime Text plugin](https://github.com/b-g/processing-sublime).
117
118
- Syntax highlighting is based on the [Red Hat VSCode-Java extension grammar](https://github.com/redhat-developer/vscode-java/blob/master/syntaxes/java.tmLanguage.json)
118
119
- Thanks to [Tobiah Zarlez](https://github.com/TobiahZ) for making the [original extension](https://github.com/TobiahZ/processing-vscode)
120
+
121
+
## Development
122
+
123
+
- Run `yarn vsce package`
124
+
- Run `code --install-extension processing-vscode-<VERSION>.vsix`
Copy file name to clipboardExpand all lines: package.json
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
"keywords": [
25
25
"processing",
26
26
"pde",
27
-
"procesing.py",
27
+
"processing.py",
28
28
"processing-python",
29
29
"language",
30
30
"snippets",
@@ -205,7 +205,12 @@
205
205
"processing.shouldGiveDiagnostics": {
206
206
"type": "boolean",
207
207
"default": false,
208
-
"description": "If the extension should provide diagnostics (via processing-java)"
208
+
"description": "If the extension should provide diagnostics (via processing-java). Note that this feature is quite slow."
209
+
},
210
+
"processing.shouldSendSigint": {
211
+
"type": "boolean",
212
+
"default": false,
213
+
"description": "If the extension should send sigint to the terminal stop the current running processing program before running the new one by sending \"\\x03\" (^C). If true, it essentially presses ctrl+c for you."
209
214
},
210
215
"processing.runPathQuotes": {
211
216
"type": "string",
@@ -224,7 +229,7 @@
224
229
"processing.py.javaPath": {
225
230
"type": "string",
226
231
"default": "java",
227
-
"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."
232
+
"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 potentially `C:\\Program Files\\Java\\jdk1.8.0_202\\bin\\javac.exe` for Windows."
0 commit comments