-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1218 from soutaro/typecheck-request
Make type checking a LSP request, not a LSP notification
- Loading branch information
Showing
21 changed files
with
349 additions
and
135 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
module Steep | ||
module Server | ||
module CustomMethods | ||
module FileLoad | ||
METHOD = "$/steep/file/load" | ||
|
||
def self.notification(params) | ||
{ method: METHOD, params: params } | ||
end | ||
end | ||
|
||
module FileReset | ||
METHOD = "$/steep/file/reset" | ||
|
||
def self.notification(params) | ||
{ method: METHOD, params: params } | ||
end | ||
end | ||
|
||
module TypeCheck | ||
METHOD = "$/steep/typecheck" | ||
|
||
def self.request(id, params) | ||
{ method: METHOD, id: id, params: params } | ||
end | ||
|
||
def self.response(id, result) | ||
{ id: id, result: result } | ||
end | ||
end | ||
|
||
module TypeCheck__Start | ||
METHOD = "$/steep/typecheck/start" | ||
|
||
def self.notification(params) | ||
{ method: METHOD, params: params } | ||
end | ||
end | ||
|
||
module TypeCheck__Progress | ||
METHOD = "$/steep/typecheck/progress" | ||
|
||
def self.notification(params) | ||
{ method: METHOD, params: params } | ||
end | ||
end | ||
|
||
module Stats | ||
METHOD = "$/steep/stats" | ||
|
||
def self.request(id) | ||
{ method: METHOD, id: id, params: nil } | ||
end | ||
|
||
def self.response(id, result) | ||
{ id: id, result: result } | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains 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 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.