mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 12:15:10 +00:00
* 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>
16 lines
408 B
Python
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)
|