@lvce-editor/shared-process 0.100.6 → 0.100.7
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/LanguageServerConnection/LanguageServerConnection.js +5 -3
- package/src/parts/NormalizeLanguageServerDocumentUri/NormalizeLanguageServerDocumentUri.js +1 -4
- 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.7",
|
|
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.7",
|
|
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', 'efa4b02', 'extensions')
|
|
7
7
|
return builtinExtensionsPath
|
|
8
8
|
}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
executeMarkdownLanguageServerRequest,
|
|
7
7
|
isMarkdownLanguageServerRequest,
|
|
8
8
|
} from '../MarkdownLanguageServerRequest/MarkdownLanguageServerRequest.js'
|
|
9
|
+
import { normalizeLanguageServerDocumentUri } from '../NormalizeLanguageServerDocumentUri/NormalizeLanguageServerDocumentUri.js'
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
@@ -411,12 +412,13 @@ export class LanguageServerConnection {
|
|
|
411
412
|
if (typeof uri !== 'string' || !Array.isArray(diagnostics)) {
|
|
412
413
|
return
|
|
413
414
|
}
|
|
414
|
-
|
|
415
|
-
|
|
415
|
+
const normalizedUri = normalizeLanguageServerDocumentUri(uri)
|
|
416
|
+
this.publishedDiagnostics.set(normalizedUri, diagnostics)
|
|
417
|
+
const waiters = this.diagnosticWaiters.get(normalizedUri)
|
|
416
418
|
if (!waiters) {
|
|
417
419
|
return
|
|
418
420
|
}
|
|
419
|
-
this.diagnosticWaiters.delete(
|
|
421
|
+
this.diagnosticWaiters.delete(normalizedUri)
|
|
420
422
|
for (const waiter of waiters) {
|
|
421
423
|
waiter.resolve(diagnostics)
|
|
422
424
|
}
|
|
@@ -15,9 +15,6 @@ const normalizeRemoteFileUrl = (uri) => {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const normalizeLanguageServerDocumentUri = (uri) => {
|
|
18
|
-
|
|
19
|
-
return pathToFileURL(uri).href
|
|
20
|
-
}
|
|
21
|
-
const normalizedUri = normalizeRemoteFileUrl(uri) || uri
|
|
18
|
+
const normalizedUri = uri.startsWith('/') ? pathToFileURL(uri).href : normalizeRemoteFileUrl(uri) || uri
|
|
22
19
|
return normalizedUri.replace(windowsFileUriRegex, (_, driveLetter) => `file:///${driveLetter.toLowerCase()}%3A`)
|
|
23
20
|
}
|
|
@@ -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.7'
|
|
65
65
|
|
|
66
|
-
export const commit = '
|
|
66
|
+
export const commit = 'efa4b02'
|
|
67
67
|
|
|
68
|
-
export const date = '2026-08-
|
|
68
|
+
export const date = '2026-08-10T17:49:38.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', 'efa4b02', 'packages', 'preload', 'dist', 'index.js')
|
|
6
6
|
}
|