@lvce-editor/shared-process 0.19.4 → 0.20.0
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.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/code-frame": "^7.22.13",
|
|
21
|
-
"@lvce-editor/extension-host": "0.
|
|
22
|
-
"@lvce-editor/extension-host-helper-process": "0.
|
|
21
|
+
"@lvce-editor/extension-host": "0.20.0",
|
|
22
|
+
"@lvce-editor/extension-host-helper-process": "0.20.0",
|
|
23
23
|
"@lvce-editor/jsonc-parser": "^1.1.0",
|
|
24
|
-
"@lvce-editor/pretty-error": "^1.2.
|
|
25
|
-
"@lvce-editor/pty-host": "0.
|
|
24
|
+
"@lvce-editor/pretty-error": "^1.2.2",
|
|
25
|
+
"@lvce-editor/pty-host": "0.20.0",
|
|
26
26
|
"@lvce-editor/verror": "^1.1.1",
|
|
27
27
|
"debug": "^4.3.4",
|
|
28
28
|
"execa": "^8.0.1",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"tail": "^2.2.6",
|
|
44
44
|
"tmp-promise": "^3.0.3",
|
|
45
45
|
"trash": "^8.1.1",
|
|
46
|
-
"@lvce-editor/ripgrep": "^1.0.
|
|
46
|
+
"@lvce-editor/ripgrep": "^1.0.1"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/parts/Exit/Exit.js
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
// TODO rename file to languageConfiguration.js
|
|
2
2
|
import { join } from 'node:path'
|
|
3
|
-
import
|
|
3
|
+
import * as GetRemoteUrl from '../GetRemoteUrl/GetRemoteUrl.js'
|
|
4
4
|
import * as JsonFile from '../JsonFile/JsonFile.js'
|
|
5
5
|
import { VError } from '../VError/VError.js'
|
|
6
6
|
import * as ExtensionManagement from './ExtensionManagement.js'
|
|
7
7
|
|
|
8
|
-
const getExtensionLanguages = (extension) => {
|
|
9
|
-
if (!extension.languages) {
|
|
10
|
-
return []
|
|
11
|
-
}
|
|
12
|
-
return extension.languages.map((language) => ({}))
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const toRemoteUrl = (path) => {
|
|
16
|
-
const url = pathToFileURL(path).toString().slice(8)
|
|
17
|
-
return `/remote/${url}`
|
|
18
|
-
}
|
|
19
|
-
|
|
20
8
|
const getLanguagesFromExtension = (extension) => {
|
|
21
9
|
// TODO what if extension is null? should not crash process, handle error gracefully
|
|
22
10
|
if (!extension.languages) {
|
|
@@ -36,7 +24,7 @@ const getLanguagesFromExtension = (extension) => {
|
|
|
36
24
|
return {
|
|
37
25
|
...language,
|
|
38
26
|
extensionPath,
|
|
39
|
-
tokenize:
|
|
27
|
+
tokenize: GetRemoteUrl.getRemoteUrl(join(extensionPath, language.tokenize)),
|
|
40
28
|
}
|
|
41
29
|
}
|
|
42
30
|
return language
|
|
@@ -51,11 +51,11 @@ export const getSetupName = () => {
|
|
|
51
51
|
return 'Lvce-Setup'
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export const version = '0.
|
|
54
|
+
export const version = '0.20.0'
|
|
55
55
|
|
|
56
|
-
export const commit = '
|
|
56
|
+
export const commit = 'bbd20b7'
|
|
57
57
|
|
|
58
|
-
export const date = '2023-11-
|
|
58
|
+
export const date = '2023-11-05T11:12:15.000Z'
|
|
59
59
|
|
|
60
60
|
export const getVersion = () => {
|
|
61
61
|
return version
|