Minor improvements in symbol search.

This commit is contained in:
Martín Lucas Golini
2023-09-09 22:30:40 -03:00
parent e479760ec8
commit 9ba49ffab4
6 changed files with 171 additions and 35 deletions

View File

@@ -61,6 +61,12 @@ struct PluginDefinition {
PluginCreatorFn creatorSyncFn{ nullptr };
};
enum class PluginCapability {
WorkspaceSymbol,
TextDocumentSymbol,
Max
};
enum class PluginMessageType {
WorkspaceFolderChanged, // Broadcast the workspace folder from the application to the plugins
Diagnostics, // Broadcast a document diagnostics from the LSP Client
@@ -84,6 +90,7 @@ enum class PluginMessageType {
GetErrorOrWarning, // Request a component to provide the information of an error or warning in a
// particular document location
GetDiagnostics, // Request the diagnostic information from a cursor position
QueryPluginCapability, // Requests / queries if a plugin providers a capability
Undefined
};