Skip to content

/commit and @diff do not work on remote repository accessed via Remote-SSH VSCode plugin #1450

Closed as not planned

Description

@yury-meshkov

Before submitting your bug report

Relevant environment info

- OS: Windows_NT x64 10.0.19045
- Continue: Codestral, GPT-4o, and more v0.8.40
- IDE: Visual Studio Code 1.90.0 (user setup)

Description

When working on a remote repository (accessed via Remotes SSH VSCode plugin) two features: /commit and @diff do not work.
/commit command generate no result and only prints this: "No changes detected. Make sure you are in a git repository with current changes."
But when VSCode works on a local git repository then /commit works as expected.

I am not sure if it is expected to work. If it is then I need to file a bug. If it is not then I can file as an improvement.

To reproduce

No response

Log output

No response

Activity

  1. sestinj commented on Jun 12, 2024

    @sestinj
    Contributor

    @yury-meshkov thank you, this is definitely a bug

  2. ekoome commented on Jun 19, 2024

    @ekoome

    Same issue when using dev containers. I have installed the plugin in the container and get "No changes detected..."

  3. kakadais commented on Jun 25, 2024

    @kakadais

    On continue pane, I can't even use /commit command,
    there's only 4 available command example when I typed '/',
    /edit / comment /share /test and said no 'result' popup if I typed /commit.

    /commit just works on Windows?

    MacOS with v0.9.167 (pre-release) (lastest version was same)
    
  4. sestinj commented on Jun 25, 2024

    @sestinj
    Contributor

    @kakadais We don't include all slash commands by default, but you can configure them in your config.json like here: https://docs.continue.dev/customization/slash-commands#commit

  5. added
    kind:bug
    ide:vscode
    and removed on Jul 8, 2024
  6. A-De-Almeida commented on Jul 16, 2024

    @A-De-Almeida

    Same issue when using VS code with WSL. /commit command generates no result and only prints this: "No changes detected. Make sure you are in a git repository with current changes."

  7. geekloper commented on Aug 2, 2024

    @geekloper

    Same issue when using VS code with WSL. /commit command generates no result and only prints this: "No changes detected. Make sure you are in a git repository with current changes."

    I confirm in WSL

  8. cspotcode commented on Sep 24, 2024

    @cspotcode

    I get a similar issue using /onboard. VSCode remote dev from a Window host to a Linux SSH remote.

    Error is:

    ENOENT: no such file or directory, scandir 'C:\home\username\projects\foo'
    

    Where the project resides at /home/username/projects/foo on the Linux filesystem.

    Fix is to force the extension to run on the remote, not the host. But this might break other things, I'm not sure yet. https://code.visualstudio.com/docs/remote/ssh#_advanced-forcing-an-extension-to-run-locally-remotely

  9. karqo commented on Oct 7, 2024

    @karqo

    Same issue when using VS code with WSL. /commit command generates no result and only prints this: "No changes detected. Make sure you are in a git repository with current changes."

    Unfortunately, I can confirm this too.
    Are there any news on this one?

  10. Qualzz commented on Oct 10, 2024

    @Qualzz

    Same issue here. But I had this since months to be honest. I thought it would be fixed by then.
    Also probably related to git diff command showing no changes

  11. liupgd commented on Oct 16, 2024

    @liupgd

    Same issue here, I work on a remove ssh vscode server. git diff showed 'No changes detected'

  12. ccll commented on Oct 24, 2024

    @ccll

    Fix is to force the extension to run on the remote, not the host. But this might break other things, I'm not sure yet. https://code.visualstudio.com/docs/remote/ssh#_advanced-forcing-an-extension-to-run-locally-remotely

    @cspotcode Works for me on both /commit and /onboard, thanks for the tip.

    A little more detail for who need it.

    settings.json:

    "remote.extensionKind": {
            "continue.continue": [
                "workspace"
            ]
        }

    After the change you need to reload the vscode window, open the extension tab, and install 'Continue' extension into remote SSH host.

    And remeber to copy-paste your original client side Continue's config.json into the remote one.

  13. liupgd commented on Oct 24, 2024

    @liupgd

    Another compromise solution for vscode remote development is:

    1. Stage your changes
    2. In the terminal: clear && git diff --cached | cat
    3. In Continue: @Terminal, write a concise git commit message, With this prompt, Continue can read the terminal and then create commit message for you.
    4. Copy the commit message to you git commit.
  14. klauserber commented on Jan 2, 2025

    @klauserber
  15. RomneyDa commented on Feb 28, 2025

    @RomneyDa
    Contributor

    @yury-meshkov @geekloper @cspotcode this should be fixed with recent versions that support URIs. Could someone check that this has been resolved?

  16. vbauchart commented on Mar 3, 2025

    @vbauchart

    same as #2572

  17. added
    os:windows
    on May 7, 2025
  18. github-actions commented on Aug 6, 2025

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  19. github-actions commented on Aug 17, 2025

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ide:vscodekind:bugos:windowsstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions