You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: remove support for legacy internal markers across all editors
The primary goal of this change is to strictly remove support for legacy
<<<dotprompt:...>>> internal markers from all authoring environments, as
these are intended for internal runtime use and have been superseded by
the Handlebars helper syntax.
- Remove syntax highlighting and snippet support for internal
<<<dotprompt:...>>> markers in VS Code, JetBrains, Vim, Monaco,
and Emacs extensions.
- Clean up dead token types and highlighting attributes in the
JetBrains and Monaco implementations.
- Update the core Tree-sitter grammar tests to remove legacy marker
validation.
- Independently transition all role and section snippets from
block-based ({{#role}}) to inline marker ({{role}}) Handlebars helpers
to simplify template authoring.
- Restore cursor positioning (bash) and proper newlines to role snippets
in VS Code to ensure consistent usability.
Copy file name to clipboardExpand all lines: packages/jetbrains/src/main/resources/liveTemplates/Dotprompt.xml
+7-12Lines changed: 7 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -17,31 +17,27 @@
17
17
SPDX-License-Identifier: Apache-2.0
18
18
-->
19
19
<templateSetgroup="Dotprompt">
20
-
<!-- Role blocks-->
21
-
<templatename="role"value="{{#role "$ROLE$"}} $CONTENT$ {{/role}}"description="Handlebars role block"toReformat="false"toShortenFQNames="true">
20
+
<!-- Role markers-->
21
+
<templatename="role"value="{{role "$ROLE$"}} $0"description="Handlebars role marker"toReformat="false"toShortenFQNames="true">
<templatename="system"value="{{#role "system"}} $CONTENT$ {{/role}}"description="System role block"toReformat="false"toShortenFQNames="true">
<templatename="system"value="{{role "system"}} $0"description="System role marker"toReformat="false"toShortenFQNames="true">
31
29
<context>
32
30
<optionname="OTHER"value="true"/>
33
31
</context>
34
32
</template>
35
33
36
-
<templatename="user"value="{{#role "user"}} $CONTENT$ {{/role}}"description="User role block"toReformat="false"toShortenFQNames="true">
<templatename="user"value="{{role "user"}} $0"description="User role marker"toReformat="false"toShortenFQNames="true">
38
35
<context>
39
36
<optionname="OTHER"value="true"/>
40
37
</context>
41
38
</template>
42
39
43
-
<templatename="model"value="{{#role "model"}} $CONTENT$ {{/role}}"description="Model role block"toReformat="false"toShortenFQNames="true">
0 commit comments