Skip to content

Commit ad8d1e0

Browse files
authored
1 parent 8af267c commit ad8d1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ export class SnippetString {
10221022
defaultValue = nested.value;
10231023

10241024
} else if (typeof defaultValue === 'string') {
1025-
defaultValue = defaultValue.replace(/\$|}/g, '\\$&');
1025+
defaultValue = defaultValue.replace(/\$|}/g, '\\$&'); // CodeQL [SM02383] I do not want to escape backslashes here
10261026
}
10271027

10281028
this.value += '${';

0 commit comments

Comments
 (0)