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
/// File to inspect. Omit to list diagnostics for every file.
26
+
pubpath:Option<String>,
27
+
}
28
+
29
+
implLspTool{
30
+
pubfnnew(manager:LspManager) -> Self{
31
+
Self{ manager }
32
+
}
33
+
}
34
+
35
+
implToolforLspTool{
36
+
constNAME:&'staticstr = "lsp_diagnostics";
37
+
38
+
typeError = ToolError;
39
+
typeArgs = LspArgs;
40
+
typeOutput = String;
41
+
42
+
fndescription(&self) -> String{
43
+
"Get language-server diagnostics (errors/warnings). With `path`: diagnostics for that file, synced from disk first. Without: every file that currently has diagnostics.".to_string()
44
+
}
45
+
46
+
fnparameters(&self) -> serde_json::Value{
47
+
serde_json::json!({
48
+
"type":"object",
49
+
"properties":{
50
+
"path":{"type":"string","description":"File to inspect (optional; omit for all files)"}
0 commit comments