Helixform / CodeCursor

An extension for using Cursor in Visual Studio Code.

Home Page:https://marketplace.visualstudio.com/items?itemName=ktiays.aicursor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't see the generate code option.

MaxwellWei opened this issue · comments

When I open the command palette and search for "codecursor", the only options I see are

  • View: Show CodeCursor
  • CodeCursor: Focus on Chat View
  • CodeCursor: Reset Chat

There is no "Code Cursor: Generate Code" as in the picture shown in README.

+1

Hi @MaxwellWei, "Generate Code" command requires an active text editor. Did you attempt to do it without opening any files?

Hi @MaxwellWei, "Generate Code" command requires an active text editor. Did you attempt to do it without opening any files?

Yes, I tried searching for this command while opening a JS and a TS file. I also tried installing the Cursor app and then restarting VSCode. Then I tried reinstalling the extension, but still not work.

By the way, my VSCode is 1.76.2 user setup.

After upgrading to 0.3.1, the issue occurred, and after rolling back to 0.3.0, the function resumed normal.

After upgrading to 0.3.1, the issue occurred, and after rolling back to 0.3.0, the function resumed normal.

Yes, downgrading to 0.3.0 solved the issue.

When I opened the command palette, the command was actually listed there. But when I search for something, it disappeared:
image

I guess commit 1d0568b caused this problem. These commands are controlled by editorFocus context value, as the code shows:

{
    "command": "aicursor.generateCode",
    "title": "Generate Code",
    "enablement": "editorFocus",
    "category": "CodeCursor"
}

That is to say, when editorFocus is false (no editors have focus), the commands are disabled. Just before opening the command palette, editorFocus is indeed true. However, when the command palette opened, the value changed to false. And when you type in the search field, VSCode reloads the command list, making these commands disappear.

This is a regression, we will fix it soon.

As a workaround, you can bind keyboard shortcuts to these commands, and invoke them without moving focus off the editor.

As a workaround, you can bind keyboard shortcuts to these commands, and invoke them without moving focus off the editor.

Yes, I'm doing this. Thanks.