@henryqw/pi-open-in 3.0.2 → 3.0.3
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/README.md +1 -1
- package/extensions/open.ts +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ pi install npm:@henryqw/pi-open-in
|
|
|
12
12
|
|
|
13
13
|
| Package | Relationship | Purpose |
|
|
14
14
|
| --- | --- | --- |
|
|
15
|
-
| [`@henryqw/pi-config-store`](https://
|
|
15
|
+
| [`@henryqw/pi-config-store`](https://pi.henry.wang/extensions/pi-config-store) | Required | Owns config-home resolution and storage. |
|
|
16
16
|
|
|
17
17
|
## Use
|
|
18
18
|
|
package/extensions/open.ts
CHANGED
|
@@ -53,9 +53,7 @@ export function configuredOpenUri(path: string): string | undefined {
|
|
|
53
53
|
export default function openInExtension(pi: ExtensionAPI): void {
|
|
54
54
|
const configStore = createOpenInConfigStore();
|
|
55
55
|
|
|
56
|
-
//
|
|
57
|
-
// (handler re-reads config per invocation); per-token whitespace splitting,
|
|
58
|
-
// tokens with spaces not supported.
|
|
56
|
+
// Reload config on each call; split the command on whitespace (no quoted tokens).
|
|
59
57
|
pi.registerCommand("open", {
|
|
60
58
|
description: "Open the current path with the configured command",
|
|
61
59
|
handler: async (_args, ctx) => {
|