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:
Ciro Spaciari
2025-11-12 12:41:47 -08:00
committed by GitHub
parent 8912957aa5
commit ab32a2fc4a
4 changed files with 27 additions and 27 deletions

View File

@@ -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);