Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexibility with remote hosts #27

Open
matthew-dews opened this issue Jan 23, 2024 · 2 comments
Open

More flexibility with remote hosts #27

matthew-dews opened this issue Jan 23, 2024 · 2 comments

Comments

@matthew-dews
Copy link
Contributor

Hi,

I use VS Code's Remote SSH/Remote Containers plugin for most of my development.

Testing out llama-coder initially I ran ollama on another machine on my local network, separate from my development laptop. This worked great!

However when I use VS Code to connect to a remote development server, that server doesn't have access to the local machine I use for inference. VS Code only allows llama-coder to run in the remote host. Unfortunately VS Code can't use reverse SSH tunnels, which was the first solution I tried.

I suspect that this could be resolved by adding "extensionKind": ["workspace", "ui"] to the extension manifest, as described here. This would leave the default behavior of the extension running on the remote host, but allow it to be switched to running locally if desired.

Let me know what you think, the above comes from reading over the linked pages but I don't have any experience writing VS Code extensions so I could be wrong about something here.

@matthew-dews
Copy link
Contributor Author

I added the extensionKind and that allows the extension to run locally but I see the following error:
Unsupported document: vscode-remote://attached-container%HASH/path/to/file.cpp, should be easy to fix once I get some time to get back to this.

@ex3ndr
Copy link
Owner

ex3ndr commented Feb 16, 2024

I have fixed this in 0.0.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants