Stillat / vscode-antlers-language-server

Provides rich language features for Statamic's Antlers templating language, including code completions, syntax highlighting, and more.
https://antlers.dev
MIT License
36 stars 3 forks source link

False autocomplete #57

Closed stefankempf closed 1 year ago

stefankempf commented 1 year ago

Describe the bug I came across the following autocomplete bug. When I write include_home and select the proposed value in the dropdown, it then adds the full modifier to my already written part, which will lead a duplicated characters.

Impacted Products Which Antlers Toolbox products does this bug apply to?

Versions and Other Plugins/Extensions

"prettier-plugin-antlers": "^1.1.20",
"prettier-plugin-tailwindcss": "^0.2.1",

If submitting a formatting bug, please include the template contents below as well as an attachment Add any problematic templates here.

{{#
    @name Site Header
    @desc Contains Logo and Main Navigation
#}}
<header class="mx-auto my-0 max-w-page border-setzkasten sm:h-header">
    <a href="/" aria-label="Zurück zur Startseite">
        {{ svg src="setzkasten_logo.svg" class="w-full sm:w-auto sm:h-[calc(var(--layout-header-height)_-_2_*_var(--layout-border-width))]" }}
    </a>
    {{ nav:navigation }}
    <ul>
        <li></li>
    </ul>
    {{ nav:navigation }}
</header>

Additional context Please check attached screen recording. https://user-images.githubusercontent.com/20299885/212659093-4977edde-4713-4a04-84f8-7350aaaf1976.mov

JohnathonKoster commented 1 year ago

Resolved in: