Skip to content

Code Insights: [FE] Use Monaco query input for insight query field

Administrator requested to merge vk/use-monaco-for-insight-query-field into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/21339 Note: this PR is based on https://github.com/sourcegraph/sourcegraph/pull/28101

Context

This PR just adopts MonacoQueryInput for code insights data series field needs and reuses this component in the creation UI form.

Known issues

  • Query field doesn't provide good styles for a disabled state (it isn't a big problem cause we're going to allow editing this field on the edit page)
  • Suggestions panel doesn't work if we have a multi-line query. It works only on the first line. (I think it's a problem with our suggestions system deep in code intel hook. We will solve this problem later in a separate issue)

Merge request reports

Loading