Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Each channel makes the navigation target in the editor off by 2 lines #909

Closed
tbaroti opened this issue Dec 23, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@tbaroti
Copy link

tbaroti commented Dec 23, 2023

Describe the bug

While using the left navigation pane, each channel present in the file shifts the target navigation line in the editor with +2 lines. Navigating to the first channel works fine, from there on, navigating to other channels will be off an additional +2 lines after each channel. This makes the navigation to other elements (e.g. operations, messages) also off.
This is valid only when using JSON document format (YAML has different issue).

How to Reproduce

  1. Open the "MQTT" template in Studio (have at least Navigation and Editor panes open)
  2. Convert the document to JSON
  3. Click on "LIGHTINGMEASURED" channel in Navigation pane -> editor jumps to and highlights "lightingMeasured" - OK
  4. Click on "LIGHTTURNON" channel in Navigation pane -> editor jumps to and highlights "lightTurnOn.messages", the line 2 below lightTurnOn - NOK
  5. Click on "LIGHTTURNOFF" channel in Navigation pane -> editor jumps to and highlights the line 4 below lightTurnOff - NOK
  • Screenshots
    2023-12-23_15h38_24

Expected behavior

Clicking on an element in the Navigation pane makes the editor jump to and highlight the line in which the element is defined.

@tbaroti tbaroti added the bug Something isn't working label Dec 23, 2023
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@tbaroti tbaroti changed the title While using the left navigation pane, each channel present in the file shifts the target navigation line in the editor with +2 lines Each channel makes the navigation target in the editor off by 2 lines Dec 23, 2023
@KhudaDad414
Copy link
Member

closing in favour of #910 since it seems to be the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants