@codemirror/autocomplete
Advanced tools
Comparing version 6.11.1 to 6.12.0
@@ -0,1 +1,15 @@ | ||
## 6.12.0 (2024-01-12) | ||
### Bug fixes | ||
Make sure snippet completions also set `userEvent` to `input.complete`. | ||
Fix a crash when the editor lost focus during an update and autocompletion was active. | ||
Fix a crash when using a snippet that has only one field, but multiple instances of that field. | ||
### New features | ||
The new `activateOnTypingDelay` option allows control over the debounce time before the completions are queried when the user types. | ||
## 6.11.1 (2023-11-27) | ||
@@ -2,0 +16,0 @@ |
@@ -278,2 +278,10 @@ import * as _codemirror_state from '@codemirror/state'; | ||
/** | ||
The amount of time to wait for further typing before querying | ||
completion sources via | ||
[`activateOnTyping`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.activateOnTyping). | ||
Defaults to 100, which should be fine unless your completion | ||
source is very slow and/or doesn't use `validFor`. | ||
*/ | ||
activateOnTypingDelay?: number; | ||
/** | ||
By default, when completion opens, the first option is selected | ||
@@ -575,2 +583,2 @@ and can be confirmed with | ||
export { CloseBracketConfig, Completion, CompletionContext, CompletionInfo, CompletionResult, CompletionSection, CompletionSource, acceptCompletion, autocompletion, clearSnippet, closeBrackets, closeBracketsKeymap, closeCompletion, completeAnyWord, completeFromList, completionKeymap, completionStatus, currentCompletions, deleteBracketPair, hasNextSnippetField, hasPrevSnippetField, ifIn, ifNotIn, insertBracket, insertCompletionText, moveCompletionSelection, nextSnippetField, pickedCompletion, prevSnippetField, selectedCompletion, selectedCompletionIndex, setSelectedCompletion, snippet, snippetCompletion, snippetKeymap, startCompletion }; | ||
export { type CloseBracketConfig, type Completion, CompletionContext, type CompletionInfo, type CompletionResult, type CompletionSection, type CompletionSource, acceptCompletion, autocompletion, clearSnippet, closeBrackets, closeBracketsKeymap, closeCompletion, completeAnyWord, completeFromList, completionKeymap, completionStatus, currentCompletions, deleteBracketPair, hasNextSnippetField, hasPrevSnippetField, ifIn, ifNotIn, insertBracket, insertCompletionText, moveCompletionSelection, nextSnippetField, pickedCompletion, prevSnippetField, selectedCompletion, selectedCompletionIndex, setSelectedCompletion, snippet, snippetCompletion, snippetKeymap, startCompletion }; |
{ | ||
"name": "@codemirror/autocomplete", | ||
"version": "6.11.1", | ||
"version": "6.12.0", | ||
"description": "Autocompletion for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232466
4519