generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Labels
pending-maintainer-responseIssue is pending a response from the Kiro teamIssue is pending a response from the Kiro teampending-triage
Description
Summary
The code tool's tree-sitter-based operations (get_document_symbols, search_symbols, lookup_symbols, pattern_search, pattern_rewrite) don't support Terraform/HCL (.tf, .tfvars) files.
Steps to Reproduce
- Open a workspace containing .tf files
- Ask the assistant to get document symbols from a .tf file
- The code tool returns: "Failed to get document symbols: Unsupported file extension: tf"
Expected Behavior
Tree-sitter operations should work with .tf files. A tree-sitter HCL grammar already exists: https://github.com/tree-sitter-grammars/tree-sitter-hcl
Current Behavior
The built-in tree-sitter support is limited to 18 languages with no way to add custom grammars. The only extensibility point is custom LSP servers via lsp.json, which covers LSP operations but not tree-sitter-based ones (symbol search, pattern matching, etc.).
Suggestion
Either:
- Bundle tree-sitter-hcl as a 19th built-in grammar, or
- Provide a plugin mechanism to load custom tree-sitter grammars (similar to how lsp.json allows custom language servers)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pending-maintainer-responseIssue is pending a response from the Kiro teamIssue is pending a response from the Kiro teampending-triage