dsh-vscode-mode 0.1.36 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/shared/rpc.ts CHANGED
@@ -14,7 +14,7 @@ import type {
14
14
  } from './types.js'
15
15
  import type { MpcConfig, MpcProject, MpcProjectSaveInput, MpcServer } from './mcp.js'
16
16
  import type { CompatReport, DevFormInfo } from './compat.js'
17
- import type { LspExtInfo, LspExtUpdate, LspHover, LspLocation, LspMarketItem, LspPosition, LspServerStatus, LspSymbol } from './lsp.js'
17
+ import type { LspExtInfo, LspExtUpdate, LspHover, LspLocation, LspMarketItem, LspPosition, LspSemanticTokens, LspServerStatus, LspSymbol } from './lsp.js'
18
18
 
19
19
  /** webServer 精确路由。 */
20
20
  export const RPC_PATH = '/edrv/rpc'
@@ -143,6 +143,8 @@ export interface RpcRequestMap {
143
143
  'edrv.lsp.documentSymbol': { sessionId?: string; path: string }
144
144
  'edrv.lsp.workspaceSymbol': { sessionId?: string; query: string }
145
145
  'edrv.lsp.hover': { sessionId?: string; path: string; position: LspPosition }
146
+ 'edrv.lsp.semanticTokens': { sessionId?: string; path: string }
147
+ 'edrv.lsp.redetect': { languageId: string }
146
148
  'edrv.lsp.configGet': {}
147
149
  'edrv.lsp.configUpdate': { languageId: string; enabled?: boolean; command?: string; path?: string }
148
150
  'edrv.lsp.ext.list': {}
@@ -205,8 +207,10 @@ export interface RpcOkMap {
205
207
  'edrv.lsp.documentSymbol': { symbols: LspSymbol[] }
206
208
  'edrv.lsp.workspaceSymbol': { symbols: LspSymbol[]; truncated?: boolean }
207
209
  'edrv.lsp.hover': { hover?: LspHover }
210
+ 'edrv.lsp.semanticTokens': { tokens?: LspSemanticTokens }
211
+ 'edrv.lsp.redetect': { servers: LspServerStatus[] }
208
212
  'edrv.lsp.configGet': { config: Record<string, unknown> }
209
- 'edrv.lsp.configUpdate': { config: Record<string, unknown> }
213
+ 'edrv.lsp.configUpdate': { config: Record<string, unknown>; servers?: LspServerStatus[] }
210
214
  'edrv.lsp.ext.list': { extensions: LspExtInfo[] }
211
215
  'edrv.lsp.ext.install': { extension: LspExtInfo; updated?: boolean }
212
216
  'edrv.lsp.ext.uninstall': object