Update nexus wiki content
This commit is contained in:
@@ -1,39 +1,26 @@
|
||||
---
|
||||
title: "Intelephense"
|
||||
type: entity
|
||||
tags: [language-server, php]
|
||||
sources: [lsp-index-engineer]
|
||||
last_updated: 2026-04-25
|
||||
---
|
||||
|
||||
## Definition
|
||||
|
||||
Intelephense 是 PHP 语言的主流 Language Server Protocol 实现,提供高性能的 PHP 代码智能功能,包括跳转到定义、查找引用、悬停文档、符号导航等。
|
||||
|
||||
## Usage in LSP/Index Engineer
|
||||
|
||||
LSP/Index Engineer 的 graphd 系统通过以下方式使用 Intelephense:
|
||||
|
||||
```typescript
|
||||
const phpClient = new LanguageClient('php', {
|
||||
command: 'intelephense',
|
||||
args: ['--stdio'],
|
||||
rootPath: projectRoot
|
||||
});
|
||||
```
|
||||
|
||||
## Known Limitations
|
||||
|
||||
Intelephense 与 TypeScript Language Server 相比:
|
||||
- 不支持层级符号(Hierarchical Symbols)
|
||||
- PHP 的命名空间和类结构解析有差异
|
||||
- LSP/Index Engineer 在 graphd 中需要针对这些差异进行适配处理
|
||||
|
||||
## Note
|
||||
|
||||
TypeScript 和 PHP 支持是 LSP/Index Engineer 的**默认要求**,必须首先达到生产就绪状态。PHP 优先使用 Intelephense,也可选择 phpactor 作为替代。
|
||||
|
||||
## Aliases
|
||||
- intelephense
|
||||
- PHP Language Server
|
||||
- PHP LSP
|
||||
---
|
||||
title: "Intelephense"
|
||||
type: entity
|
||||
entity_type: tool
|
||||
tags:
|
||||
- LSP
|
||||
- PHP
|
||||
- language-server
|
||||
sources:
|
||||
- lsp-index-engineer.md
|
||||
last_updated: 2026-04-29
|
||||
---
|
||||
|
||||
## Overview
|
||||
Intelephense 是 PHP 语言的 LSP 实现,graphd 默认要求生产就绪的语言服务器之一,提供 PHP 代码的跳转定义、引用查找、悬停文档和自动完成功能。
|
||||
|
||||
## Details
|
||||
- **Command**: `intelephense --stdio`
|
||||
- **Protocol**: LSP 3.17
|
||||
- **Role in graphd**: 默认必须支持的生产就绪语言服务器
|
||||
- **Note**: TypeScript LSP 支持层级符号,但 PHP Intelephense 不支持——LSP/Index Engineer 强制要求"永远验证假设",必须检查服务器能力响应而非假设支持
|
||||
|
||||
## Connections
|
||||
- [[Intelephense]] ← is_coordinated_by ← [[LSPOrchestrator]]
|
||||
- [[Intelephense]] ← provides_semantics_to ← [[SemanticCodeGraph]]
|
||||
- [[Intelephense]] ← part_of ← [[GraphDaemon]]
|
||||
|
||||
Reference in New Issue
Block a user