-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
False expression: Token end is child end 【I don't know what to call this issue]】 #48139
Comments
TypeScript/src/services/completions.ts Lines 1070 to 1077 in a4f5555
TypeScript/src/services/completions.ts Lines 995 to 1001 in a4f5555
+1 related #48215 issue Should TS Server return escaped snippet /cc @andrewbranch |
Oh good find @a-tarasyuk, I think it makes sense to do the escaping after formatting. If we really needed to, we could have the formatter ignore snippet nodes (there’s a property on the attached EmitNode IIRC) but if the simple solution of swapping the order of operations works, that’s great. |
Currently, the "\\$\\$b(): `test\\${string}` {\n $0\n}"
TypeScript/src/services/completions.ts Line 1013 in a4f5555
return { insertText: escapeSnippetText(insertText), isSnippet, importAdder, replacementSpan }; the response will be changed to "\\$\\$b(): `test\\${string}` {\n \\$0\n}"
Not sure if escaped snippets ( |
Oh, right. The |
Bug Report
🔎 Search Terms
N/A since I'm not sure how to describe it.
It suddenly appeared at a certain moment. I don't know how to trigger it. I tried to reinstall vscode, but it didn't work
🕗 Version & Regression Information
vscode version:
ts version: 4.6.2
⏯ Playground Link
In playground link, it is normal
💻 Code
🙁 Actual behavior
🙂 Expected behavior
It should prompt the $a method and the b method
The text was updated successfully, but these errors were encountered: