mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
fix(bun getcompletes) add windows support and remove TODO panic (#24620)
### What does this PR do? Fixes https://linear.app/oven/issue/ENG-21509/panic-todo-in-completions ### How did you verify your code works? Test
This commit is contained in:
@@ -1053,9 +1053,6 @@ pub const RunCommand = struct {
|
||||
bun.copy(u8, path_buf[dir_slice.len..], base);
|
||||
path_buf[dir_slice.len + base.len] = 0;
|
||||
const slice = path_buf[0 .. dir_slice.len + base.len :0];
|
||||
if (Environment.isWindows) {
|
||||
@panic("TODO");
|
||||
}
|
||||
if (!(bun.sys.isExecutableFilePath(slice))) continue;
|
||||
// we need to dupe because the string pay point to a pointer that only exists in the current scope
|
||||
_ = try results.getOrPut(this_transpiler.fs.filename_store.append(@TypeOf(base), base) catch continue);
|
||||
|
||||
Reference in New Issue
Block a user