Andrew Dupont

Results 560 comments of Andrew Dupont

Yeah, I can reproduce this. It’ll be awfully tricky to fix. Each tab stop is represented by a “marker.” Markers keep track of arbitrary ranges of the document and are...

For reference: using `exclusive: true` when we create the marker solves this problem but causes 11 new failures out of the 81 test cases in the spec.

[This discussion](https://github.com/atom-archive/text-document/issues/15) adds some context. Pinging @nathansobo because I’m curious if this ever came up again. I don’t see any open issues in the `text-buffer` repo about it, and `exclusive`...

Thinking about this some more. When the cursor is right at the border of two tab stops (the end of one and the beginning of another) and a character is...

@kswedberg, based on the example in this ticket I made a spec: ```coffee describe "when the snippet has two adjacent tab stops", -> it "ensures insertions are treated as part...

@nathansobo, that was originally what I was planning to ask for before I went on yesterday’s windmill tilt. I think it would probably help, yeah. I’ll try to create an...

@kswedberg Way ahead of you! 😜️ Turns out VScode does things extremely similarly to [what I’ve got in mind](https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/snippetSession.ts#L138-L170). They use “decoration” instead of “marker” and “stickiness” instead of “exclusive,”...

@nathansobo I’ve read the docs and the source code and I’m still not sure of the answer to this question: is it possible (and safe) to change a `DisplayMarker`’s exclusivity...

I think I got it working! In theory! It's a data-structure nightmare right now because of all the cross-referencing and the need to replace `DisplayMarker`s in-place, but give me a...

My guess is that it's languished because the workaround is pretty simple, albeit verbose: just duplicate the snippet under a different prefix. So it's low-priority for the Atom maintainers, but...