Files
9f5b8e792e Add Vue Language Support (#784)
* Adds full Vue.js language support to Serena using the official @vue/language-server.
    * Integrates @vue/language-server for Vue SFC (.vue) file support
    * Manages a companion TypeScript server for cross-file references between Vue components and TypeScript modules

* Implemenet logic for tie-breaks when languages match the same number of files
(adding priority to the Language enum, deprioritising languages that are supersets of others)

---------

Co-authored-by: Michael Panchenko <michael.panchenko@oraios-ai.de>
Co-authored-by: Dominik Jain <dominik.jain@oraios-ai.de>
2025-12-09 19:03:06 +01:00

16 lines
408 B
Python

"""Vue language server tests."""
import shutil
def _test_npm_available() -> str:
"""Test if npm is available and return error reason if not."""
# Check if npm is installed
if not shutil.which("npm"):
return "npm is not installed or not in PATH"
return "" # No error, npm is available
NPM_UNAVAILABLE_REASON = _test_npm_available()
NPM_UNAVAILABLE = bool(NPM_UNAVAILABLE_REASON)