@lvce-editor/shared-process 0.0.26 → 0.0.27
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.
|
@@ -339,6 +339,11 @@
|
|
|
339
339
|
"command": "Explorer.removeDirent",
|
|
340
340
|
"when": "focus.Explorer"
|
|
341
341
|
},
|
|
342
|
+
{
|
|
343
|
+
"key": "Escape",
|
|
344
|
+
"command": "Explorer.focusNone",
|
|
345
|
+
"when": "focus.Explorer"
|
|
346
|
+
},
|
|
342
347
|
{
|
|
343
348
|
"key": "Space",
|
|
344
349
|
"command": "Explorer.handleClickCurrent",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/shared-process",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"verror": "^1.10.1",
|
|
32
32
|
"ws": "^8.8.0",
|
|
33
33
|
"xdg-basedir": "^5.1.0",
|
|
34
|
-
"@lvce-editor/pty-host": "0.0.
|
|
35
|
-
"@lvce-editor/extension-host": "0.0.
|
|
34
|
+
"@lvce-editor/pty-host": "0.0.27",
|
|
35
|
+
"@lvce-editor/extension-host": "0.0.27"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
38
|
"electron-clipboard-ex": "^1.3.3",
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { join } from 'node:path'
|
|
2
1
|
import VError from 'verror'
|
|
3
2
|
import * as JsonFile from '../JsonFile/JsonFile.js'
|
|
4
3
|
import * as Platform from '../Platform/Platform.js'
|
|
5
4
|
|
|
6
|
-
const CACHED_SETTINGS_PATH = '~/.cache/vscode/cachedSettings.json'
|
|
7
5
|
// TODO need jsonc parser for settings with comments
|
|
8
6
|
|
|
9
7
|
export const getUserPreferences = async () => {
|
package/src/parts/Stats/Stats.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
// parse ps output based on vscode https://github.com/microsoft/vscode/blob/c0769274fa136b45799edeccc0d0a2f645b75caf/src/vs/base/node/ps.ts (License MIT)
|
|
2
|
+
|
|
1
3
|
import * as Exec from '../Exec/Exec.js'
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
const PID_CMD =
|
|
6
|
+
/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/
|
|
4
7
|
|
|
5
8
|
const parsePsOutputLine = (line) => {
|
|
6
|
-
const PID_CMD =
|
|
7
|
-
/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/
|
|
8
9
|
const matches = PID_CMD.exec(line.trim())
|
|
9
10
|
if (matches && matches.length === 6) {
|
|
10
11
|
return {
|