@lvce-editor/shared-process 0.105.10 → 0.105.12

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.
@@ -1,4 +1,6 @@
1
1
  {
2
+ "breadcrumbs.enabled": false,
3
+
2
4
  "completions.loadingDelay": 1200,
3
5
 
4
6
  "development.watchColorTheme": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.105.10",
3
+ "version": "0.105.12",
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.105.10",
21
+ "@lvce-editor/extension-host-helper-process": "0.105.12",
22
22
  "@lvce-editor/ipc": "16.12.0",
23
23
  "@lvce-editor/json-rpc": "8.7.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', '2301a17', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'fc75bc0', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -9,6 +9,7 @@ export const Commands = {
9
9
  diagnostic: LanguageServer.diagnostic,
10
10
  dispose: LanguageServer.dispose,
11
11
  disposeAll: LanguageServer.disposeAll,
12
+ documentSymbols: LanguageServer.documentSymbols,
12
13
  format: LanguageServer.format,
13
14
  references: LanguageServer.references,
14
15
  }
@@ -31,6 +31,8 @@ import { normalizeLanguageServerDocumentUri } from '../NormalizeLanguageServerDo
31
31
 
32
32
 
33
33
 
34
+
35
+
34
36
 
35
37
 
36
38
 
@@ -122,6 +124,16 @@ export const definition = async ({ argv, extensionId, id, offset, rootUri, textD
122
124
  return connection.definition(normalizedDocument, offset)
123
125
  }
124
126
 
127
+ export const documentSymbols = async ({ argv, extensionId, id, rootUri, textDocument, uri } ) => {
128
+ const normalizedDocument = {
129
+ ...textDocument,
130
+ uri: normalizeLanguageServerDocumentUri(textDocument.uri),
131
+ }
132
+ const normalizedRootUri = rootUri ? normalizeLanguageServerDocumentUri(rootUri) : getRootUri(normalizedDocument.uri)
133
+ const connection = getConnection(`${id}:${normalizedRootUri}`, extensionId, uri, argv, normalizedRootUri)
134
+ return connection.documentSymbols(normalizedDocument)
135
+ }
136
+
125
137
  export const format = async ({ argv, extensionId, id, rootUri, textDocument, uri } ) => {
126
138
  const normalizedDocument = {
127
139
  ...textDocument,
@@ -34,6 +34,7 @@ import { normalizeLanguageServerDocumentUri } from '../NormalizeLanguageServerDo
34
34
 
35
35
 
36
36
 
37
+
37
38
 
38
39
 
39
40
 
@@ -170,6 +171,7 @@ export class LanguageServerConnection {
170
171
  stderr = ''
171
172
  supportsCodeActions = false
172
173
  supportsDocumentFormatting = false
174
+ supportsDocumentSymbols = false
173
175
  supportsPullDiagnostics = false
174
176
  supportsReferences = false
175
177
 
@@ -294,6 +296,20 @@ export class LanguageServerConnection {
294
296
  })
295
297
  }
296
298
 
299
+ async documentSymbols(textDocument) {
300
+ await this.ready
301
+ if (!this.supportsDocumentSymbols) {
302
+ return []
303
+ }
304
+ this.syncDocument(textDocument)
305
+ const result = await this.sendRequest('textDocument/documentSymbol', {
306
+ textDocument: {
307
+ uri: textDocument.uri,
308
+ },
309
+ })
310
+ return Array.isArray(result) ? result : []
311
+ }
312
+
297
313
  async format(textDocument) {
298
314
  await this.ready
299
315
  if (!this.supportsDocumentFormatting) {
@@ -396,6 +412,10 @@ export class LanguageServerConnection {
396
412
  dynamicRegistration: false,
397
413
  relatedDocumentSupport: false,
398
414
  },
415
+ documentSymbol: {
416
+ dynamicRegistration: false,
417
+ hierarchicalDocumentSymbolSupport: true,
418
+ },
399
419
  publishDiagnostics: {
400
420
  relatedInformation: true,
401
421
  },
@@ -429,6 +449,7 @@ export class LanguageServerConnection {
429
449
  }))
430
450
  this.supportsCodeActions = Boolean(result?.capabilities?.codeActionProvider)
431
451
  this.supportsDocumentFormatting = Boolean(result?.capabilities?.documentFormattingProvider)
452
+ this.supportsDocumentSymbols = Boolean(result?.capabilities?.documentSymbolProvider)
432
453
  this.supportsPullDiagnostics = Boolean(result?.capabilities?.diagnosticProvider)
433
454
  this.supportsReferences = Boolean(result?.capabilities?.referencesProvider)
434
455
  this.sendNotification('initialized', {})
@@ -219,6 +219,7 @@ export const getModuleId = (commandId) => {
219
219
  case 'LanguageServer.diagnostic':
220
220
  case 'LanguageServer.dispose':
221
221
  case 'LanguageServer.disposeAll':
222
+ case 'LanguageServer.documentSymbols':
222
223
  case 'LanguageServer.format':
223
224
  case 'LanguageServer.references':
224
225
  return ModuleId.LanguageServer
@@ -61,11 +61,11 @@ export const getSetupName = () => {
61
61
  return 'Lvce-Setup'
62
62
  }
63
63
 
64
- export const version = '0.105.10'
64
+ export const version = '0.105.12'
65
65
 
66
- export const commit = '2301a17'
66
+ export const commit = 'fc75bc0'
67
67
 
68
- export const date = '2026-08-20T22:27:27.000Z'
68
+ export const date = '2026-08-20T23:06:42.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', '2301a17', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', 'fc75bc0', 'packages', 'preload', 'dist', 'index.js')
6
6
  }
@@ -1165,6 +1165,7 @@
1165
1165
  "hotReloadLoadContent": { "name": "Preview.loadContent", "parameters": [{ "source": "state", "name": "uid" }, { "source": "argument", "name": "savedState" }] },
1166
1166
  "diff": { "name": "Preview.diff2", "parameters": [{ "source": "state", "name": "uid" }] },
1167
1167
  "render": { "name": "Preview.render2", "parameters": [{ "source": "state", "name": "uid" }, { "source": "result", "name": "diff" }] },
1168
+ "dispose": { "name": "Preview.dispose", "parameters": [{ "source": "state", "name": "uid" }] },
1168
1169
  "resize": { "name": "Preview.resize", "parameters": [{ "source": "state", "name": "uid" }, { "source": "argument", "name": "dimensions" }] },
1169
1170
  "saveState": { "name": "Preview.saveState", "parameters": [{ "source": "state", "name": "uid" }] },
1170
1171
  "terminate": { "name": "Preview.terminate", "parameters": [] },