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
feat: add diagnostic checking and workspace file opening support (#658)
## Problem
No protocol support is available for Flare to get specific files'
diagnostics information and open certain files's editors in VSC SIde
## Solution
Add the protocol support
- Add CheckDiagnosticsRequestType for checking file diagnostics
- Add openWorkspaceFileRequestType for opening workspace files
- Update base-runtime and standalone to support new LSP methods
- Add type definitions for CheckDiagnosticsParams/Result and
OpenWorkspaceFileParams/Result
- Enable language servers to request diagnostic information from IDEs
- Enable language servers to open files in the workspace
programmatically
<!---
REMINDER:
- Read CONTRIBUTING.md first.
- Add test coverage for your changes.
- Link to related issues/commits.
- Testing: how did you test your changes?
- Screenshots if applicable
-->
## License
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Copy file name to clipboardExpand all lines: runtimes/README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,18 @@ The server runtime implementation acts as a proxy for LSP methods, which means i
31
31
| onInlineCompletion | Yes | Provide list of inline completion suggestions from the Server |
32
32
| onExecuteCommand | Yes | Executes a custom command provided by the Server. Servers are advised to document custom commands they support in the package README. |
33
33
34
+
##### LSP Window
35
+
36
+
| Description | Method | Params | Method type | Response Type |
| Request to check diagnostics for specified files |`aws/checkDiagnostics`|`CheckDiagnosticsParams`|[Request](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#requestMessage) Server to Client |`CheckDiagnosticsResult`|
39
+
34
40
##### LSP Workspace
35
41
36
42
| Description | Method | Params | Method type | Response Type |
| Request to select workspace item (folder, file) with the selected items returned |`aws/selectWorkspaceItem`|`SelectWorkspaceItemParams`|[Request](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#requestMessage) Server to Client |`SelectWorkspaceItemResult`|
45
+
| Request to open a file in the workspace programmatically |`aws/openWorkspaceFile`|`OpenWorkspaceFileParams`|[Request](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#requestMessage) Server to Client |`OpenWorkspaceFileResult`|
39
46
| Sent notification to open file differences for the new file content. Supports new, updated or removed files. |`aws/openFileDiff`|`OpenFileDiffParams`|[Notification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#notificationMessage) Server to Client | n/a |
40
47
| Sent notification that file was copied from old to new path using file system operation. |`aws/didCopyFile`|`CopyFileParams`|[Notification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#notificationMessage) Server to Client | n/a |
41
48
| Sent notification that content was written to file using file system operation. |`aws/didWriteFile`|`FileParams`|[Notification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#notificationMessage) Server to Client | n/a |
0 commit comments