id = "blade" name = "Blade" # Laravel's views: `welcome.blade.php`. The compound extension wins over `php`. extensions = ["blade.php"] block-comment = ["{{--", "--}}"] indent = { tab-size = 4, insert-spaces = true } # The frontend's own mode (`src/editor/core/cm/blade.ts`): HTML, with directives, # echoes and the PHP inside them highlighted. ui-mode = "Blade" # The PHP servers, in `php.toml`'s order, so a view is served by the server that # serves the project's PHP. Phoxite knows the file as a Blade view; the others # are told `php`, as they were before Blade was a language of its own. PHPantom # serves the view as Blade all the same: it goes by the `.blade.php` extension. [[language-servers]] name = "intelephense" command = "intelephense" args = ["--stdio"] root-markers = ["composer.json", ".phpactor.json", "index.php"] install-hint = "npm i -g intelephense" resync-on-configuration = true language-id = "php" [[language-servers]] name = "phpantom" ignored-progress-token-prefixes = ["find_references", "goto_implementation"] fallback = true command = "phpantom_lsp" args = [] root-markers = ["composer.json", ".phpantom.toml", "index.php"] replaces = ["laravel-lsp"] install-hint = "Install PHPantom in Settings › Languages & Frameworks › Language Servers" language-id = "php" [[language-servers]] name = "phpactor" fallback = true command = "phpactor" args = ["language-server"] root-markers = ["composer.json", ".phpactor.json"] install-hint = "Install Phpactor in Settings › Languages & Frameworks › Language Servers (it runs on PHP)" language-id = "php" # Completion, hover, signature help, navigation and problems inside the view. [[language-servers]] name = "phoxite" dynamic-documents = true fallback = true command = "phoxite-lsp" args = [] root-markers = ["composer.json", "artisan", "index.php"] replaces = ["laravel-lsp"] install-hint = "Install Phoxite in Settings › Languages & Frameworks › Language Servers" [[language-servers]] name = "devsense-php-ls" fallback = true command = "devsense-php-ls" args = [] root-markers = ["composer.json", "index.php"] replaces = ["laravel-lsp"] install-hint = "npm i -g devsense-php-ls" language-id = "php" [[language-servers]] name = "laravel-lsp" command = "laravel-lsp" args = [] root-markers = ["artisan"] require-root-marker = true install-hint = "composer global require laravel/lsp" language-id = "php"