We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa6d7b5 commit 9cba1c9Copy full SHA for 9cba1c9
app.py
@@ -215,6 +215,9 @@ def steps(data):
215
data = json.loads(input_data)
216
print_with_flush(data)
217
218
+ if data['operation'] == 'close':
219
+ break
220
+
221
if data['operation'] == 'generate':
222
file_extension = data['filePath'].split(".")[1]
223
if file_extension == 'json':
main.js
@@ -133,8 +133,6 @@ app.whenReady().then(() => {
133
});
134
135
136
-app.on('quit', () => {
137
- if (pythonProcess) {
138
- pythonProcess.kill();
139
- }
+app.on('will-quit', () => {
+ pythonProcess.stdin.write('{"operation": "close"}' + '\n');
140
0 commit comments