refactor: environment highlighing in editors - improve #1834
This commit is contained in:
@@ -307,6 +307,7 @@ useCodemirror(bulkEditor, bulkHeaders, {
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
const variableEditor = ref<any | null>(null)
|
const variableEditor = ref<any | null>(null)
|
||||||
@@ -318,6 +319,7 @@ useCodemirror(variableEditor, variableString, {
|
|||||||
},
|
},
|
||||||
linter: jsonLinter,
|
linter: jsonLinter,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
const queryEditor = ref<any | null>(null)
|
const queryEditor = ref<any | null>(null)
|
||||||
@@ -330,6 +332,7 @@ useCodemirror(queryEditor, gqlQueryString, {
|
|||||||
},
|
},
|
||||||
linter: createGQLQueryLinter(schemaString),
|
linter: createGQLQueryLinter(schemaString),
|
||||||
completer: queryCompleter(schemaString),
|
completer: queryCompleter(schemaString),
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
const copyQueryIcon = ref("copy")
|
const copyQueryIcon = ref("copy")
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ useCodemirror(
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -409,6 +409,7 @@ useCodemirror(
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ useCodemirror(generatedCode, requestCode, {
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ useCodemirror(bulkEditor, bulkHeaders, {
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(bulkHeaders, () => {
|
watch(bulkHeaders, () => {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ useCodemirror(curlEditor, curl, {
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
defineProps<{ show: boolean }>()
|
defineProps<{ show: boolean }>()
|
||||||
|
|||||||
@@ -189,6 +189,7 @@ useCodemirror(bulkEditor, bulkParams, {
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
const params$ = useReadonlyStream(restParams$, [])
|
const params$ = useReadonlyStream(restParams$, [])
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ useCodemirror(
|
|||||||
},
|
},
|
||||||
linter,
|
linter,
|
||||||
completer,
|
completer,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ useCodemirror(
|
|||||||
},
|
},
|
||||||
linter,
|
linter,
|
||||||
completer,
|
completer,
|
||||||
|
environmentHighlights: false,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ useCodemirror(
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: true,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ const { cursor } = useCodemirror(
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: true,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ useCodemirror(
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: true,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ useCodemirror(
|
|||||||
},
|
},
|
||||||
linter: null,
|
linter: null,
|
||||||
completer: null,
|
completer: null,
|
||||||
|
environmentHighlights: true,
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user