You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Help TS team to assume ownership of semantic highlighting in TS tooling #92789
We've been working on our semantic coloring support. This is currently powered by a TS Server plugin but we’d like to merge this work back into TS Server.
The plugin's readme descibed it's purpose and a list of the implemented features.
Daniel Rosenwasser (@DanielRosenwasser)Here is the relevant documentation. A DocumentSemanticTokensProvider can optionally implement a method provideDocumentSemanticTokensEdits. This method will be called by the editor after a while and the provider has a chance to give edits relative to the previous result. You can think of them like updates to the previous semantic tokens, flowing from the provider to the editor. The JS Doc explains it in greater detail.
One of the things we brought up when this was first discussed is that TypeScript doesn't have a model where we can correlate the current semantic state of the world with that of the last semantic state. I don't think that that's accounted for in this model.
In Visual Studio we've had APIs to provide semantic classifications which are handled by Roslyn and we simply haven't had to worry about any issues there. This has worked for years, and given the constraints that I've mentioned above, along with the fact with this API each language server has to figure out how to achieve this, I think we need to rethink the approach here.
In Visual Studio we've had APIs to provide semantic classifications which are handled by Roslyn and we simply haven't had to worry about any issues there. This has worked for years, and given the constraints that I've mentioned above, along with the fact with this API each language server has to figure out how to achieve this, I think we need to rethink the approach here.
I would agree with this. It doesn't make sense to me for languages to have to figure it out. It's non-trivial and would involve a lot of work per-language. In Roslyn we allow the languages to just be 'dumb'. They compute their syntactic or semantic classifications however they see fit, and we just update our host intelligently with the minimal change that's appropriate.
Note that this is what we do with all our taggers. classification, outlining, line separators, reference highlighting, etc. etc. etc. All of these sit on systems where the language is just asked to compute simply, and the host (i.e. Roslyn) intelligently manages those and ensures minimal updating to actual clients.
Having this complex logic centralized has been a boon for all roslyn languages to be able to focus on the language tasks and not on complexities of semantic changes and diffs. I don't think it's reasonable or appropriate to now push that back out onto all the languages again.
Sending deltas is only solving a small part of the problem. We also have to consider that the language side is going to end up spending a lot of time computing semantic information for highlights that are off-screen and remain off-screen - a user editing a large file might only ever scroll a tiny portion of it into view. For TypeScript, a question like "Is this JS identifier actually a class or a function" involves a surprisingly large amount of work, e.g. looking for prototype assignments, looking for this. bindings, and other heuristics; these not individually expensive, but in total can represent a lot of work if done repeatedly over thousands of occurrences.
Worse, edits near the top of the file are going to invalidate a lot of semantic highlights as the file goes in and out of a syntactically valid state, so even under a delta-based scheme we're going to have to send back a bunch of (nontrivially computed) diffs for off-screen tokens.
Even considering none of that, we're looking at 5+ seconds of extra startup responsiveness delay for a large file as VS Code processes the initial highlighting data, which deltas will not fix any of,
I'd like to revisit #92963 to address the underlying concern here and ship a performant feature - VS Code has already invested a lot in making the experience shine in large files and I think we need to continue to keep these scenarios in mind.
The purpose of DocumentSemanticTokensProvider is to provide semantic tokens for the entire document, in such a way that after those semantic tokens have been provided, scrolling in the editor can render synchronously all the text without flickering, even if there is latency to the language server, like when using VS Code Remote SSH, where the UI and the language server are separated by the internet. This solution is designed for an asynchronous world, where the editor cannot make a synchronous call to the languager server and ask it for tokens in the viewport when painting. I will focus my examples on the DocumentSemanticTokensProvider, but if you find this one too difficult to implement (I'm not sure why that would be the case), there is also a DocumentRangeSemanticTokensProvider, which fetches semantic tokens only for the viewport, but which flickers because they must be fetched asynchronously.
I'm going to try to explain the idea behind provideDocumentSemanticTokensEdits and going to suggest a simple implementation. provideDocumentSemanticTokensEdits is first and foremost about reducing data on the wire. It can also be about computing less, but that is really up to how the language server itself is implemented.
I find it best to reason about an example. So, suppose you open checker.ts. The language server receives an event that the document was opened in the editor and that from now the "truth" lies with the editor and that changes will be pushed to the language server. On some version of TypeScript I have checked out, that file contains 81,047 semantic tokens. With the encoding of 5 x 32 bit integers per token, that is 405,235 x 32 bit integers, or about 1.6MB "on the wire". The encoding can definitely be reduced to 3 integers per token, and that is doable, but that is not so important to this reasoning.
Let's suppose the 1.6MB semantic tokens have made it to the editor, they are now rendered and all is good. But suppose a single edit is done: a new line is inserted at the top of cheker.ts. The editor will adjust the semantic tokens on the UI thread, and they will "stick with the text", so all the tokens will move down, but now the editor must consider that these tokens are potentially invalid. As far as the editor is concerned, the editor cannot understand that in this programming language \n does not carry semantic meaning. So, as far as the editor is concerned, it behaves very similarly when you insert /* and when you insert \n, even though they cary different semantic meaning in TS.
The simple small edit is communicated to the language service with a single text delta event that is small: it will just say that at (1;1) a \n got inserted. So just a few bytes, an event proportional in size to the size of the change. But eventually the editor needs to validate those semantic tokens (think to cover the case of typing /*, it cannot just assume that sticking the tokens with the text is correct). So the editor needs eventually to ask the DocumentSemanticTokensProvider for semantic tokens again. That means that in the \n case, 1.6 MB worth of data needs to be sent again "on the wire" to the editor. All the tokens will be very similar to the previous tokens, but they will have their line number increased by one (or their offset will be increased by 1), depending on the chosen tokens encoding (line,col or offset).
So that is where the provideDocumentSemanticTokensEdits comes in. Instead of sending 1.6MB worth of tokens again on the wire, it is possible to send one or more edits to the previous result which describe the new result, instead of sending the new result in full.
Now, for the simple implementation I have promised. On the language server side, when a provideDocumentSemanticTokens request comes in, compute all the semantic tokens in the file by walking the entire AST. Let's call this result X0 and let's store it in a map associated with the document. Only keep a single semantic tokens result per document. If there is any other previous semantic tokens result stored, delete it. If the document gets closed (the editor will let you know with an event), you can delete the result X0 from the map of open documents.
For a subsequent call to provideDocumentSemanticTokensEdits, X0 (an identifier that you chose before) will be passed in the request. If you find X0 in the result map, proceed, otherwise throw an error. Compute all the semantic tokens in the file by walking the entire AST and generate the result X1. Now you have N0 integers from X0 and N1 integers from X1.
You need to compute one or more edits which brings X0 to X1, let's call that diff(X0,X1). The best way is to implement a LCS algorithm (one that is typically implemented in a diff algorithm, like Myers's), but that might be slow. A simpler way is to check the prefix and the suffix for equality and strip them, and then consider the entire range in the middle as an edit (e.g. axc => ayc, where a, x, y and c are sequences of integers can be expressed as replace x with y). Delete X0 from the stored state and store X1 in full. Return the diff(X0, X1) that you computed before.
If you don't want to do this, then that is ok, simply don't implement provideDocumentSemanticTokensEdits. But if you implement that, 1.6MB are saved almost on each keystroke.
The thing is that there's a huge cost in this one step:
Compute all the semantic tokens in the file by walking the entire AST and generate the result X1
The minimum overhead of this is:
Walk the whole AST, which is already going to have overhead on any reasonably sized file.
Resolve information about every identifier in the file, which can potentially trigger a full type-check of your entire program.
We're already seeing the negative effects of this - that's the 5+ second delays we're seeing locally.
On the other hand, doing that huge JSON serialization and then going across the wire - that's also unacceptable. Serializing and deserializing about 2 million integers in arrays of arrays takes about 500ms on my machine, and nobody wants that.
So both of these problems need to be fixed. Regardless of the API, the bottom line is that the editor is potentially going to be asking for language services to calculate too much stuff.
Ryan Cavanaugh (@RyanCavanaugh) You have a very good point. I apologize for speculating without knowing how tsserver actually works. But I spent some time to try and poke at things and understand how they do work. So I have made various tweaks and profiled things. In all cases I insert one space in checker.ts:
I only ran each test once, so the absolute times don't mean too much, since the variation is large, but it helps to get an idea of what is going on.
I find two things interesting: computing semantic tokens is more expensive than typechecking, and it looks like some things (but not all) get cached between calls on the same project state, because getSemanticDiagnostics is now cheaper.
I then went ahead and made one change, to delay the server request from the ts extension in order to run the semantic highlighting after the diagnostics pass, in the hope of benefiting from that caching:
This confirms that some things are cached in the typechecker, but computing semantic tokens is still very expensive. I thought that there must be something wrong with the way semantic tokens are computed since even now computing them is slower than computing semantic diagnostics.
I then started looking at the plugin's implementation of getEncodedSemanticClassifications, and it has been done very similar to the one in tsserver itself, it uses the utility ts.forEachChild to walk the AST and stops at identifiers and then pokes around, to find the symbols and types...
I took a peek at the typechecker itself and that is written differently, in a what I understood to be a more traditional "top-down visit each node in a typed manner" approach, with functions which are way less polymorphic than the plugin's very generic visit method, so I started to tweak the plugin's implementation of getEncodedSemanticClassifications.
I began writing a more traditional visitor. I haven't finished yet (I still have nodes left to visit with //TODO as their body), but I'm currently generating 61768 tokens out of 83240 tokens generated by the initial implementation (around 75%) in around 50% of the time, so I have hope that this way of visiting the AST should be a bit faster, even after completion, but it doesn't appear like it will be a factor faster.
And here is where things get interesting. A lot of time is actually not spent in the visitor, but again in the typechecker. So while some things are cached, I have a strong suspicion (without really understanding the typechecker itself) that not a lot of things are cached, since I can see in the profiles I'm doing that still a lot of time is spent typechecking while generating the semantic tokens on a project with the same state.
I am not finished, but I wanted to give a quick update on what my thinking currently is. I think if more caching would be done in the typechecker, the semantic tokens generation would be significantly cheaper (maybe an optimistic 10x). This also makes me think about the C++ team who AFAIK generate the semantic tokens while reconciling (they call it the "intelisense pass") to avoid computing things twice.
When I reference in my comments above a dev budget of 1 day, I don't mean that I ask someone from the TS team to invent a new kind of compiler or rewrite all the compiler infrastructure for this feature. I mean that someone spends time because I consider this to be an engineering problem that could be solved with caching and better timing of things. I will continue on this visitor and let you know of the results, but I still believe that someone with deep knowledge of the TS compiler/domain would be much better suited for the task.
In the end, I was able to reach about 10x overall improvements. Here are the average times to compute semantic tokens for checker.ts on my machine. I have applied 3 conceptional changes to get the improved times:
the timing change is about making sure the semantic tokens request arrives at tsserver after the diagnostics request. I did this by manipulating the request times, but the best way would be if there would be a single call made to the tsserver that computes diagnostics and returns semantic tokens in one go.
the same checker change is about using program.getDiagnosticsProducingTypeChecker() instead of program.getTypeChecker(). It looks that the former one is internal API and not normally available to plugins, but that is the checker that we should use, in order to benefit from the checking done already to compute diagnostics.
the final change is about writing a different kind of visitor, that does not use the generic ts.forEachChild, and that knows more about context when computing semantic tokens. This one also uses symbol -> semantic tokens caching, remembers locals or knows what this is, and in principle avoids as much as possible calling into the ts checker.
I have compared semantic tokens generated by the initial implementation and by the final implementation, and there are minor differences left in the output, which IMHO, are worth the extra time gained by the symbol cache.
We will target moving the plugin to an official TS Server API in TS 4.0. I believe This would ship at the end of July. My understanding is that Martin Aeschlimann (@aeschli) and Alexandru Dima (@alexdima) will be driving this work with some help from the TS team.
Martin Aeschlimann (@aeschli) I'm going to unassign myself from this issue and tentatively move it to the next iteration. However if you need help coordinating this work with the TS team, just let me know!
I was under the impression that someone for the TypeScript team would move the plugin code to the server and adopt it to their liking. Did I misunderstand?
I'm happy maintain the plugin in the meantime and to adopt the TS server when this is ready.
Martin Aeschlimann (@aeschli) Yes I think the TS team would do the code changes. You would driving the work by following up with the TS team and providing them with any support they need for this
Activity
DanielRosenwasser commentedon Apr 2, 2020
In #92963 (comment), Alexandru Dima (@alexdima) mentioned something about a delta strategy.
I can't find any place where this delta strategy is documented. Can you please elaborate on that?
alexdima commentedon Apr 2, 2020
Daniel Rosenwasser (@DanielRosenwasser) Here is the relevant documentation. A
DocumentSemanticTokensProvidercan optionally implement a methodprovideDocumentSemanticTokensEdits. This method will be called by the editor after a while and the provider has a chance to give edits relative to the previous result. You can think of them like updates to the previous semantic tokens, flowing from the provider to the editor. The JS Doc explains it in greater detail.DanielRosenwasser commentedon Apr 2, 2020
One of the things we brought up when this was first discussed is that TypeScript doesn't have a model where we can correlate the current semantic state of the world with that of the last semantic state. I don't think that that's accounted for in this model.
In Visual Studio we've had APIs to provide semantic classifications which are handled by Roslyn and we simply haven't had to worry about any issues there. This has worked for years, and given the constraints that I've mentioned above, along with the fact with this API each language server has to figure out how to achieve this, I think we need to rethink the approach here.
CyrusNajmabadi commentedon Apr 2, 2020
I would agree with this. It doesn't make sense to me for languages to have to figure it out. It's non-trivial and would involve a lot of work per-language. In Roslyn we allow the languages to just be 'dumb'. They compute their syntactic or semantic classifications however they see fit, and we just update our host intelligently with the minimal change that's appropriate.
Note that this is what we do with all our taggers. classification, outlining, line separators, reference highlighting, etc. etc. etc. All of these sit on systems where the language is just asked to compute simply, and the host (i.e. Roslyn) intelligently manages those and ensures minimal updating to actual clients.
Having this complex logic centralized has been a boon for all roslyn languages to be able to focus on the language tasks and not on complexities of semantic changes and diffs. I don't think it's reasonable or appropriate to now push that back out onto all the languages again.
RyanCavanaugh commentedon Apr 2, 2020
Sending deltas is only solving a small part of the problem. We also have to consider that the language side is going to end up spending a lot of time computing semantic information for highlights that are off-screen and remain off-screen - a user editing a large file might only ever scroll a tiny portion of it into view. For TypeScript, a question like "Is this JS identifier actually a class or a function" involves a surprisingly large amount of work, e.g. looking for prototype assignments, looking for
this.bindings, and other heuristics; these not individually expensive, but in total can represent a lot of work if done repeatedly over thousands of occurrences.Worse, edits near the top of the file are going to invalidate a lot of semantic highlights as the file goes in and out of a syntactically valid state, so even under a delta-based scheme we're going to have to send back a bunch of (nontrivially computed) diffs for off-screen tokens.
Even considering none of that, we're looking at 5+ seconds of extra startup responsiveness delay for a large file as VS Code processes the initial highlighting data, which deltas will not fix any of,
I'd like to revisit #92963 to address the underlying concern here and ship a performant feature - VS Code has already invested a lot in making the experience shine in large files and I think we need to continue to keep these scenarios in mind.
alexdima commentedon Apr 2, 2020
The purpose of
DocumentSemanticTokensProvideris to provide semantic tokens for the entire document, in such a way that after those semantic tokens have been provided, scrolling in the editor can render synchronously all the text without flickering, even if there is latency to the language server, like when using VS Code Remote SSH, where the UI and the language server are separated by the internet. This solution is designed for an asynchronous world, where the editor cannot make a synchronous call to the languager server and ask it for tokens in the viewport when painting. I will focus my examples on theDocumentSemanticTokensProvider, but if you find this one too difficult to implement (I'm not sure why that would be the case), there is also aDocumentRangeSemanticTokensProvider, which fetches semantic tokens only for the viewport, but which flickers because they must be fetched asynchronously.I'm going to try to explain the idea behind
provideDocumentSemanticTokensEditsand going to suggest a simple implementation.provideDocumentSemanticTokensEditsis first and foremost about reducing data on the wire. It can also be about computing less, but that is really up to how the language server itself is implemented.I find it best to reason about an example. So, suppose you open
checker.ts. The language server receives an event that the document was opened in the editor and that from now the "truth" lies with the editor and that changes will be pushed to the language server. On some version of TypeScript I have checked out, that file contains 81,047 semantic tokens. With the encoding of 5 x 32 bit integers per token, that is 405,235 x 32 bit integers, or about 1.6MB "on the wire". The encoding can definitely be reduced to 3 integers per token, and that is doable, but that is not so important to this reasoning.Let's suppose the 1.6MB semantic tokens have made it to the editor, they are now rendered and all is good. But suppose a single edit is done: a new line is inserted at the top of
cheker.ts. The editor will adjust the semantic tokens on the UI thread, and they will "stick with the text", so all the tokens will move down, but now the editor must consider that these tokens are potentially invalid. As far as the editor is concerned, the editor cannot understand that in this programming language\ndoes not carry semantic meaning. So, as far as the editor is concerned, it behaves very similarly when you insert/*and when you insert\n, even though they cary different semantic meaning in TS.The simple small edit is communicated to the language service with a single text delta event that is small: it will just say that at
(1;1)a\ngot inserted. So just a few bytes, an event proportional in size to the size of the change. But eventually the editor needs to validate those semantic tokens (think to cover the case of typing/*, it cannot just assume that sticking the tokens with the text is correct). So the editor needs eventually to ask theDocumentSemanticTokensProviderfor semantic tokens again. That means that in the\ncase, 1.6 MB worth of data needs to be sent again "on the wire" to the editor. All the tokens will be very similar to the previous tokens, but they will have their line number increased by one (or their offset will be increased by 1), depending on the chosen tokens encoding (line,col or offset).So that is where the
provideDocumentSemanticTokensEditscomes in. Instead of sending 1.6MB worth of tokens again on the wire, it is possible to send one or more edits to the previous result which describe the new result, instead of sending the new result in full.Now, for the simple implementation I have promised. On the language server side, when a
provideDocumentSemanticTokensrequest comes in, compute all the semantic tokens in the file by walking the entire AST. Let's call this resultX0and let's store it in a map associated with the document. Only keep a single semantic tokens result per document. If there is any other previous semantic tokens result stored, delete it. If the document gets closed (the editor will let you know with an event), you can delete the resultX0from the map of open documents.For a subsequent call to
provideDocumentSemanticTokensEdits,X0(an identifier that you chose before) will be passed in the request. If you findX0in the result map, proceed, otherwise throw an error. Compute all the semantic tokens in the file by walking the entire AST and generate the resultX1. Now you haveN0integers fromX0andN1integers fromX1.You need to compute one or more edits which brings
X0toX1, let's call thatdiff(X0,X1). The best way is to implement a LCS algorithm (one that is typically implemented in a diff algorithm, like Myers's), but that might be slow. A simpler way is to check the prefix and the suffix for equality and strip them, and then consider the entire range in the middle as an edit (e.g.axc=>ayc, wherea,x,yandcare sequences of integers can be expressed asreplace x with y). DeleteX0from the stored state and storeX1in full. Return thediff(X0, X1)that you computed before.If you don't want to do this, then that is ok, simply don't implement
provideDocumentSemanticTokensEdits. But if you implement that, 1.6MB are saved almost on each keystroke.DanielRosenwasser commentedon Apr 2, 2020
The thing is that there's a huge cost in this one step:
The minimum overhead of this is:
We're already seeing the negative effects of this - that's the 5+ second delays we're seeing locally.
On the other hand, doing that huge JSON serialization and then going across the wire - that's also unacceptable. Serializing and deserializing about 2 million integers in arrays of arrays takes about 500ms on my machine, and nobody wants that.
So both of these problems need to be fixed. Regardless of the API, the bottom line is that the editor is potentially going to be asking for language services to calculate too much stuff.
10 remaining items
alexdima commentedon Apr 6, 2020
Ryan Cavanaugh (@RyanCavanaugh) You have a very good point. I apologize for speculating without knowing how
tsserveractually works. But I spent some time to try and poke at things and understand how they do work. So I have made various tweaks and profiled things. In all cases I insert one space inchecker.ts:I only ran each test once, so the absolute times don't mean too much, since the variation is large, but it helps to get an idea of what is going on.
With semantic highlighting turned off:
updateProjectIfDirtygetSemanticDiagnosticsWith semantic highlighting turned on:
updateProjectIfDirtygetEncodedSemanticClassificationsgetSemanticDiagnosticsI find two things interesting: computing semantic tokens is more expensive than typechecking, and it looks like some things (but not all) get cached between calls on the same project state, because
getSemanticDiagnosticsis now cheaper.I then went ahead and made one change, to delay the server request from the ts extension in order to run the semantic highlighting after the diagnostics pass, in the hope of benefiting from that caching:
updateProjectIfDirtygetSemanticDiagnosticsgetEncodedSemanticClassificationsThis confirms that some things are cached in the typechecker, but computing semantic tokens is still very expensive. I thought that there must be something wrong with the way semantic tokens are computed since even now computing them is slower than computing semantic diagnostics.
I then started looking at the plugin's implementation of
getEncodedSemanticClassifications, and it has been done very similar to the one intsserveritself, it uses the utilityts.forEachChildto walk the AST and stops at identifiers and then pokes around, to find the symbols and types...I took a peek at the typechecker itself and that is written differently, in a what I understood to be a more traditional "top-down visit each node in a typed manner" approach, with functions which are way less polymorphic than the plugin's very generic
visitmethod, so I started to tweak the plugin's implementation ofgetEncodedSemanticClassifications.I began writing a more traditional visitor. I haven't finished yet (I still have nodes left to visit with
//TODOas their body), but I'm currently generating 61768 tokens out of 83240 tokens generated by the initial implementation (around 75%) in around 50% of the time, so I have hope that this way of visiting the AST should be a bit faster, even after completion, but it doesn't appear like it will be a factor faster.updateProjectIfDirtygetSemanticDiagnosticsgetEncodedSemanticClassifications*And here is where things get interesting. A lot of time is actually not spent in the visitor, but again in the typechecker. So while some things are cached, I have a strong suspicion (without really understanding the typechecker itself) that not a lot of things are cached, since I can see in the profiles I'm doing that still a lot of time is spent typechecking while generating the semantic tokens on a project with the same state.
I am not finished, but I wanted to give a quick update on what my thinking currently is. I think if more caching would be done in the typechecker, the semantic tokens generation would be significantly cheaper (maybe an optimistic 10x). This also makes me think about the C++ team who AFAIK generate the semantic tokens while reconciling (they call it the "intelisense pass") to avoid computing things twice.
When I reference in my comments above a dev budget of 1 day, I don't mean that I ask someone from the TS team to invent a new kind of compiler or rewrite all the compiler infrastructure for this feature. I mean that someone spends time because I consider this to be an engineering problem that could be solved with caching and better timing of things. I will continue on this visitor and let you know of the results, but I still believe that someone with deep knowledge of the TS compiler/domain would be much better suited for the task.
Faster full-file semantic tokens computation (microsoft/vscode#92789)
alexdima commentedon Apr 13, 2020
Here is a quick update:
In the end, I was able to reach about 10x overall improvements. Here are the average times to compute semantic tokens for
checker.tson my machine. I have applied 3 conceptional changes to get the improved times:timingchange is about making sure the semantic tokens request arrives attsserverafter the diagnostics request. I did this by manipulating the request times, but the best way would be if there would be a single call made to thetsserverthat computes diagnostics and returns semantic tokens in one go.same checkerchange is about usingprogram.getDiagnosticsProducingTypeChecker()instead ofprogram.getTypeChecker(). It looks that the former one is internal API and not normally available to plugins, but that is the checker that we should use, in order to benefit from the checking done already to compute diagnostics.finalchange is about writing a different kind of visitor, that does not use the genericts.forEachChild, and that knows more about context when computing semantic tokens. This one also uses symbol -> semantic tokens caching, remembers locals or knows whatthisis, and in principle avoids as much as possible calling into the ts checker.I have compared semantic tokens generated by the
initialimplementation and by thefinalimplementation, and there are minor differences left in the output, which IMHO, are worth the extra time gained by the symbol cache.The
finalchange is available at https://github.com/alexdima/typescript-vscode-sh-plugin/tree/alex/faster and can be seen as a diff in aeschli/typescript-vscode-sh-plugin#10mjbvz commentedon Apr 22, 2020
Outcome of discussion today:
VS Code is now using the semantic range provider so there's less of a user need to move semantic highlighting into TypeScript core.
The perf improvements that Alexandru Dima (@alexdima) investigated are also very welcome
We will target moving the plugin to an official TS Server API in TS 4.0. I believe This would ship at the end of July. My understanding is that Martin Aeschlimann (@aeschli) and Alexandru Dima (@alexdima) will be driving this work with some help from the TS team.
Martin Aeschlimann (@aeschli) I'm going to unassign myself from this issue and tentatively move it to the next iteration. However if you need help coordinating this work with the TS team, just let me know!
aeschli commentedon Apr 23, 2020
I was under the impression that someone for the TypeScript team would move the plugin code to the server and adopt it to their liking. Did I misunderstand?
I'm happy maintain the plugin in the meantime and to adopt the TS server when this is ready.
mjbvz commentedon Apr 23, 2020
Martin Aeschlimann (@aeschli) Yes I think the TS team would do the code changes. You would driving the work by following up with the TS team and providing them with any support they need for this
orta commentedon Jun 18, 2020
The PR integrating these features into TS is microsoft/TypeScript#39119 👍
aeschli commentedon Jun 29, 2020
Great news, Orta Therox (@orta)! As the migration is now well on its way, I'll close this issue.
I'm happy to help anywhere, just ping me!