From 90683776ea72180a87dee5e648ae8d56f56a8e4e Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 12 Apr 2022 12:35:19 +0200 Subject: [PATCH] Move from @codemirror/fold to @codemirror/language --- package.json | 1 - src/basic-setup.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 57ca036..c5d4887 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "@codemirror/closebrackets": "^0.19.0", "@codemirror/commands": "^0.19.0", "@codemirror/comment": "^0.19.0", - "@codemirror/fold": "^0.19.0", "@codemirror/history": "^0.19.0", "@codemirror/language": "^0.19.0", "@codemirror/lint": "^0.19.0", diff --git a/src/basic-setup.ts b/src/basic-setup.ts index fabc6ff..533c3b8 100644 --- a/src/basic-setup.ts +++ b/src/basic-setup.ts @@ -3,8 +3,8 @@ import {keymap, highlightSpecialChars, drawSelection, highlightActiveLine, dropC lineNumbers, highlightActiveLineGutter} from "@codemirror/view" import {Extension, EditorState} from "@codemirror/state" import {history, historyKeymap} from "@codemirror/history" -import {foldGutter, foldKeymap} from "@codemirror/fold" -import {defaultHighlightStyle, syntaxHighlighting, indentOnInput, bracketMatching} from "@codemirror/language" +import {defaultHighlightStyle, syntaxHighlighting, indentOnInput, bracketMatching, + foldGutter, foldKeymap} from "@codemirror/language" import {defaultKeymap} from "@codemirror/commands" import {closeBrackets, closeBracketsKeymap} from "@codemirror/closebrackets" import {searchKeymap, highlightSelectionMatches} from "@codemirror/search"