mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-27 21:09:31 +01:00
* Fix lone json surrogate breaking requests * Sanitize lone surrogates in JSON property names too Repair the serialized JSON instead of using a `JSON.stringify` replacer, which can only rewrite values, and reject top level values that have no JSON representation instead of tripping over an `undefined` result. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Avoid quadratic backtracking when sanitizing surrogates Matching `\\+u...` backtracks quadratically over a run of backslashes, which is reachable from tool output: 32k backslashes took two seconds. Match every escape instead so escaped backslashes are consumed whole, which keeps parity handling correct without rescanning, and restore the cheap pre-check that skips the scan for bodies with no escape at all. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Ignore a symlinked node_modules A trailing slash restricts a pattern to directories, and git treats a symlink as a blob rather than a directory, so `node_modules/` let a symlinked node_modules show up as untracked and be swept into a commit by `git add -A`. Drop the slash, matching `build/node_modules` on the line below and the five extension .gitignore files that already do. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>