Skip to content

Commit b597e5c

Browse files
authored
Hide backslashes in @file paths with spaces (#1390)
1 parent e97b040 commit b597e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jupyter-ai/src/chat-commands/context-commands.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class ContextCommandsProvider implements IChatCommandProvider {
111111
// for readability, both to humans & to the AI.
112112
inputModel.value = inputModel.value.replaceAll(
113113
this._regex,
114-
(command, path) => `\`${path}\``
114+
(_, path) => `\`${path.replaceAll('\\ ', ' ')}\``
115115
);
116116

117117
return;

0 commit comments

Comments
 (0)