Issue Description(Feature)
The current extension only supports JavaScript and TypeScript; it does not support other coding languages: HTML, CSS, Python (#), Java (//), C (/* */), and more.
Describe the solution you'd like
Extend the extension to detect and support comment syntax across multiple programming languages (e.g., HTML, CSS, Python #, Java //, C /* ... */, and more).
- Use the fileType provided by VS Code’s languageId to identify the active file’s language.
- Based on the detected language, route the file through its appropriate parser.
- For JavaScript/TypeScript, continue using Babel + AST for accurate parsing.
- For other languages, plug in language-specific parsing strategies (e.g., Tree-sitter, PyAst for Python, etc.).
- Each parser should expose a unified interface so the rest of the pipeline (masking, unmasking, translation) doesn’t need to change drastically.
- Define comment patterns for each supported language (e.g., //, #, , /* */) and ensure extracted comments respect that language’s rules.
- Ensure the translation prompt is updated dynamically per language so that formatting is preserved (e.g., Python comments always begin with #, HTML with ).
- Maintain a per-language glossary of reserved keywords, identifiers, and symbols that must never be translated.
- Integrate with docSymbolsController to generate language-aware symbol sets (e.g., Python functions, Java classes, HTML tags).
Make the architecture extensible so new languages can be added by simply contributing: a parser integration, a comment syntax definition, and a glossary file
Issue Description(Feature)
The current extension only supports JavaScript and TypeScript; it does not support other coding languages: HTML, CSS, Python (#), Java (//), C (/* */), and more.
Describe the solution you'd like
Extend the extension to detect and support comment syntax across multiple programming languages (e.g., HTML, CSS, Python #, Java //, C /* ... */, and more).
Make the architecture extensible so new languages can be added by simply contributing: a parser integration, a comment syntax definition, and a glossary file