reddit / emacs

Anyone Have An Emacs Config That Actually Works For JS Development With Private Methods?

BackToPlebbit69 · 2022-06-05 19:45
Hey there, I cannot for the life of me figure out how to deal with private methods for 'get' and 'set' methods, even after using 'js2-mode' accordingly. It was supposedly fixed but it doesn't seem to work for me as it produces weird syntax issues with LSP mode as well. Can anyone please share an Emacs config for JS development that actually works for private methods that are prepended with '#' pound sign? ​ Thanks.
hkjels · 2022-06-05 19:57
What doesn’t work? The language server should not expose private methods when outside of the class. Is the problem that you are seeing them?
BackToPlebbit69 · 2022-06-07 01:55
The syntax highlighting is all messed up and the pound sign itself isn't really recognized at all.