дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
A language server marked dynamic-documents (Phoxite for PHP and Blade) is sent the other-language documents it registers a document selector for, such as a framework's YAML, XML or JSON files, alongside their own servers. Malformed selectors match no documents, relative glob restrictions are kept, and withdrawing a selector closes the documents it opened. Co-authored-by: samehelhawary <[email protected]>
71 рядки
2.2 KiB
TOML
71 рядки
2.2 KiB
TOML
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.
|
||
[[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", "index.php"]
|
||
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"
|