@lvce-editor/shared-process 0.0.32 → 0.0.33

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.
@@ -272,6 +272,10 @@
272
272
  "label": "Editor: Unindent",
273
273
  "aliases": ["Indent Less", "DeIndent"]
274
274
  },
275
+ {
276
+ "id": "Editor.sortLinesAscending",
277
+ "label": "Editor: Sort Lines Ascending"
278
+ },
275
279
  {
276
280
  "id": "Editor.toggleComment",
277
281
  "label": "Editor: Toggle Comment"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -11,6 +11,14 @@
11
11
  "keywords": [],
12
12
  "author": "",
13
13
  "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/lvce-editor/lvce-editor.git",
17
+ "directory": "packages/shared-process"
18
+ },
19
+ "engines": {
20
+ "node": ">=16"
21
+ },
14
22
  "dependencies": {
15
23
  "chokidar": "^3.5.3",
16
24
  "debug": "^4.3.4",
@@ -30,8 +38,8 @@
30
38
  "verror": "^1.10.1",
31
39
  "ws": "^8.8.1",
32
40
  "xdg-basedir": "^5.1.0",
33
- "@lvce-editor/pty-host": "0.0.32",
34
- "@lvce-editor/extension-host": "0.0.32"
41
+ "@lvce-editor/pty-host": "0.0.33",
42
+ "@lvce-editor/extension-host": "0.0.33"
35
43
  },
36
44
  "optionalDependencies": {
37
45
  "electron-clipboard-ex": "^1.3.3",
@@ -178,19 +178,20 @@ const getModuleId = (commandId) => {
178
178
  return MODULE_EXTENSION_MANAGEMENT
179
179
  case 'Search.search':
180
180
  return MODULE_SEARCH
181
- case 'Platform.getConfigDir':
182
181
  case 'Platform.getAppDir':
183
- case 'Platform.getHomeDir':
184
- case 'Platform.getDataDir':
185
- case 'Platform.getExtensionsPath':
186
182
  case 'Platform.getBuiltinExtensionsPath':
187
- case 'Platform.getDisabledExtensionsPath':
188
183
  case 'Platform.getCachedExtensionsPath':
189
- case 'Platform.getMarketplaceUrl':
184
+ case 'Platform.getCacheDir':
185
+ case 'Platform.getConfigDir':
186
+ case 'Platform.getDataDir':
187
+ case 'Platform.getDisabledExtensionsPath':
188
+ case 'Platform.getExtensionsPath':
189
+ case 'Platform.getHomeDir':
190
190
  case 'Platform.getLogsDir':
191
- case 'Platform.getUserSettingsPath':
191
+ case 'Platform.getMarketplaceUrl':
192
192
  case 'Platform.getRecentlyOpenedPath':
193
- case 'Platform.getCacheDir':
193
+ case 'Platform.getTestPath':
194
+ case 'Platform.getUserSettingsPath':
194
195
  case 'Platform.setEnvironmentVariables':
195
196
  return MODULE_PLATFORM
196
197
  case 'Terminal.create':
@@ -26,6 +26,7 @@ export const state = {
26
26
  const onlyExtension = await getExtensionManifests([absolutePath])
27
27
  return [...builtinExtensions.filter(isLanguageBasics), ...onlyExtension]
28
28
  }
29
+
29
30
  const installedExtensions = await getInstalledExtensions()
30
31
  return [...builtinExtensions, ...installedExtensions]
31
32
  },
@@ -16,4 +16,5 @@ export const Commands = {
16
16
  'Platform.getRecentlyOpenedPath': Platform.getRecentlyOpenedPath,
17
17
  'Platform.getCacheDir': Platform.getCacheDir,
18
18
  'Platform.setEnvironmentVariables': Platform.setEnvironmentVariables,
19
+ 'Platform.getTestPath': Platform.getTestPath,
19
20
  }
@@ -4,6 +4,7 @@ import { extensionHostPath } from '@lvce-editor/extension-host'
4
4
  import { xdgCache, xdgConfig, xdgData, xdgState } from 'xdg-basedir'
5
5
  import * as Path from '../Path/Path.js'
6
6
  import * as Root from '../Root/Root.js'
7
+ import { pathToFileURL } from 'node:url'
7
8
 
8
9
  export const getApplicationName = () => {
9
10
  return 'lvce-oss'
@@ -117,3 +118,15 @@ export const setEnvironmentVariables = (variables) => {
117
118
  process.env[key] = value
118
119
  }
119
120
  }
121
+
122
+ export const getTestPath = () => {
123
+ if (process.env.TEST_PATH) {
124
+ const testPath =
125
+ '/remote' +
126
+ pathToFileURL(Path.join(process.cwd(), process.env.TEST_PATH))
127
+ .toString()
128
+ .slice(7)
129
+ return testPath
130
+ }
131
+ return '/packages/extension-host-worker-tests'
132
+ }