@codingame/monaco-vscode-api 1.67.12 → 1.67.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/api.js +1214 -33
- package/dist/async-f842d13c.js +212 -0
- package/dist/configuration.d.ts +293 -0
- package/dist/configuration.js +2069 -0
- package/dist/messages.js +40 -859
- package/dist/{missing-services-71e80bea.js → missing-services-8687ea11.js} +364 -66
- package/dist/modelEditor.js +27 -6
- package/dist/{services-fb7952fb.js → services-7a462d46.js} +292 -1
- package/dist/services.d.ts +2871 -2873
- package/dist/services.js +4 -2
- package/dist/types-371cc315.js +27 -0
- package/package.json +8 -1
- package/dist/async-9ffe4d42.js +0 -46
package/README.md
CHANGED
|
@@ -46,22 +46,25 @@ StandaloneService.initialize({
|
|
|
46
46
|
})
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Additionally, this library exposes
|
|
49
|
+
Additionally, this library exposes 3 modules that include the vscode version of some services (with some glue to make it work with monaco):
|
|
50
50
|
- Notification / Dialog: `vscode/service-override/messages`
|
|
51
51
|
- Model / Editor: `vscode/service-override/modelEditor`
|
|
52
|
+
- Configuration: `vscode/service-override/configuration`
|
|
52
53
|
|
|
53
54
|
Usage:
|
|
54
55
|
```typescript
|
|
55
56
|
import { StandaloneService } from 'vscode/services'
|
|
56
57
|
import getModelEditorServiceOverride from 'vscode/service-override/modelEditor'
|
|
57
58
|
import getMessageServiceOverride from 'vscode/service-override/messages'
|
|
59
|
+
import getConfigurationServiceOverride from 'vscode/service-override/configuration'
|
|
58
60
|
|
|
59
61
|
StandaloneServices.initialize({
|
|
60
62
|
...getModelEditorServiceOverride((model, input, sideBySide) => {
|
|
61
63
|
// Open a new editor here and return it
|
|
62
64
|
// It will be called when for instance the user ctrl+click on an import
|
|
63
65
|
}),
|
|
64
|
-
...getMessageServiceOverride(document.body)
|
|
66
|
+
...getMessageServiceOverride(document.body),
|
|
67
|
+
...getConfigurationServiceOverride(readConfiguration, configurationChangeEvent)
|
|
65
68
|
})
|
|
66
69
|
```
|
|
67
70
|
|