Skip to content

Toggle Code Actions doesn't work for runnable code blocks #27259

Closed
@aymennasri

Description

@aymennasri

Summary

Upon trying to run a runnable code (like a pytest test) with the code actions shortcut ctrl-. as mentioned here, it fails to run it.
However when having a lint issue, the code actions will be toggled displaying both Fix with Assistant and the run code option.

Edit: For other than test blocks, the run button seems to work (tested with R)

Steps to trigger the problem:

  1. Create python test
  2. Press ctrl-.

Actual Behavior:

No code actions, only toggled when having another option other than the run code option.

Expected Behavior:

Toggled code actions with the run code option even if there's no other option with it.

Zed Version and System Specs

Zed: v0.178.5 (Zed)
OS: Linux X11 linuxmint 22.1
Memory: 31 GiB
Architecture: x86_64
GPU: Quadro T2000 || NVIDIA || 550.120

Metadata

Metadata

Assignees

No one assigned

    Labels

    can't reproduceIssue that can't be reproduced (transient, invalid, etc)tasks

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions