-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Automatically generate protocol.d.ts by pulling in necessary dependencies #11550
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
Conversation
Looked at https://gist.github.com/vladima/411ec6893d4e07a08c4804afbf0d754a. Looks very nice. |
One minor comment: this is actually breaking names: EditorOptions -> EditorSettings OK with me but you might want to doc this. |
@@ -1077,11 +1220,10 @@ declare namespace ts.server.protocol { | |||
* End position of the range for which to format text in file. | |||
*/ | |||
endPosition?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be internal too
|
||
file(buildProtocolTs); | ||
|
||
compileFile(buildProtocolJs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add the new file to the LKG list
Automatically generate protocol.d.ts by pulling in necessary dependencies
As a result
protocol.d.ts
can be compiled as a standalone file (modulolib.d.ts
)Also in this PR
FileLocationRequest
- we'll do work to properly split messages to line/offset-based and position-based laterExample of generated
protocol.d.ts
: https://gist.github.com/vladima/411ec6893d4e07a08c4804afbf0d754apending work: reflect changes made in
Jakefile.js
ingulp
scriptfixes: #11520, #11519, #11518, #11516, #11515, #11514. #11482, #11487
// CC: @mhegazy, @dbaeumer