Alex van de Griendt and Piotr Osiewicz
1574a3a2fd
python: Add task for running modules ( #26462 )
...
Closes #26460
I am new to contributing to Zed (and pretty new to Rust in general). I'm
not too familiar with code style, guidelines etc. so please feel free to
suggest changes/improvements.
This PR adds a run icon to Python files that have a "main" function:
```python
if __name__ == "__main__":
...
```
In addition to the gutter icon, there is now also an extra task in the
command palette "run module".
Release Notes:
- Added detection for runnable Python modules
- Added Python-specific task to run a Python file as a module from
inside the project's scope
---------
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com >
2025-03-25 22:08:16 +01:00
..
2025-03-19 02:09:02 +00:00
2025-03-21 12:29:07 +00:00
2025-03-21 10:04:39 -06:00
2025-03-24 21:00:33 -03:00
2025-03-25 19:55:59 +00:00
2025-03-25 17:08:36 +00:00
2025-03-21 16:39:01 +00:00
2025-03-25 19:55:59 +00:00
2025-03-10 13:38:30 -06:00
2025-03-19 02:09:02 +00:00
2025-03-25 18:37:15 +00:00
2025-03-25 18:17:36 +00:00
2025-03-19 02:09:02 +00:00
2025-03-19 02:09:02 +00:00
2025-02-24 20:28:20 +00:00
2025-02-25 13:52:42 -05:00
2025-03-03 09:20:15 +00:00
2025-03-24 19:25:56 +00:00
2025-03-21 00:10:17 -04:00
2025-03-19 02:09:02 +00:00
2025-03-22 02:56:25 +00:00
2025-03-19 02:09:02 +00:00
2025-03-22 19:23:11 +00:00
2025-03-25 04:35:01 +05:30
2025-03-19 02:09:02 +00:00
2025-03-07 18:56:17 +00:00
2025-03-19 02:09:02 +00:00
2025-03-25 18:37:15 +00:00
2025-03-25 10:56:27 +01:00
2025-02-20 19:07:16 +00:00
2025-03-19 02:09:02 +00:00
2025-03-25 00:21:09 +00:00
2025-03-19 02:09:02 +00:00
2025-03-25 18:43:27 +01:00
2025-03-19 02:09:02 +00:00
2025-03-25 09:22:01 -03:00
2025-03-25 16:55:42 -03:00
2025-03-19 02:09:02 +00:00
2025-03-25 18:23:59 +05:30
2025-03-25 18:23:59 +05:30
2025-03-03 15:55:15 +00:00
2025-03-25 18:23:59 +05:30
2025-03-22 18:38:01 +05:30
2025-03-19 12:20:26 +00:00
2025-03-22 02:56:25 +00:00
2025-03-25 19:34:26 +00:00
2025-03-24 19:25:56 +00:00
2025-03-10 13:38:30 -06:00
2025-03-24 19:03:57 +00:00
2025-03-17 15:39:52 +00:00
2025-03-25 07:05:25 +00:00
2025-03-19 02:09:02 +00:00
2025-02-24 07:29:55 +00:00
2025-03-25 19:34:26 +00:00
2025-03-14 13:40:02 -03:00
2025-03-17 02:36:37 +00:00
2025-03-17 02:36:37 +00:00
2025-03-25 18:18:22 +00:00
2025-03-19 02:09:02 +00:00
2025-03-24 20:45:06 -07:00
2025-03-19 02:09:02 +00:00
2025-03-25 15:13:53 +02:00
2025-03-25 18:23:59 +05:30
2025-03-25 18:30:46 +00:00
2025-03-20 10:22:49 -03:00
2025-03-25 10:56:27 +01:00
2025-03-19 02:09:02 +00:00
2025-03-21 09:15:41 +02:00
2025-03-25 22:08:16 +01:00
2025-03-19 02:09:02 +00:00
2025-03-19 02:09:02 +00:00
2025-03-22 19:23:11 +00:00
2025-03-25 11:11:04 -06:00
2025-03-25 17:08:36 +00:00
2025-03-03 17:44:49 +05:30
2025-03-25 04:35:01 +05:30
2025-03-24 16:12:26 -06:00
2025-03-06 12:50:42 +01:00
2025-03-19 02:09:02 +00:00
2025-03-14 07:19:43 +00:00
2025-03-25 19:34:26 +00:00
2025-03-18 18:18:56 +00:00
2025-03-20 13:06:10 +00:00
2025-03-19 02:09:02 +00:00
2025-03-19 02:09:02 +00:00
2025-03-25 15:13:53 +02:00
2025-03-25 19:34:26 +00:00
2025-03-22 19:23:11 +00:00
2025-03-19 02:09:02 +00:00
2025-03-20 08:30:04 +00:00
2025-03-21 12:29:07 +00:00
2025-03-19 02:09:02 +00:00
2025-02-27 08:00:42 +00:00
2025-03-19 02:09:02 +00:00
2025-03-22 19:23:11 +00:00
2025-03-19 02:09:02 +00:00
2025-03-19 02:09:02 +00:00
2025-03-10 13:38:30 -06:00
2025-03-06 08:36:10 -06:00
2025-03-18 17:59:58 +00:00
2025-03-06 04:59:57 +00:00
2025-03-19 02:09:02 +00:00
2025-03-19 02:09:02 +00:00
2025-03-19 02:09:02 +00:00
2025-03-20 13:06:10 +00:00
2025-02-21 06:24:02 -03:00
2025-03-19 02:09:02 +00:00
2025-03-19 02:09:02 +00:00
2025-03-18 12:55:25 -04:00
2025-03-06 17:57:31 +00:00
2025-03-19 02:09:02 +00:00
2025-03-13 10:41:04 -07:00
2025-03-19 02:09:02 +00:00
2025-03-10 11:39:01 -04:00
2025-03-24 22:31:11 -07:00
2025-03-19 02:09:02 +00:00
2025-03-06 10:56:28 -07:00
2025-03-18 20:39:54 +00:00
2025-03-24 22:31:11 -07:00
2025-03-25 19:34:26 +00:00
2025-03-19 15:33:08 +01:00
2025-03-19 18:48:35 +00:00
2025-03-19 17:26:46 +00:00
2025-03-25 17:57:42 -03:00
2025-03-19 02:09:02 +00:00
2025-03-25 19:34:26 +00:00
2025-03-06 20:37:54 +00:00
2025-03-18 22:27:09 -06:00
2025-03-25 12:32:20 -04:00
2025-03-15 14:16:10 +08:00
2025-03-22 19:23:11 +00:00
2025-03-19 17:26:46 +00:00
2025-03-25 11:11:04 -06:00
2025-03-21 00:10:17 -04:00
2025-03-25 18:11:30 +00:00
2025-03-24 21:00:33 -03:00
2025-03-25 11:11:04 -06:00
2025-03-25 03:05:32 +00:00
2025-03-21 20:08:03 +00:00