Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This extension provides syntax highlighting, diagnostics, formatting, and langua

- **Syntax Highlighting**:
- YAML Frontmatter
- Dotprompt Markers (e.g., `<<<dotprompt:role:user>>>`)
- Role markers (e.g., `{{role "user"}}`)
- Handlebars syntax (`{{...}}`)
- **Autocomplete**: Context-aware completion for Handlebars and Dotprompt helpers
- **Diagnostics** (requires `promptly`): Real-time error detection for YAML and Handlebars syntax
Expand Down Expand Up @@ -86,7 +86,6 @@ Open this folder in VS Code and press `F5` to launch an Extension Development Ho
## Syntax Support

- **Frontmatter**: The extension detects YAML frontmatter enclosed in `---` at the beginning of the file.
- **Markers**: Special Dotprompt markers like `<<<dotprompt:role:system>>>` are highlighted.
- **Handlebars**: Standard Handlebars syntax is supported for dynamic prompt generation.

## Contributing
Expand Down
7 changes: 0 additions & 7 deletions packages/vscode/snippets/dotprompt.snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,6 @@
],
"description": "Insert unlessEquals helper"
},
"Dotprompt Marker": {
"prefix": ["marker", "<<<"],
"body": [
"<<<dotprompt:${1|role:system,role:user,role:model,section:preamble|}>>>"
],
"description": "Insert a Dotprompt marker"
},
"Complete Prompt Template": {
"prefix": ["prompt", "newprompt"],
"body": [
Expand Down
23 changes: 0 additions & 23 deletions packages/vscode/syntaxes/dotprompt.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
{
"include": "#frontmatter"
},
{
"include": "#markers"
},
{
"include": "#handlebars"
},
Expand Down Expand Up @@ -52,26 +49,6 @@
}
]
},
"markers": {
"patterns": [
{
"match": "(<<<dotprompt:role:[a-z]+>>>)",
"name": "keyword.control.directive.role.dotprompt"
},
{
"match": "(<<<dotprompt:history>>>)",
"name": "keyword.control.directive.history.dotprompt"
},
{
"match": "(<<<dotprompt:media:.*?>>>)",
"name": "keyword.control.directive.media.dotprompt"
},
{
"match": "(<<<dotprompt:section.*?>>>)",
"name": "keyword.control.directive.section.dotprompt"
}
]
},
"handlebars": {
"patterns": [
{
Expand Down