@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.
@@ -627,7 +627,8 @@
627
627
  },
628
628
  {
629
629
  "key": "ctrl+shift+r",
630
- "command": "file.openRecent"
630
+ "command": "Viewlet.openWidget",
631
+ "args": ["QuickPick", "recent"]
631
632
  },
632
633
  {
633
634
  "key": "ArrowDown",
@@ -6,7 +6,8 @@
6
6
  {
7
7
  "id": "dotenv",
8
8
  "extensions": [".env", ".env.local"],
9
- "configuration": "./languageConfiguration.json"
9
+ "configuration": "./languageConfiguration.json",
10
+ "tokenize": "src/tokenizeDotenv.js"
10
11
  }
11
12
  ]
12
13
  }
@@ -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.String
210
+ token = TokenType.JsonPropertyValueString
209
211
  state = State.InsideString
210
212
  } else if ((next = part.match(RE_DOUBLE_QUOTE))) {
211
213
  token = TokenType.Punctuation
@@ -65,6 +65,10 @@
65
65
  "name": "String",
66
66
  "foreground": "#82A2B4"
67
67
  },
68
+ {
69
+ "name": "JsonPropertyValueString",
70
+ "foreground": "#82A2B4"
71
+ },
68
72
  {
69
73
  "name": "Import",
70
74
  "foreground": "#82A2B4"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.7.0",
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.0",
24
- "@lvce-editor/pty-host": "0.7.0",
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.0",
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)