Skip to content

the update of function node is wrong when in nested snippets #1361

@dirichy

Description

@dirichy

use this snippet:

        local number=0
	s({ trig = "[", wordTrig = false, snippetType = "autosnippet" }, {
		t("["),
		i(1),
		f(function(_, _)
			number = number + 1
			print(number)
			return "]"
		end, { 1 }),
	}),

so when I type "[2345\t" it will print "1,2,3,4,5", as what I expect.
But when I type "[aaaa[bbbbb\tcccccc\t", it will print one number per "a", and two number per "b", and no number per "c". I think when I typing "c" I am still in the outer snippet so it should cause update of outer snippet, but it doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions