ianobermiller / split-string-on-enter

Atom package to split a string into multiple concatenated strings at the cursor position when typing enter.
MIT License
2 stars 1 forks source link

getScopesArray() does not deliver single or double quoted scope anymore. #4

Open sweidac opened 5 years ago

sweidac commented 5 years ago

When splitting a string in JavaScript, Atom does only return the scopes ["source.js", "string.quoted"] from this.editor.scopeDescriptorForBufferPosition(pos).getScopesArray();.

As the plugin can't determine the correct quotes, it does nothing and a normal newline is inserted.

System: MacOS 10.14.2 Atom: 1.34.0 (but the problem is there for at least half a year)