monacopilot 0.12.5 → 0.12.6
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 +6 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
- [Register Completion with the Monaco Editor](#register-completion-with-the-monaco-editor)
|
|
19
19
|
- [Register Completion Options](#register-completion-options)
|
|
20
20
|
- [Trigger Mode](#trigger-mode)
|
|
21
|
-
|
|
22
|
-
- [
|
|
23
|
-
|
|
24
|
-
- [Trigger Completions with an Editor Action](#trigger-completions-with-an-editor-action)
|
|
21
|
+
- [Manually Trigger Completions](#manually-trigger-completions)
|
|
22
|
+
- [Trigger Completions with a Keyboard Shortcut](#trigger-completions-with-a-keyboard-shortcut)
|
|
23
|
+
- [Trigger Completions with an Editor Action](#trigger-completions-with-an-editor-action)
|
|
25
24
|
- [Multi-File Context](#multi-file-context)
|
|
26
25
|
- [Filename](#filename)
|
|
27
26
|
- [Completions for Specific Technologies](#completions-for-specific-technologies)
|
|
@@ -168,7 +167,7 @@ registerCompletion(monaco, editor, {
|
|
|
168
167
|
|
|
169
168
|
> **Note:** If you prefer real-time completions, you can set the `trigger` option to `'onTyping'`. This may increase the number of requests made to the provider and the cost. This should not be too costly since most small models are very inexpensive.
|
|
170
169
|
|
|
171
|
-
|
|
170
|
+
### Manually Trigger Completions
|
|
172
171
|
|
|
173
172
|
If you prefer not to trigger completions automatically (e.g., on typing or on idle), you can trigger completions manually. This is useful in scenarios where you want to control when completions are provided, such as through a button click or a keyboard shortcut.
|
|
174
173
|
|
|
@@ -182,7 +181,7 @@ completion.trigger();
|
|
|
182
181
|
|
|
183
182
|
To set up manual triggering, configure the `trigger` option to `'onDemand'`. This disables automatic completions, allowing you to call the `completion.trigger()` method explicitly when needed.
|
|
184
183
|
|
|
185
|
-
|
|
184
|
+
#### Trigger Completions with a Keyboard Shortcut
|
|
186
185
|
|
|
187
186
|
You can set up completions to trigger when the `Ctrl+Shift+Space` keyboard shortcut is pressed.
|
|
188
187
|
|
|
@@ -199,7 +198,7 @@ monaco.editor.addCommand(
|
|
|
199
198
|
);
|
|
200
199
|
```
|
|
201
200
|
|
|
202
|
-
|
|
201
|
+
#### Trigger Completions with an Editor Action
|
|
203
202
|
|
|
204
203
|
You can add a custom editor action to trigger completions manually.
|
|
205
204
|
|