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

Node ext host #184

Merged
merged 25 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ Additionally, this library exposes 23 modules that include the vscode version of
- Define your own storage or use the default BrowserStorageService. The storage service is used in many places either as a cache or as a user preference store. For instance:
- Current loaded theme is stored in there to be loaded faster on start.
- Every panel/view positions are stored in there.
- **LifeCycle**: `vscode/service-override/lifecycle`
- Allow other services to veto a page reload (for instance when not all open files are saved)
- **Remote agent**: `vscode/service-override/remoteAgent`
- Connect to a remote vscode agent and have access to:
- The remote filesystem
- The remote file search
- Running terminals
- Running vscode extensions (not web-compatible)
- and probably more?
This library exports a `vscode-ext-host-server` bin to start the remote agent

Usage:

Expand Down Expand Up @@ -357,6 +367,17 @@ For the debug feature, also run:
npm run start:debugServer
```

#### Remote agent

To connect to a remote agent, run:
```bash
npm run start:extHostServer
```

Then go to http://localhost:5173/?remoteAuthority=localhost:8000

You can also go to http://localhost:5173/?remoteAuthority=localhost:8000&remotePath=/any/path/on/your/machine to open a directory on your machine as the current workspace

### History

This project was mainly created to make the implementation of [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient) more robust and maintainable.
Expand Down
Loading
Loading