-
Notifications
You must be signed in to change notification settings - Fork 41
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
TypeScript import from suggestions no longer works after enabling lit-plugin #200
Comments
Just commenting to make sure this is linked back to the original issue opened in the VSCode repo which may have more information. microsoft/vscode#132299 Also this is specifically only happening on version 1.60+ of VSCode, everything was working fine in version 1.59 so something changed with that release. I can also confirm that this happens for normal |
Same problem happens on my vscode. version 1.60.1 |
same problem for me. just wanted to add: there is no specific extension configuration, all other extensions have been uninstalled to verify that it is really this extensions. further it is not about typescript alone. |
This is from the (closed) VS Code issue about how it can be reproduced: microsoft/vscode#132299 (comment)
With lit-plugin installed and enabled: No import is added |
The only thing I found while digging around is that this could possibly related to
|
@justinfagnani i think artur may be right. 4.x of typescript brought in an extra parameter, i suppose if we're using the user's local typescript, they could be on 4.x which would lead to the in order to update lit-analyzer to ts 4.x, though, i think we need to update web-component-analyzer first. this was the commit to typescript: |
so what do you think, will there be a fix soon? do you need to assign some responsible person for this bug? |
web-component-analyzer possibly needs updating to typescript 4.4, thats here. lit-analyzer then needs updating to pull that in, and itself upgrade typescript, and pass the new parameter through. i'll have another look in the next couple of days to see if i can get a branch ready of lit-analyzer too, but it may be blocked by the WCA PR. the most likely person to merge/release this stuff is @justinfagnani edit: looks like we may also need to upgrade typescript in ts-simple-type 🤦 as that wants to be aligned with the one we install here edit2: tracking in #206. ill update that PR once WCA and ts-simple-type are updated |
Any updates? There is a pending pull request. |
well you could also disable this extension instead... |
We're waiting on runem/web-component-analyzer#236, justin and peter are pretty busy with lit and i don't have access to merge/publish, so unfortunately i can't do much yet. if the new WCA version gets published, we can then merge #206 i think |
@43081j any way we can move this along? We're now 3 versions behind VSCode (being locked to v1.59 so this works) and I'd really like to update but I use |
Unfortunately we're still blocked until @justinfagnani can find some time to merge the related PRs and publish a new version (I don't have permission). I'll see if I can catch up with him and Peter again after Christmas and get this sorted |
Bump, another 2 months with little movement... Am I correct that this is just waiting on #206 which is in turn waiting on a deploy of web-components-analyzer? Is that where we're at? everything is in place it just needs to get released/merged? I'm genuinely confused/interested how other people work with Lit without a tool like this to help them see syntax and have completions. How do the developers of Lit itself even work with it? Or are we all just putting up with the out of date plugin on an old version of VSCode like I am...? Or maybe just putting up with manually importing? |
honestly if it' sjust waiting for a simple PR to be merged and the code is already there, i wish someone would just clone this repo and make a temporary release until this stuff is properly integrated into the release. but maybe i'm not understanding what exactly is missing. |
I removed this plugin. Really miss it. Even with this plugin working, the IDE support to Lit ecosystem is subpar compared to e.g. React or Angular. Its one of the drawbacks of using Lit |
im really sorry for the slowness here. what we are waiting on:
there's nothing difficult left to do as far as im aware. i don't have permissions to merge and publish these things myself, so im waiting on @rictic or @justinfagnani to do it. both are pretty busy people though so progress hasn't been great. i will try catch up with them again soon if i can get hold of them, and maybe we can get this stuff finally merged and sorted |
Forgot to update here last week but the updated version is now released! |
Are auto-closing features not working or are they just not implemented? By auto-closing Here's an instance of what I mean : What I get in an element context (after completion) : static styles = css`
#header {
display<caret>
}
` What I get in an html file (after completion) : <style>
#header {
display:<caret>;
}
</style> Wouldn't that be easy to implement? If it's just a matter of forwarding an attribute from the IDE settings to the plugin parser. |
interesting, we don't interfere with that stuff as far as i know so it could be some state we're losing. ill see if i can reproduce it in a test this weekend |
lit-plugin-enabled.mov
lit-plugin-disabled.mov
The text was updated successfully, but these errors were encountered: