You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### If using Angular and getting `Not allowed to load local resource:` errors
102
87
@@ -134,70 +119,81 @@ await initialize({
134
119
})
135
120
```
136
121
137
-
Additionally, this library exposes 23 modules that include the vscode version of some services (with some glue to make it work with monaco):
122
+
Additionally, 25 packages that include the vscode version of some services (with some glue to make it work with monaco) are published:
138
123
139
-
-**Extensions** (included by default): `vscode/service-override/extensions`
124
+
-**Extensions** (included by default): `@codingame/monaco-vscode-extensions-service-override`
140
125
- Support for VSCode extensions. A worker configuration can be past to it:
141
126
- Then, everything runs in one worker, where extensions run in an iframe, with all the implications (can be created by the bundler directly). The worker script is expected to be hosted on a separate domain.
142
-
-**Files** (included by default): `vscode/service-override/files`
127
+
-**Files** (included by default): `@codingame/monaco-vscode-file-service-override`
143
128
- It adds the memory filesystem for `file://` files, but also adds the support for lazy loaded extension files. It adds separate memory user files (e.g. config, keybindings), cache files and log files.
144
-
-**QuickAccess** (included by default): `vscode/service-override/quickaccess`
129
+
-**QuickAccess** (included by default): `@codingame/monaco-vscode-quickaccess-service-override`
145
130
- Enables the quickaccess menu in the editor (press F1 or ctrl+shift+p)
- Enable vscode modal dialogs. It allows users to select an action to do. Those actions are exposed to the vscode API. Additionally, this service can be used by the language client to delegate questions to the user.
- Enable editor support. This is usually needed when working with the language server protocol. Without enabling the editor service, it will only be able to resolve the currently open model (only internal file links will work).
- Allows to change the configuration of not only the editors, but every part of vscode. The language client for instance uses it to send the requested configuration to the server. The default configuration service already allows to change the configuration. This service overrides makes it rely on a user configuration file (with json schema, overridable by language including all vscode features).
- Allows to use textmate grammars. Depends on *themes* service. vscode extensions use textmate grammars exclusively for highlighting. Once this is enabled monarch grammars can no longer be loaded by monaco-editor.
- When opening an untitled model or a file without extension or if vscode is unable to guess the language simply by the file extension or by reading the first line. Then it will use tensorflow in a worker to try to guess the most probable language (here we are only able to rely on the open source model).
- 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:
191
176
- Current loaded theme is stored in there to be loaded faster on start.
VSCode uses a bunch of default extensions. Most of them are used to load the default languages and grammars (see https://github.com/microsoft/vscode/tree/main/extensions).
302
298
303
-
This library bundles most of them and allows to import the ones you want:
299
+
This library bundles and publishes them and allows to import the ones you want:
@@ -357,6 +353,17 @@ For the debug feature, also run:
357
353
npm run start:debugServer
358
354
```
359
355
356
+
#### Remote agent
357
+
358
+
To connect to a remote agent, run:
359
+
```bash
360
+
npm run start:extHostServer
361
+
```
362
+
363
+
Then go to http://localhost:5173/?remoteAuthority=localhost:8000
364
+
365
+
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
366
+
360
367
### History
361
368
362
369
This project was mainly created to make the implementation of [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient) more robust and maintainable.
0 commit comments