@lvce-editor/shared-process 0.100.9 → 0.100.11
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/package.json +2 -2
- package/src/parts/BuiltinExtensionsPath/BuiltinExtensionsPath.js +1 -1
- package/src/parts/LanguageServer/LanguageServer.ipc.js +1 -0
- package/src/parts/LanguageServer/LanguageServer.js +12 -0
- package/src/parts/LanguageServerConnection/LanguageServerConnection.js +12 -0
- package/src/parts/ModuleMap/ModuleMap.js +1 -0
- package/src/parts/Platform/Platform.js +3 -3
- package/src/parts/PreloadUrl/PreloadUrl.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.100.
|
|
3
|
+
"version": "0.100.11",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lvce-editor/assert": "1.9.0",
|
|
21
|
-
"@lvce-editor/extension-host-helper-process": "0.100.
|
|
21
|
+
"@lvce-editor/extension-host-helper-process": "0.100.11",
|
|
22
22
|
"@lvce-editor/ipc": "16.10.0",
|
|
23
23
|
"@lvce-editor/json-rpc": "8.6.0",
|
|
24
24
|
"@lvce-editor/jsonc-parser": "1.5.0",
|
|
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
|
|
|
3
3
|
|
|
4
4
|
export const getBuiltinExtensionsPath = () => {
|
|
5
5
|
const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
|
|
6
|
-
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '
|
|
6
|
+
const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '49d5626', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -25,6 +25,8 @@ import { normalizeLanguageServerDocumentUri } from '../NormalizeLanguageServerDo
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
|
|
29
|
+
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
|
|
@@ -83,6 +85,16 @@ export const diagnostic = async ({ argv, id, rootUri, textDocument, uri }
|
|
|
83
85
|
return connection.diagnostic(normalizedDocument)
|
|
84
86
|
}
|
|
85
87
|
|
|
88
|
+
export const definition = async ({ argv, id, offset, rootUri, textDocument, uri } ) => {
|
|
89
|
+
const normalizedDocument = {
|
|
90
|
+
...textDocument,
|
|
91
|
+
uri: normalizeLanguageServerDocumentUri(textDocument.uri),
|
|
92
|
+
}
|
|
93
|
+
const normalizedRootUri = rootUri ? normalizeLanguageServerDocumentUri(rootUri) : getRootUri(normalizedDocument.uri)
|
|
94
|
+
const connection = getConnection(`${id}:${normalizedRootUri}`, uri, argv, normalizedRootUri)
|
|
95
|
+
return connection.definition(normalizedDocument, offset)
|
|
96
|
+
}
|
|
97
|
+
|
|
86
98
|
export const disposeAll = () => {
|
|
87
99
|
for (const state of connections.values()) {
|
|
88
100
|
state.connection.dispose()
|
|
@@ -220,6 +220,18 @@ export class LanguageServerConnection {
|
|
|
220
220
|
return diagnostics
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
async definition(textDocument, offset) {
|
|
224
|
+
await this.ready
|
|
225
|
+
this.configureMarkdown(textDocument.languageId)
|
|
226
|
+
this.syncDocument(textDocument)
|
|
227
|
+
return this.sendRequest('textDocument/definition', {
|
|
228
|
+
position: getPosition(textDocument.text, offset),
|
|
229
|
+
textDocument: {
|
|
230
|
+
uri: textDocument.uri,
|
|
231
|
+
},
|
|
232
|
+
})
|
|
233
|
+
}
|
|
234
|
+
|
|
223
235
|
configureMarkdown(languageId) {
|
|
224
236
|
if (languageId !== 'markdown' || this.markdownConfigured) {
|
|
225
237
|
return
|
|
@@ -212,6 +212,7 @@ export const getModuleId = (commandId) => {
|
|
|
212
212
|
case 'IsAutoUpdateSupported.isAutoUpdateSupported':
|
|
213
213
|
return ModuleId.IsAutoUpdateSupported
|
|
214
214
|
case 'LanguageServer.complete':
|
|
215
|
+
case 'LanguageServer.definition':
|
|
215
216
|
case 'LanguageServer.diagnostic':
|
|
216
217
|
return ModuleId.LanguageServer
|
|
217
218
|
case 'ListProcessesWithMemoryUsage.listProcessesWithMemoryUsage':
|
|
@@ -61,11 +61,11 @@ export const getSetupName = () => {
|
|
|
61
61
|
return 'Lvce-Setup'
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export const version = '0.100.
|
|
64
|
+
export const version = '0.100.11'
|
|
65
65
|
|
|
66
|
-
export const commit = '
|
|
66
|
+
export const commit = '49d5626'
|
|
67
67
|
|
|
68
|
-
export const date = '2026-08-
|
|
68
|
+
export const date = '2026-08-10T22:59:17.000Z'
|
|
69
69
|
|
|
70
70
|
export const getVersion = () => {
|
|
71
71
|
return version
|
|
@@ -2,5 +2,5 @@ import { join } from 'node:path'
|
|
|
2
2
|
import * as Root from '../Root/Root.js'
|
|
3
3
|
|
|
4
4
|
export const getPreloadUrl = () => {
|
|
5
|
-
return join(Root.root, 'static', '
|
|
5
|
+
return join(Root.root, 'static', '49d5626', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|