dsh-vscode-mode 0.1.45 → 0.1.47
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/README.md +4 -0
- package/lib/client.js +256 -8
- package/lib/client.js.map +1 -1
- package/lib/index.js +590 -34
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/monaco/lsp/providers.ts +10 -1
- package/src/client/monaco/lsp/underline.ts +101 -0
- package/src/client/styles/editor.css +2 -0
- package/src/client/ui/EditorView.ts +2 -0
- package/src/client/ui/LspSettings.ts +83 -5
- package/src/lsp/client.ts +4 -0
- package/src/lsp/config.ts +5 -1
- package/src/lsp/derive.ts +96 -0
- package/src/lsp/dotnetProvision.ts +224 -0
- package/src/lsp/envRequirements.ts +92 -0
- package/src/lsp/providers.ts +198 -25
- package/src/lsp/rpc.ts +24 -1
- package/src/lsp/server.ts +58 -5
- package/src/shared/lsp.ts +75 -0
- package/src/shared/rpc.ts +5 -1
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, LspSemanticTokens, LspServerStatus, LspSymbol } from './lsp.js'
|
|
17
|
+
import type { LspEnvInstallState, 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'
|
|
@@ -145,6 +145,8 @@ export interface RpcRequestMap {
|
|
|
145
145
|
'edrv.lsp.hover': { sessionId?: string; path: string; position: LspPosition }
|
|
146
146
|
'edrv.lsp.semanticTokens': { sessionId?: string; path: string }
|
|
147
147
|
'edrv.lsp.redetect': { languageId: string }
|
|
148
|
+
'edrv.lsp.envInstall': { languageId: string; id: string }
|
|
149
|
+
'edrv.lsp.envState': {}
|
|
148
150
|
'edrv.lsp.configGet': {}
|
|
149
151
|
'edrv.lsp.configUpdate': { languageId: string; enabled?: boolean; command?: string; path?: string }
|
|
150
152
|
'edrv.lsp.ext.list': {}
|
|
@@ -209,6 +211,8 @@ export interface RpcOkMap {
|
|
|
209
211
|
'edrv.lsp.hover': { hover?: LspHover }
|
|
210
212
|
'edrv.lsp.semanticTokens': { tokens?: LspSemanticTokens }
|
|
211
213
|
'edrv.lsp.redetect': { servers: LspServerStatus[] }
|
|
214
|
+
'edrv.lsp.envInstall': { started: boolean }
|
|
215
|
+
'edrv.lsp.envState': { states: LspEnvInstallState[] }
|
|
212
216
|
'edrv.lsp.configGet': { config: Record<string, unknown> }
|
|
213
217
|
'edrv.lsp.configUpdate': { config: Record<string, unknown>; servers?: LspServerStatus[] }
|
|
214
218
|
'edrv.lsp.ext.list': { extensions: LspExtInfo[] }
|