monacopilot 0.16.9 → 0.16.10

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.
Files changed (2) hide show
  1. package/README.md +8 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,8 +41,10 @@
41
41
  - [Max Context Lines](#max-context-lines)
42
42
  - [Caching Completions](#caching-completions)
43
43
  - [Handling Errors](#handling-errors)
44
- - [Completion Event Handlers](#completion-event-handlers)
45
44
  - [Custom Request Handler](#custom-request-handler)
45
+ - [Completion Event Handlers](#completion-event-handlers)
46
+ - [onCompletionShown](#oncompletionshown)
47
+ - [onCompletionAccepted](#oncompletionaccepted)
46
48
  - [Copilot Options](#copilot-options)
47
49
  - [Changing the Provider and Model](#changing-the-provider-and-model)
48
50
  - [Custom Model](#custom-model)
@@ -428,13 +430,6 @@ The editor provides several events to handle completion suggestions. These event
428
430
 
429
431
  This event is triggered when a completion suggestion is shown to the user. You can use this event to log or perform actions when a suggestion is displayed.
430
432
 
431
- **Parameters:**
432
-
433
- - `completion` (string): The completion text that is being shown
434
- - `range` (EditorRange | undefined): The editor range where the completion will be inserted
435
-
436
- **Example:**
437
-
438
433
  ```javascript
439
434
  registerCompletion(monaco, editor, {
440
435
  // ... other options
@@ -444,12 +439,15 @@ registerCompletion(monaco, editor, {
444
439
  });
445
440
  ```
446
441
 
442
+ **Parameters:**
443
+
444
+ - `completion` (string): The completion text that is being shown
445
+ - `range` (EditorRange | undefined): The editor range where the completion will be inserted
446
+
447
447
  #### onCompletionAccepted
448
448
 
449
449
  Event triggered when a completion suggestion is accepted by the user.
450
450
 
451
- **Example**
452
-
453
451
  ```javascript
454
452
  registerCompletion(monaco, editor, {
455
453
  // ... other options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monacopilot",
3
- "version": "0.16.9",
3
+ "version": "0.16.10",
4
4
  "description": "AI auto-completion plugin for Monaco Editor",
5
5
  "main": "./build/index.js",
6
6
  "module": "./build/index.mjs",