-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Auto complete custom element tags in TSX not working with hyphen in name #28905
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
Comments
Repo by augmenting import * as React from 'react'
declare global {
namespace JSX {
interface IntrinsicElements {
'div-2': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
}
}
}
const x = <div| Completion item for |
This is actually something I would like to see fix. If help is needed to get this going, I'm more than willing to try to create a PR; I would just need to get some direction on where to look/debug. Thanks! |
WHY ARE YOU NOT FIXING THIS MICROSOFT. The Software Engineering Code of Ethics and Professional Practice
All React's Aria tags use hyphens. When people start typing STOP BREAKING SOFTWARE ENGINEERING CODE AND IMPLEMENT ESSENTIAL FUNCTIONALITY!!! |
I think I can fix it. Let me have a try... TypeScript/src/services/completions.ts Line 2414 in f9945f5
|
This would be very helpful to fix, Jack-works! Many thanks for your efforts. |
When using tsx to develop components for custom elements (web components), auto complete does not show element names that have a
-
in it's name.I'm using https://stenciljs.com/ to create these components, and custom element names are added to an extended
InstrinsicElements
interface. Which looks like this:VSCode Version:
Version: 1.29.1 (system setup)
Commit: bc24f98b5f70467bc689abf41cc5550ca637088e
Date: 2018-11-15T19:13:36.375Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
OS: Windows 10
Steps to Reproduce:
Repo here - https://github.com/Cammisuli/tsx-completion-bug
Preview of issue discussed:
Not working

Working

After either element is added, hovering over it shows the proper type of the element.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: