dsh-git-idea 0.2.1 → 0.2.2
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/lib/index.js +11 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2337,7 +2337,7 @@ onRpc('git/tag', function (input) {
|
|
|
2337
2337
|
})()
|
|
2338
2338
|
|
|
2339
2339
|
/* The body's own apply, plus the one thing the bridge used to own: the
|
|
2340
|
-
transport to the browser half.
|
|
2340
|
+
transport to the browser half. `webServer` is optional at the type level but
|
|
2341
2341
|
present in every web profile; without it the panel goes quiet and nothing
|
|
2342
2342
|
else changes. */
|
|
2343
2343
|
export function apply(ctx, config) {
|
|
@@ -2349,6 +2349,13 @@ export function apply(ctx, config) {
|
|
|
2349
2349
|
return plugin.apply(ctx, config)
|
|
2350
2350
|
}
|
|
2351
2351
|
|
|
2352
|
-
/*
|
|
2353
|
-
|
|
2354
|
-
|
|
2352
|
+
/* `shell` is the one service the host half cannot do without: every git command
|
|
2353
|
+
goes through it. Declared, not only read, because the executor that provides
|
|
2354
|
+
it (`bash-sandbox` / `pwsh-sandbox`) is itself parked until `subprocess`,
|
|
2355
|
+
`sandbox` and `sandboxPolicy` are ready — so at this plugin's apply time
|
|
2356
|
+
`ctx.get('shell')` can still be undefined, and the body's guard would then
|
|
2357
|
+
register no RPC at all. Cordis parks this plugin until the service exists;
|
|
2358
|
+
`dsh-tool-bash`, the product's own bash tool, declares the same one. The rest
|
|
2359
|
+
— `fs`, `timer`, `sandboxPolicy`, `sessions` — stay `ctx.get` reads with
|
|
2360
|
+
guards, because a panel without them is still a panel. */
|
|
2361
|
+
export const inject = ['shell']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-git-idea",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A git panel inside the DSH session: a repository chip in the composer, a panel with the branch tree, commit graph, working tree and commit detail, and a Settings page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|