Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Validate CodeMirror as alternative blob view implementation #39408

Closed
@fkling

Description

@fkling

This issues keeps track of the work that needs to be done for a baseline implementation of the blob view with CodeMirror.

The feature flag is enableCodeMirrorFileView.

Known issues to be fixed/discussed:

  • Selected line is not synced with cursor position and therefore not sent to extensions
  • File content is visible under line numbers (looks like line number background is transparent?)
  • Dismissing the hovercard info box causes the hovercard to shrink upwards, "detaching" it from the line/token it was shown for.
  • Hovercards are disabled in reference panel blob view (see https://github.com/sourcegraph/sourcegraph/pull/40131 for more information)
    • From @fkling: Issue was something different. See PR If replacing <Router /> with <MemoryRouter /> would fix the navigation issue (which I don't know), then we could introduce a special flag/config option to instruct the React wrapper to use MemoryRouter instead of Router. It's not pretty but doable. But if simply using <MemoryRouter /> would not solve the issue then I don't think there is anything we can do about that (except refactoring the ref panel and hover cards to work differently).
      So whether or not to fix/change this is up for debate.
    • https://github.com/sourcegraph/sourcegraph/pull/40249
  • Close button is not functional in un-pinned hovercards

Metadata

Metadata

Labels

codemirrorPRs and issues related to migrating to CodeMirrorteam/code-navigationteam/graphGraph Team (previously Code Intel/Language Tools/Language Platform)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions