File tree Expand file tree Collapse file tree 4 files changed +26
-20
lines changed
Expand file tree Collapse file tree 4 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @microsoft/inshellisense" ,
3- "version" : " 0.0.1-rc.27 " ,
3+ "version" : " 0.0.1-rc.28 " ,
44 "description" : " IDE style command line auto complete" ,
55 "type" : " module" ,
66 "engines" : {
5050 "color-convert" : " ^2.0.1" ,
5151 "commander" : " ^11.0.0" ,
5252 "find-process" : " ^1.4.7" ,
53- "node-pty" : " 1.2.0-beta.2 " ,
53+ "node-pty" : " 1.2.0-beta.8 " ,
5454 "strip-ansi" : " ^7.1.0" ,
5555 "toml" : " ^3.0.0" ,
5656 "uuid" : " ^11.1.0" ,
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ const arch = process.arch;
1010
1111const platformArch = `${ platform } -${ arch } ` ;
1212const packageName = `@microsoft/inshellisense-${ platformArch } ` ;
13- const binaryName = platform === "win32"
14- ? `inshellisense-${ platformArch } .exe`
15- : `inshellisense-${ platformArch } ` ;
13+ const binaryName = platform === "win32" ? `inshellisense-${ platformArch } .exe` : `inshellisense-${ platformArch } ` ;
1614
1715try {
1816 const platformPkgPath = require . resolve ( `${ packageName } /package.json` ) ;
Original file line number Diff line number Diff line change @@ -159,6 +159,13 @@ const applyBundlePatches = async (): Promise<void> => {
159159 "native locations" ,
160160 ) ;
161161
162+ // Patch to handle absolute paths correctly (skip relative prefixes for absolute paths)
163+ patchBundle (
164+ 'var dir = r + "/" + d;' ,
165+ 'var dir = path_1.isAbsolute(d) ? d : r + "/" + d;' ,
166+ "absolute path handling" ,
167+ ) ;
168+
162169 // Patch worker inline
163170 const workerCode = await bundleNodePtyWorker ( ) ;
164171 patchBundle (
You can’t perform that action at this time.
0 commit comments