-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Language Service host API cleanup #1735
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
118b7a9
remove unnecessary call sourceFile.getSourceFile()
mhegazy 3c59b9f
Add getDefaultLibraryFilePath to retrive the default lib file path fo…
mhegazy adee215
Make logger methods optional on the language service host
mhegazy 3434aa0
Remove getDefaultLibFilename from the LS host interface as its result…
mhegazy 9346651
Inline the return of createCompilerHost
mhegazy 66f8257
Remove isOpen from souceFile and LanugageServiceHost interfaces
mhegazy c9b1309
Gracefully handel getChangeRange in Scriptsnapshot.fromString
mhegazy 000206f
Update servicesVersion
mhegazy 01267bc
Merge branch 'master' into LSAPICleanup
mhegazy 1b1a45b
update unit test contents
mhegazy fe96258
revert serviceVersion change as the API is still compatible
mhegazy 0257ace
Respond to code review comments
mhegazy 04d8f5a
Merge branch 'master' into LSAPICleanup
mhegazy 1f91322
Merge branch 'master' into LSAPICleanup
mhegazy 1945e11
remove unused file
mhegazy 9628191
Allow the LS API to resolve referenced files
mhegazy d6decf8
Expose underlying program from the LS
mhegazy fe836c5
make documentRegistry optional argument to createLanguageService
mhegazy e503f38
Remove unused IScriptSnapshot.getLineStartPositions
mhegazy d593902
Add documentation to DocumentRegistry
mhegazy cf0ee9e
Merge branch 'master' into LSAPICleanup
mhegazy fd3562b
Update ServicesVersion
mhegazy 9f977af
Shorten library to lib in getDefaultLibFilePath for consistency
mhegazy 5fa30e5
Add API sample tests
mhegazy 0abef52
Update test failing by previous commit
mhegazy 9a6e3ad
Merge branch 'master' into LSAPICleanup
mhegazy 0ce51e6
Fix #1871 by ensuring the at we get the canonical filename before we …
mhegazy 79a1457
Ensure that all LS requests are to an exiting soruceFile, and if we f…
mhegazy 8524bfc
Merge branch 'master' into LSAPICleanup
mhegazy 2772355
Merge branch 'master' into LSAPICleanup
mhegazy d6bd9f7
Merge branch 'master' into LSAPICleanup
mhegazy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 use some stuff like this in the harness - @yuit was questioning the logic a week ago. Not sure if the problem persists.
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.
should we be more generic here for future targets? something that converts ScriptTaget into string and use that with lib.scriptTagetString.d.ts ?
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.
i think we should only have one lib file with some details inside on when declarations are relevant, e.g. decorators/attribute annotations that say if this declaration applies to the current compilation or not.
managing multiple files has been a hassle.
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.
@mhegazy I agree on that. Also, should we make sure that the target exist first? or we are guarantee to have default target as there was a problem in the harness when target isn't specified