-
Notifications
You must be signed in to change notification settings - Fork 4
Editor Markers #2
Comments
I'm not sure that there is an API for that in vscode. If you have any information about it, let me know |
According to the following, it seems you can create/manage your own set of markers by creating a DiagnosticCollection, but there is not currently an API for managing all markers/getting other DiagnosticCollections in the editor. However, that might be enough? https://code.visualstudio.com/docs/extensionAPI/vscode-api#DiagnosticCollection https://code.visualstudio.com/docs/extensionAPI/vscode-api#Diagnostic |
I still can't find an API documentation or code example for managing markers 🙈 |
The links I provided should help (though the page loads poor, you'll need to ctrl+f). It seems liek you want to create a DiagnosticsCollection and then feed it Diagnostics objects for each issue LuaCheck gives you. Diagnostics seem to also have various severities (error, hint, information, warning) which could be helpful, depending on how LuaCheck gives you the information... |
It would be helpful to have little tokens within the editor to show you where an error or linting issue is.
The text was updated successfully, but these errors were encountered: