refactor: environment highlighing in editors - improve #1834

This commit is contained in:
liyasthomas
2021-12-12 21:10:05 +05:30
parent fe5fe03b3c
commit 4e0bb1a243
13 changed files with 15 additions and 0 deletions

View File

@@ -307,6 +307,7 @@ useCodemirror(bulkEditor, bulkHeaders, {
},
linter: null,
completer: null,
environmentHighlights: false,
})
const variableEditor = ref<any | null>(null)
@@ -318,6 +319,7 @@ useCodemirror(variableEditor, variableString, {
},
linter: jsonLinter,
completer: null,
environmentHighlights: false,
})
const queryEditor = ref<any | null>(null)
@@ -330,6 +332,7 @@ useCodemirror(queryEditor, gqlQueryString, {
},
linter: createGQLQueryLinter(schemaString),
completer: queryCompleter(schemaString),
environmentHighlights: false,
})
const copyQueryIcon = ref("copy")

View File

@@ -105,6 +105,7 @@ useCodemirror(
},
linter: null,
completer: null,
environmentHighlights: false,
})
)

View File

@@ -409,6 +409,7 @@ useCodemirror(
},
linter: null,
completer: null,
environmentHighlights: false,
})
)

View File

@@ -109,6 +109,7 @@ useCodemirror(generatedCode, requestCode, {
},
linter: null,
completer: null,
environmentHighlights: false,
})
watch(

View File

@@ -182,6 +182,7 @@ useCodemirror(bulkEditor, bulkHeaders, {
},
linter: null,
completer: null,
environmentHighlights: true,
})
watch(bulkHeaders, () => {

View File

@@ -47,6 +47,7 @@ useCodemirror(curlEditor, curl, {
},
linter: null,
completer: null,
environmentHighlights: false,
})
defineProps<{ show: boolean }>()

View File

@@ -189,6 +189,7 @@ useCodemirror(bulkEditor, bulkParams, {
},
linter: null,
completer: null,
environmentHighlights: true,
})
const params$ = useReadonlyStream(restParams$, [])

View File

@@ -88,6 +88,7 @@ useCodemirror(
},
linter,
completer,
environmentHighlights: false,
})
)

View File

@@ -88,6 +88,7 @@ useCodemirror(
},
linter,
completer,
environmentHighlights: false,
})
)

View File

@@ -102,6 +102,7 @@ useCodemirror(
},
linter: null,
completer: null,
environmentHighlights: true,
})
)

View File

@@ -193,6 +193,7 @@ const { cursor } = useCodemirror(
},
linter: null,
completer: null,
environmentHighlights: true,
})
)

View File

@@ -92,6 +92,7 @@ useCodemirror(
},
linter: null,
completer: null,
environmentHighlights: true,
})
)

View File

@@ -92,6 +92,7 @@ useCodemirror(
},
linter: null,
completer: null,
environmentHighlights: true,
})
)