-
Notifications
You must be signed in to change notification settings - Fork 205
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
Autocomplete in html files? #1355
Comments
This is a duplicate of #1278. This pkg focuses mainly on ts files. I don't think this would be a typescript feature? I've proposed, in that linked issue, to have atom-typescript to open an API so we can have plugins into the IDE. And hopefully with enabling the TS language service plugin and a package that can utilize this atom-typescript plugin would make this work. |
or maybe have ....hmmm maybe that would be an easy way... |
FWIW, making accepted file types configurable is trivial. Grammars are defined here:
File extensions (because we need to detect typescript files that aren't open in editors necessarily) are a couple lines below:
Changing those hard-coded arrays to However, I'm really not sure it'll be enough. |
@lierdakil yeah that would be the easy part. I'm hoping that including a service language plugin that would support html would just work. I'll try experiment with this |
Maybe a combination of the angular language service: https://angular.io/guide/language-service And: https://github.com/atom/atom-languageclient For targeting just angular html. |
This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days |
I am still interested in this. If anyone has a workaround or hints how to get this, please post it here |
im also interested |
@jonyeezs @arnotes @jeffreymeng Does it make sense to open a new Ticket? #1355 and #1278 got closed by bot, but are still a thing. |
@DerZyklop, it does not. The issue of supporting HTML specifically is out of scope frankly. Here's what you should do:
Stuff should work. If it doesn't, open an issue. But don't open an issue if you're stuck on step (1) or (2), since those are not directly related to this project and this bug tracker is not a general TypeScript help forum. |
Welp, I've spent a couple hours fiddling with this, and found this comment in the bowels of Angular's language service plug-in:
so this apparently won't work. (note: I have no idea what are inline templates, since I don't do angular, but I'm guessing not html files) Note, if targeting Angular specifically, you probably don't actually want to use Atom-TypeScript at all. Instead, you should perhaps look towards integrating |
Okay, I'm at a loss. So I've slapped together a prototype https://github.com/lierdakil/atom-ide-angular. I've made a few such packages and seen a lot more, so it shouldn't have been an issue. And it's fine, the language server works, it accepts requests, it prints debug messages to console, all's fine. The only problem is all replies are empty: it returns empty diagnostics for obviously broken files, it returns empty completions, empty hover tooltips, so basically it "works", but does nothing. I don't have any more time to dedicate to this, and considering I don't know first thing about Angular, maybe I'm just missing something stupid. If anyone wants to try to figure this out, feel free to fork the repo, hack on the code, release the package, etc. |
Forked. Will check it out now |
I was expecting it to show empty replies but it's not showing anything, actually. Also how do I check if the LS is running? I've never done this before and I'd appreciate a bit of help |
Is there a way for it to autocomplete typescript in
.html
typescript files?So in webstorm(trial), it works like this:
In atom
.html
files, however, there are no autocomplete functions.This is the same question as the one on Stack OVerflow, but has no answers yet.
Thank You
The text was updated successfully, but these errors were encountered: