@lvce-editor/shared-process 0.1.0 → 0.1.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"verror": "^1.10.1",
|
|
39
39
|
"ws": "^8.8.1",
|
|
40
40
|
"xdg-basedir": "^5.1.0",
|
|
41
|
-
"@lvce-editor/pty-host": "0.1.
|
|
42
|
-
"@lvce-editor/extension-host": "0.1.
|
|
41
|
+
"@lvce-editor/pty-host": "0.1.1",
|
|
42
|
+
"@lvce-editor/extension-host": "0.1.1"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"electron-clipboard-ex": "^1.3.3",
|
|
@@ -8,6 +8,7 @@ import * as ReadJson from '../JsonFile/JsonFile.js'
|
|
|
8
8
|
import * as Path from '../Path/Path.js'
|
|
9
9
|
import * as Platform from '../Platform/Platform.js'
|
|
10
10
|
import * as Queue from '../Queue/Queue.js'
|
|
11
|
+
import * as ExtensionManifestStatus from '../ExtensionManifestStatus/ExtensionManifestStatus.js'
|
|
11
12
|
|
|
12
13
|
const isLanguageBasics = (extension) => {
|
|
13
14
|
if (extension && extension.id) {
|
|
@@ -203,13 +204,13 @@ const getExtensionManifest = async (path) => {
|
|
|
203
204
|
return {
|
|
204
205
|
...json,
|
|
205
206
|
path,
|
|
206
|
-
status:
|
|
207
|
+
status: ExtensionManifestStatus.Resolved,
|
|
207
208
|
}
|
|
208
209
|
} catch (error) {
|
|
209
210
|
const id = inferExtensionId(path)
|
|
210
211
|
return {
|
|
211
212
|
path,
|
|
212
|
-
status:
|
|
213
|
+
status: ExtensionManifestStatus.Rejected,
|
|
213
214
|
reason: new VError(
|
|
214
215
|
error,
|
|
215
216
|
`Failed to load extension "${id}": Failed to load extension manifest`
|