workspace: Add trailing `/` to directories on completion when using `OpenPathPrompt` (#25430)

Closes #25045

With the setting `"use_system_path_prompts": false`, previously, if the
completion target was a directory, no separator would be added after it,
requiring us to manually append a `/` or `\`. Now, if the completion
target is a directory, a `/` or `\` will be automatically added. On
Windows, both `/` and `\` are considered valid path separators.



https://github.com/user-attachments/assets/0594ce27-9693-4a49-ae0e-3ed29f62526a



Release Notes:

- N/A
11b79d0ab9张小白 committed on 3/4/2025, 6:01:08 AM· committed by GitHubparent8c4da9f
8 files changedLine totals unavailable