Skip to content

Bug: Cannot run commands in terminal "The URL must be of scheme file" #8091

@mattmazzola

Description

@mattmazzola

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue version: 1.2.7
- IDE version: 1.104.3
- Model: N/A
- config: N/A

Description

When working in .devcontainers continue.dev cannot run commands in the terminal

Attempt to run results in error

run_terminal_command failed with the message: The URL must be of scheme file

Please try something else or request further instructions.

Running commands in the terminal does work with the native Gitub Copilot extension so there must be some detection mechanism the extension can perform to know which URL scheme to use.

From my limited understanding VSCode uses URI schemes to represent resources in different contexts.

file:// - Local file system paths
vscode-remote:// - Files inside remote environments (containers, SSH, WSL)

It seems continue.dev is hard-coded or not adapting to the environment it is running in and always using file:// when it should be using vscode-remote://
Although the error message "The URL must be of scheme file" makes it seem like it should be file:// but this may be misleading.

This issue might become part of #928

To reproduce

  1. Open Agent Chat
  2. Enter prompt which causes continue.dev to suggest running command in terminal
  3. Click "Run"

Expected:
Command executes successfully

Actual:
Error response

Log output

Metadata

Metadata

Labels

area:toolsRelates to tool usageide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions