Skip to content

Commit

Permalink
fix: remove search functionality from code editor (#1334)
Browse files Browse the repository at this point in the history
* Remove search functionality from code editor

* Don't upgrade lock file to version 3

---------

Co-authored-by: Niedziolka Michal <[email protected]>
  • Loading branch information
queengooborg and NiedziolkaMichal authored Jun 10, 2023
1 parent 8446965 commit 9645008
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions editor/js/editor-libs/codemirror-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
LRLanguage,
} from "@codemirror/language";
import { closeBrackets, closeBracketsKeymap } from "@codemirror/autocomplete";
import { highlightSelectionMatches, searchKeymap } from "@codemirror/search";
import { lintKeymap } from "@codemirror/lint";
import { javascript, javascriptLanguage } from "@codemirror/lang-javascript";
import { wast } from "@codemirror/lang-wast";
Expand Down Expand Up @@ -199,11 +198,9 @@ const BASE_EXTENSIONS = [
closeBrackets(),
view.rectangularSelection(),
view.crosshairCursor(),
highlightSelectionMatches(),
view.keymap.of([
...closeBracketsKeymap,
...commands.defaultKeymap,
...searchKeymap,
...commands.historyKeymap,
...foldKeymap,
...lintKeymap,
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"@codemirror/lang-wast": "^6.0.0",
"@codemirror/language": "^6.2.1",
"@codemirror/lint": "^6.0.0",
"@codemirror/search": "^6.2.1",
"@codemirror/view": "^6.3.0",
"@lezer/common": "^1.0.1",
"@lezer/css": "^1.0.0",
Expand Down

0 comments on commit 9645008

Please sign in to comment.