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

Navigation uses the JSON line numbers in the editor even if the document format is YAML #910

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

Comments

@tbaroti
Copy link

tbaroti commented Dec 23, 2023

Describe the bug

When the Navigation pane on the left gets used, the editor jumps and highlights the line according to the JSON format even if the document format is YAML.

How to Reproduce

  1. Open the "MQTT" template in Studio (have at least Navigation and Editor panes open)
  2. Click on "LIGHTINGMEASURED" channel in Navigation pane -> editor jumps to and highlights a line in the editor that doesn't match with "lightingMeasured"
  3. Note the line number
  4. Convert the document to JSON
  5. Check the line with the previously noted line number -> it matches with "lightingMeasured"

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, respecting the current document format.

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

@tbaroti it seems to be an issue with the parser. opened an issue here: asyncapi/parser-js#936

@KhudaDad414
Copy link
Member

the underlying issue seems to be the same as #887.

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