@lvce-editor/shared-process 0.7.0 → 0.7.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/config/defaultKeyBindings.json +2 -1
- package/extensions/builtin.language-basics-dotenv/extension.json +2 -1
- package/extensions/builtin.language-basics-json/src/tokenizeJson.js +3 -1
- package/extensions/builtin.theme-slime/color-theme.json +4 -0
- package/package.json +4 -4
- package/src/parts/ExtensionLink/ExtensionLink.js +8 -0
|
@@ -47,6 +47,7 @@ export const TokenType = {
|
|
|
47
47
|
Error: 18,
|
|
48
48
|
Unknown: 19,
|
|
49
49
|
Text: 20,
|
|
50
|
+
JsonPropertyValueString: 21,
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
export const TokenMap = {
|
|
@@ -70,6 +71,7 @@ export const TokenMap = {
|
|
|
70
71
|
[TokenType.NewLine]: 'NewLine',
|
|
71
72
|
[TokenType.Text]: 'Text',
|
|
72
73
|
[TokenType.Numeric]: 'Numeric',
|
|
74
|
+
[TokenType.JsonPropertyValueString]: 'JsonPropertyValueString',
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
const RE_SELECTOR = /^[\.a-zA-Z\d\-\:>]+/
|
|
@@ -205,7 +207,7 @@ export const tokenizeLine = (line, lineState) => {
|
|
|
205
207
|
break
|
|
206
208
|
case State.InsideString:
|
|
207
209
|
if ((next = part.match(RE_STRING_DOUBLE_QUOTE_CONTENT))) {
|
|
208
|
-
token = TokenType.
|
|
210
|
+
token = TokenType.JsonPropertyValueString
|
|
209
211
|
state = State.InsideString
|
|
210
212
|
} else if ((next = part.match(RE_DOUBLE_QUOTE))) {
|
|
211
213
|
token = TokenType.Punctuation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"node": ">=16"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@lvce-editor/extension-host": "0.7.
|
|
24
|
-
"@lvce-editor/pty-host": "0.7.
|
|
23
|
+
"@lvce-editor/extension-host": "0.7.1",
|
|
24
|
+
"@lvce-editor/pty-host": "0.7.1",
|
|
25
25
|
"chokidar": "^3.5.3",
|
|
26
26
|
"debug": "^4.3.4",
|
|
27
27
|
"execa": "^6.1.0",
|
|
28
28
|
"exit-hook": "^3.1.0",
|
|
29
|
-
"got": "^12.5.
|
|
29
|
+
"got": "^12.5.1",
|
|
30
30
|
"is-object": "^1.0.2",
|
|
31
31
|
"json-parse-even-better-errors": "^2.3.1",
|
|
32
32
|
"jsonc-parser": "^3.2.0",
|
|
@@ -7,6 +7,10 @@ import * as SymLink from '../SymLink/SymLink.js'
|
|
|
7
7
|
|
|
8
8
|
const linkFallBack = async (path) => {
|
|
9
9
|
try {
|
|
10
|
+
const manifestPath = Path.join(path, 'extension.json')
|
|
11
|
+
if (!(await FileSystem.exists(manifestPath))) {
|
|
12
|
+
throw new Error('no extension manifest found')
|
|
13
|
+
}
|
|
10
14
|
const extensionsPath = Platform.getExtensionsPath()
|
|
11
15
|
const baseName = Path.basename(path)
|
|
12
16
|
const to = Path.join(extensionsPath, baseName)
|
|
@@ -19,6 +23,10 @@ const linkFallBack = async (path) => {
|
|
|
19
23
|
|
|
20
24
|
export const link = async (path) => {
|
|
21
25
|
try {
|
|
26
|
+
const manifestPath = Path.join(path, 'extension.json')
|
|
27
|
+
if (!(await FileSystem.exists(manifestPath))) {
|
|
28
|
+
throw new Error('no extension manifest found')
|
|
29
|
+
}
|
|
22
30
|
const extensionsPath = Platform.getExtensionsPath()
|
|
23
31
|
const baseName = Path.basename(path)
|
|
24
32
|
const to = Path.join(extensionsPath, baseName)
|