We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e480ac0 commit 6243c36Copy full SHA for 6243c36
plugins/plugin-madwizard/src/plugin.ts
@@ -14,12 +14,13 @@
14
* limitations under the License.
15
*/
16
17
+import { resolve } from "path"
18
import { Arguments, ReactResponse, Registrar, Tab } from "@kui-shell/core"
19
import { setTabReadonly } from "./util"
20
21
function withFilepath(cb: (filepath: string, tab: Tab) => Promise<ReactResponse["react"]>) {
22
return async ({ tab, argvNoOptions }: Arguments) => {
- const filepath = argvNoOptions[1]
23
+ const filepath = resolve(argvNoOptions[1])
24
setTabReadonly({ tab })
25
return {
26
react: await cb(filepath, tab),
0 commit comments