Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Array with optional chanining #688

Closed
1 task done
cocoliliace opened this issue Dec 26, 2020 · 4 comments
Closed
1 task done

Array with optional chanining #688

cocoliliace opened this issue Dec 26, 2020 · 4 comments

Comments

@cocoliliace
Copy link

Prerequisites

Description

Array access with optional chaining is not recognized as a value in objects. Optional chaining with array outside of an object works, but when used directly inside an object as a value, the next key isn't highlighted. If it is the first key-value pair of the object, both the key following it and its own key would not be highlighted

atom language-javascript bug for array optional chaining

Steps to Reproduce

  1. Open a javascript file
  2. Write a key-value pair with a value using array optional chaining
  3. Add another key-value pair before and after the key-value pair with array optional chaining
  4. Delete the key-value pair before the one with array optional chaining

Expected behavior:

The keys of the object should be highlighted in both step 3 and 4

Actual behavior:

The key after the one with array optional chaining isn't highlighted in step 3
Both the key after and the key of the one with array optional chaining aren't highlighted in step 4

Reproduces how often:

Always

Versions

Atom: 1.53.0
OS: macOS Catalina Version 0.15.6 (19G73)

@icecream17
Copy link
Contributor

All optional chaining variants aren't supported unfortunately - issue #640 is similar
veitbajarsch in that forum suggested to install language-babel to fix the problem

@cocoliliace
Copy link
Author

Thanks for the suggestion. I've installed it, restarted atom, and tried it in safe mode. Unfortunately, the error is still there. Is there a certain setting that I need to change in language-babel after installation?

@icecream17
Copy link
Contributor

I don't know, I haven't tried it, however I found gandm/language-babel#510, maybe that could help?

@cocoliliace
Copy link
Author

Thanks. Closing this because it seems to be a similar issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants