-
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
Jsx Attribute Completion not always works correct when tag is like <Form.Item>
#47280
Comments
Possibly related to #47090 |
@jakebailey might or might not be fixed by the PR you have up |
@fatcerberus There are distinct settings for JSX and TSX; you need to set it to "none" in both to fully disable it across both file types. Look for However, this should have been fixed in 4.5.4 (even though I didn't consider dotted names when I wrote the fix). When I go to github.dev, I can see that they are using TS 4.5.0, which definitely predates the fix. My desktop install of VS Code 1.63.2 includes 4.5.4, and doesn't break. @fatcerberus Can you open the command palette and choose "Select TypeScript Version" to see what you are running? Are you using github.dev, or is this a normal install? |
@jakebailey I’m not the OP; I just pointed out the related issue. 😅 |
@fatcerberus apologies, I clearly didn't scroll up enough. I looked more closely at vscode.dev/github.dev; although the menu says 4.5.0 (vscode.dev doesn't even let me see it), the tsserver file is actually 4.5.4, so there must be some UI bug. That of course unfortunately means my fix is not complete. Sigh. |
hello @jakebailey , I tried set "typescript.preferences.jsxAttributeCompletionStyle" to "none", and it works. |
I've updated #47096 to also handle these types of tag names. |
Bug Report
🔎 Search Terms
Jsx Attribute Completion
🕗 Version & Regression Information
⏯ Playground Link
No playground.
Please paste the code to https://github.dev/. (create a
a.tsx
file first)Or use the current version vscode(1.63.2)
💻 Code
🙁 Actual behavior
Type code
<Form.It
, select theItem
in completion list, press TAB to complete.The code become
<Form.Item={}
.Even set
Jsx Attribute Completion Style
tonone
, not stop the wrong completion.🙂 Expected behavior
When you type
<Form.It
press tab, and complete the code to<Form.Item
The
<Form2.Item>
completion is correct.The text was updated successfully, but these errors were encountered: