Fix more LS escaping related bugs #65665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Jake Bailey (jakebailey)
merged 26 commits into
microsoft:main
from
jakebailey:fix-ls-edit-escaping
Dec 4, 2026
+2,381
−135
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
5f36aed
Add tests for text written into source by the language service
jakebailey 439578a
Share string quoting helpers in language service edits
jakebailey 52b6782
Escape module specifiers in file rename edits
jakebailey 5f25b61
Escape comment terminators in strings written by the language service
jakebailey 3209675
Omit unsafe text from JSDoc @param completions
jakebailey 7a6297c
Skip snippet escaping in non-snippet completions
jakebailey 36b4ce2
Escape backslashes in snippet text
jakebailey b7d08bb
Escape new names in string literal rename edits
jakebailey c61395f
Quote non-identifier mapped property names in member fixes
jakebailey 6f51076
Use element access for literal names in binding extraction
jakebailey 810baef
Preserve string import names when promoting type-only imports
jakebailey 30d2d78
Use JSX intrinsic tag rules for auto-import names
jakebailey 74e9f8d
Escape line separators in quoted completion text
jakebailey 05d2835
Quote non-identifier names in aliased rename edits
jakebailey 28c85b8
Use JSON escapes in tsconfig rename edits
jakebailey 44b70e2
Switch quotes for reference paths containing a quote
jakebailey 734efd1
Omit unsafe nested property names from JSDoc @param completions
jakebailey 4ea58b7
Quote numeric property names renamed to non-identifiers
jakebailey 197fdcf
Quote both names when aliasing string-named re-exports
jakebailey 6be487d
Write renamed JSX attribute strings without escapes
jakebailey 78ae0e0
Quote non-identifier names in renamed namespace exports
jakebailey a6263c4
Quote non-identifier names of declarationless members in member fixes
jakebailey 6ab2511
Omit snippet syntax from import statement filter text
jakebailey f203b03
Skip string export names when naming types through import types
jakebailey aaf2505
Skip string export names when indexing module containers
jakebailey efcf518
Skip string export names when qualifying types through namespace imports
jakebailey File filter
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.