@codemirror/autocomplete
Advanced tools
Comparing version 0.19.3 to 0.19.4
@@ -0,1 +1,9 @@ | ||
## 0.19.4 (2021-10-24) | ||
### Bug fixes | ||
Don't rely on the platform's highlight colors for the active completion, since those are inconsistent and may not be appropriate for the theme. | ||
Fix incorrect match underline for some kinds of matched completions. | ||
## 0.19.3 (2021-08-31) | ||
@@ -2,0 +10,0 @@ |
@@ -15,3 +15,4 @@ import { EditorState, Transaction, StateCommand, Facet, Extension } from '@codemirror/state'; | ||
data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt) (which should hold | ||
[completion sources](https://codemirror.net/6/docs/ref/#autocomplete.CompletionSource)). | ||
[completion sources](https://codemirror.net/6/docs/ref/#autocomplete.CompletionSource) or arrays | ||
of [completions](https://codemirror.net/6/docs/ref/#autocomplete.Completion)). | ||
*/ | ||
@@ -18,0 +19,0 @@ override?: readonly CompletionSource[] | null; |
@@ -1,2 +0,2 @@ | ||
import { Facet, combineConfig, StateEffect, StateField, Text, EditorSelection, Prec } from '@codemirror/state'; | ||
import { Facet, combineConfig, StateEffect, StateField, Prec, EditorSelection, Text } from '@codemirror/state'; | ||
import { EditorView, Direction, logException, ViewPlugin, Decoration, WidgetType, keymap } from '@codemirror/view'; | ||
@@ -250,3 +250,3 @@ import { showTooltip } from '@codemirror/tooltip'; | ||
adjacentStart = i; | ||
adjacentEnd = i; | ||
adjacentEnd = i + 1; | ||
adjacentTo++; | ||
@@ -335,10 +335,12 @@ } | ||
}, | ||
"& > li[aria-selected]": { | ||
background_fallback: "#bdf", | ||
backgroundColor: "Highlight", | ||
color_fallback: "white", | ||
color: "HighlightText" | ||
} | ||
} | ||
}, | ||
"&light .cm-tooltip-autocomplete ul li[aria-selected]": { | ||
background: "#39e", | ||
color: "white", | ||
}, | ||
"&dark .cm-tooltip-autocomplete ul li[aria-selected]": { | ||
background: "#347", | ||
color: "white", | ||
}, | ||
".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after": { | ||
@@ -881,3 +883,3 @@ content: '"···"', | ||
let cState = view.state.field(completionState, false); | ||
if (!cState || !cState.open || Date.now() - cState.open.timestamp < CompletionInteractMargin) | ||
if (view.state.readOnly || !cState || !cState.open || Date.now() - cState.open.timestamp < CompletionInteractMargin) | ||
return false; | ||
@@ -884,0 +886,0 @@ applyCompletion(view, cState.open.options[cState.open.selected]); |
{ | ||
"name": "@codemirror/autocomplete", | ||
"version": "0.19.3", | ||
"version": "0.19.4", | ||
"description": "Autocompletion for the CodeMirror code editor", | ||
@@ -30,3 +30,3 @@ "scripts": { | ||
"@codemirror/language": "^0.19.0", | ||
"@codemirror/state": "^0.19.0", | ||
"@codemirror/state": "^0.19.2", | ||
"@codemirror/text": "^0.19.2", | ||
@@ -33,0 +33,0 @@ "@codemirror/tooltip": "^0.19.0", |
Sorry, the diff of this file is not supported yet
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
134944
3150
Updated@codemirror/state@^0.19.2