TanvirOnGH / vscode-ollama-modelfile

Experimental syntax highlighting VSCode extension for Ollama Modelfiles
https://marketplace.visualstudio.com/items?itemName=Tanvir.ollama-modelfile
MIT License
0 stars 1 forks source link

Add Language Configuration for Modelfile Syntax #2

Closed e0da closed 6 months ago

e0da commented 6 months ago

Summary

This pull request introduces a new language configuration file for the Modelfile syntax and updates the package.json to reference this new file. These changes aim to enhance the editing experience for users working with Modelfile syntax in VSCode.

vscode-ollama-modelfile-comment-demo

Changes

-   Added modelfile.language-configuration.json: This new file includes configurations for comments, brackets, auto-closing pairs, and surrounding pairs specific to the Modelfile syntax.     -   Line comments are defined with #.     -   Brackets and pairs configurations are set for better code writing and editing experience. -   Updated package.json: The extension's package file has been updated to reference the new modelfile.language-configuration.json under the languages contribution section.

Impact

These changes will allow users to have a better editing experience when working with Modelfile syntax in VSCode, including features like proper comment toggling and auto-closing of brackets and quotes.

Testing

-   Manual testing was conducted to ensure that the new language configurations work as expected.\ -   Syntax highlighting and comment toggling behave correctly with the Modelfile syntax.

Additional Notes

-   The path to the configuration file is relative to the project root and placed under the syntaxes directory for organizational purposes. -   The naming convention of the configuration file follows the existing pattern and is specific to the Modelfile language for clarity.

Looking forward to your feedback and suggestions on this addition.

TanvirOnGH commented 6 months ago

Thank you for your contribution!