We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a789598 commit 0fd04d8Copy full SHA for 0fd04d8
mlir/tools/mlir-lsp-server/mlir-lsp-server.cpp
@@ -34,12 +34,12 @@ int main(int argc, char **argv) {
34
#endif
35
36
// Returns the registry, except in testing mode when the URI contains
37
- // "_disable_lsp_registration".
+ // "-disable-lsp-registration". Testing for/example of registering dialects
38
+ // based on URI.
39
auto registryFn = [®istry,
40
&empty](const lsp::URIForFile &uri) -> DialectRegistry & {
41
(void)empty;
42
#ifdef MLIR_INCLUDE_TESTS
- llvm::errs() << "uri: " << uri.uri() << "\n";
43
if (uri.uri().contains("-disable-lsp-registration"))
44
return empty;
45
0 commit comments