chore: revert indented line wrap due to issues with mobile (fixes hoppscotch/internal-issues#9)

This commit is contained in:
Andrew Bastin
2022-06-13 23:05:23 +05:30
parent 6b1ca1dce1
commit a6b5295df5
2 changed files with 2 additions and 30 deletions

View File

@@ -38,7 +38,6 @@ import { Completer } from "./completion"
import { LinterDefinition } from "./linting/linter"
import { basicSetup, baseTheme, baseHighlightStyle } from "./themes/baseTheme"
import { HoppEnvironmentPlugin } from "./extensions/HoppEnvironment"
import { IndentedLineWrapPlugin } from "./extensions/IndentedLineWrap"
// TODO: Migrate from legacy mode
type ExtendedEditorConfig = {
@@ -238,7 +237,7 @@ export function useCodemirror(
),
lineWrapping.of(
options.extendedEditorConfig.lineWrapping
? [IndentedLineWrapPlugin]
? [EditorView.lineWrapping]
: []
),
keymap.of([
@@ -325,7 +324,7 @@ export function useCodemirror(
(newMode) => {
view.value?.dispatch({
effects: lineWrapping.reconfigure(
newMode ? [EditorView.lineWrapping, IndentedLineWrapPlugin] : []
newMode ? [EditorView.lineWrapping] : []
),
})
}