-
Notifications
You must be signed in to change notification settings - Fork 122
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 2.2.1 #43
Comments
If you want to get ahead : Then in your tsconfig.json :
Finally choose this last version of TypeScript (2.3) in VS Code (on bottom right), and restart as suggested. Ta da. No need of the extension, and it will be amazingly faster, as it does not run a duplicate typescript process. |
How can I test? |
You'll see infos when over your components, autocomplete for properties binding, etc. But I'm working with inline templates, I didn't test with external templates yet. |
yes works with inline templates but not with external templates |
My plan is to use the new plugin architecture in 2.3 by default. This plugin would only then be required to get completions from external template references. This should coincide around the time of the official 2.3 release. |
The first official release of this plugin (0.1.1) works only with TypeScript 2.1 and not with 2.2. I think it should now be a bug to fix soon instead of an enhancement because angular/cli installs TS 2.2 by default, so the plugin is not compatible by default for many angular projects. |
I will be working on this next week. Unfortunately, many of the internal APIs to TypeScript changed significantly with 2.2 so the upgrade is not simple. |
@chuckjaz any news on this? thank you you only realise how big of a deal this plugin is when you can not use it |
@fxck I am working on it this week. I met with the TypeScript team last week and we came up with a better long-term strategy that is less likely to be broken as the TypeScript team is making changes. I am implementing my part this week. |
@chuckjaz does that mean it will have to wait for a new version of typescript? Major? Minor? |
@fxck Yes. 2.3 is the release we have been waiting for but it still doesn't have everything we need. I am coordinating with Microsoft, both the TypeScript and VSCode teams, regarding this. The changes necessary should be landing in the next couple of weeks. My side has been implemented and is in Angular master. I have a PR for the the changes necessary for TypeScript out (tentatively slated for 2.3.2). The VSCode team is working on the changes to the TypeScript plugin that is necessary and most of which are currently in VSCode master. We need a subsequent change to handle external Once all of this comes together I will update my plugin to use the new plugin architecture which will resolve most of this issues people have been having with the plugin as well as position the code to allow more features such as renaming references in templates. |
@chuckjaz do you mean that TypeScript team should manage I post you this question because I try to integrates @angular/language-service inside Eclipse with TypeScript Plugins. It works great with @Component/template inside a TypeScript file but not when template is declared in html file. Thanks for your answer. |
@angelozerr Correct.I have a PR pending to TypeScript that enables it and we are working through the details of landing it. Once that is landed the TypeScript service will handle request for external templates. However, it is an exercise for the integrator how to get the editor to direct in html files requests to TypeScript. The current plans for VSCode is for TypeScript extensions to be able to add file types which should be handled by the TypeScript service. This plugin then would become a VSCode TypeScript plugin that would add |
Thanks so much for your great explanation.
You mean, when an html file is opened, it should consumes
I have seen that now TypeScript provides Global plugins gives the capability to register a plugin without installing in your project, is that? |
Yes.
Yes. The global plugins are loaded in addition to the ones listed in the config file. |
Thanks so much to have taken time to give me answer. I will track TypeScript work to test that, I'm so very enthousiasm with your work and integrate it inside Eclipse:) |
Hi @chuckjaz Typescript 2.3.3 was released today. Are your PRs present in this version? Will you be able to finish that integration into TsServer? Thank you for great work :) |
It is not. There are some issues we found in the design fairly late and they have yet to work through them completely. |
So it was merged just now. Hopefully coming with the nest minor release. |
@chuckjaz I'm trying to consume "definition" tsserver command inside Eclipse from HTML angular template <h1>
{{title}}
</h1> to retrieve definition of import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
} with :
In my HTML editor I consumes the same commands than tsserver like open, change, etc commands, but it doesn't work. When you will have time please tell me which tsserver commad, an editor must consumes (ex: pass a particulary skriptKing 'html' when an HTML editor is opened?) Thanks! |
I don't know what could be wrong as this is one of the tests I run to validate the language service works. One thing you could try is opening What |
@chuckjaz sorry for the noise, it was my fault, it works great now, here a little demo with @angular/language-service with Eclipse and HTML editor: It works great! Many thank's for your great work! |
@chuckjaz @angelozerr |
There will still be a Angular plugin for VSCode but it will change considerably. Instead of having its own server it will register with VSCode that The |
Hi @chuckjaz, it looks like that Typescript 2.4 RC is out and Angular 4.2.2 is also out :). Would it be possible to try to update plugin to these latest changes :). Maybe now it will work as it should :). I just look forward for this awesome plugin :). Thank you |
Updating past 2.1 is challenging with the existing architecture as there were some internal changes to TypeScript that broke my server. However, the TypeScript plugin architecture makes this moot and I am working to move to that but it is taking longer than I thought. I will update the language service bundled with the 2.1 based server early next week if I cannot get all the pieces to land together for the new architecture. |
Fixed in 0.1.4 |
@chuckjaz I have a problem about that I think. Indeed when I open an HTML file which is not linked to an Angular Template, my HTML file is considered as a TypeScript file and Thanks for your help! |
This is the reason I haven't converted over to the new plugin architecture yet. The TypeScript team is working with the VS Code team to resolve this. The safest thing is to ask the Angular language service which files are templates and only request information from tsserver when this is true. There is no existing protocol for this, however, The solution Microsoft is working on is passing the kind of the file along with this request allowing the server to determine if the file should be treated as a TypeScript file. |
As usually, many thanks for your great info! Thanks @chuckjaz ! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
vscode 1.9.1
is it possible to get it run with these versions?
The text was updated successfully, but these errors were encountered: