From 89fd8a66c987703801288300a78376cdf140c198 Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Sun, 10 Mar 2024 21:54:28 +0100 Subject: Add fallback in `odin check` to try all directory with odin code in them. --- src/server/requests.odin | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/server/requests.odin') diff --git a/src/server/requests.odin b/src/server/requests.odin index a877c69..00b649b 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -695,6 +695,7 @@ request_initialize :: proc( ) } + for format in initialize_params.capabilities.textDocument.hover.contentFormat { if format == "markdown" { config.hover_support_md = true @@ -1180,16 +1181,7 @@ notification_did_save :: proc( log.errorf("failed to collect symbols on save %v", ret) } - if len(config.profile.checker_path) > 0 { - check(config.profile.checker_path[:], writer, config) - } else { - if uri, ok := common.parse_uri( - config.workspace_folders[0].uri, - context.temp_allocator, - ); ok { - check({uri.path}, writer, config) - } - } + check(config.profile.checker_path[:], writer, config) return .None } -- cgit v1.2.3