What indentation problems, out of curiosity?
For example, just a random snip out of a random file:
let tree = root.render({state: store.getState(), push: store.push})
let rootNode = createElement(tree)
let oldRootNode = document.getElementById('root')
oldRootNode.parentElement.replaceChild(rootNode, oldRootNode)
store.subscribe(() => {
let newTree = root.render({state: store.getState(), push: store.push})
let patches = diff(tree, newTree)
rootNode = patch(rootNode, patches)
tree = newTree
})
VS will get the indentation right, but Atom will not(notice how "let rootNode..." and everything after that is pushed in). const login = (email, password, remember) => a.chain(
submitting(true),
a.ajax({
request: {
url: '/api/sessions',
method: 'POST',
data: { email, password },
},
callback: (status, data) => (
a.chain(submitting(false),
a.setToken(data.token, remember),
a.setUserId(data.userId),
a.setAuth)),
})
)
const onEmailChange = (push, value) => {
push(emailChange(value))
}Granted maybe this is just some truncated example? I hadn't run into weird spacing like this yet so maybe open a bug with something small with reproduction steps?
`onEmailChange` doesn't even have an open or close curly bracket, it is the indentation format that is confusing us. Below is the same code indented by VS.
const login = (email, password, remember) => a.chain(
submitting(true),
a.ajax({
request: {
url: '/api/sessions',
method: 'POST',
data: { email, password },
},
callback: (status, data) => (
a.chain(submitting(false),
a.setToken(data.token, remember),
a.setUserId(data.userId),
a.setAuth)),
})
)
const onEmailChange = (push, value) => {
push(emailChange(value))
}
`const onEmailChange` shouldn't be under `login`. If you count the brackets you will see that `login` ends before `onEmailChange` starts. But for some reason Atom doesn't understand that.Maybe my syntax is different than most, but I see problems like this all the time with Atom. The exact same files indent fine in VS.
Regarding filing a bug, I thought about it, but then I didn't think anybody would care about this.