-
Notifications
You must be signed in to change notification settings - Fork 60
Async rewrite #1093
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
Async rewrite #1093
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
0b1fc72
Add semver dep
mediremi 4af5bd7
Create async version of utils.findBinary
mediremi cecf7c4
Make findBscExeBinary and findEditorAnalysisBinary async
mediremi df29b18
Remove unused constants
mediremi f4cde5a
Make utils.runAnalysisAfterSanityCheck async
mediremi d729e3a
Make parseCompilerLogOutput async
mediremi f77e6dd
Make server.sendUpdatedDiagnostics async
mediremi 4612504
Make server.syncProjectConfigCache async
mediremi f642b24
Make server.closedFile async
mediremi e944890
Make server.rename async
mediremi 8ee0994
Make server.completionResolve async
mediremi 015adaf
Trim trailing whitespace
mediremi 74178cb
Use async allback to child_process.execFile in incrementalCompilation…
mediremi f187e08
Make server.updateDiagnosticSyntax async
mediremi 82b7cdb
Make server.hover async
mediremi 9430597
Make server.inlayHint async
mediremi 8150858
Make server.codeLens async
mediremi a3b5d14
Make server.signatureHelp async
mediremi 9e9058e
Make server.definition async
mediremi f0de0d1
Make server.typeDefinition async
mediremi 743dfcf
Make server.documentSymbol async
mediremi 490dd35
Make server.semanticTokens async
mediremi 2f85bc5
Make server.completion async
mediremi 379a116
Make server.codeAction async
mediremi 95ca8da
Make server.createInterface async
mediremi cbe1239
Make utils.runAnalysisCommand async
mediremi 28226f5
Make utils.getReferencesForPosition async
mediremi 90a573e
Make server.references async
mediremi 032026e
Make server.prepareRename async
mediremi d7bc10a
Make utils.findReScriptVersionForProjectRoot async
mediremi a037a23
Replace findReScriptVersion(filePath) with findReScriptVersionForProj…
mediremi 190696d
Remove unused utils.findPlatformPath
mediremi 2258d8e
Make server.findRescriptBinary async
mediremi 628dc75
Remove unused constant
mediremi b3b26bf
s/findBinaryAsync/findBinary
mediremi 40ecf3d
Fix rescript binary package import path
mediremi da67038
Move semver dependency from root package.json to server/package.json
mediremi d4cc19d
Use semver package for version checks
mediremi 22bff6d
Update typescript from v4.7.3 to v5.8.3
mediremi aa78b00
Add CHANGELOG
mediremi 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ rescript-tools.exe | |
|
||
_opam/ | ||
_build/ | ||
|
||
*.tsbuildinfo |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
I added
semver
to make parsing the rescript version easier.If adding this dependency is fine, then I can also refactor
incrementalCompilation.figureOutBscArgs
andutils.runAnalysisAfterSanityCheck
to use it.rescript-vscode/server/src/incrementalCompilation.ts
Line 576 in f4ba829
rescript-vscode/server/src/utils.ts
Lines 211 to 220 in f4ba829
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've done the proposed refactoring in this commit: d4cc19d
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.
Great! 👍