Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/autocomplete

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/autocomplete - npm Package Compare versions

Comparing version 0.19.3 to 0.19.4

8

CHANGELOG.md

@@ -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 @@

3

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc