From 700744de555c994ca88e378170fc055d2f176678 Mon Sep 17 00:00:00 2001 From: Tom French Date: Mon, 16 Oct 2023 13:05:00 +0100 Subject: [PATCH] chore: fix merge --- tooling/lsp/src/notifications/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tooling/lsp/src/notifications/mod.rs b/tooling/lsp/src/notifications/mod.rs index d86f81fed37..633c88b420a 100644 --- a/tooling/lsp/src/notifications/mod.rs +++ b/tooling/lsp/src/notifications/mod.rs @@ -1,7 +1,6 @@ use std::ops::ControlFlow; use async_lsp::{ErrorCode, LanguageClient, ResponseError}; -use fm::FILE_EXTENSION; use nargo::prepare_package; use nargo_toml::{find_package_manifest, resolve_workspace_from_toml, PackageSelection}; use noirc_driver::check_crate; @@ -127,9 +126,7 @@ pub(super) fn on_did_save_text_document( .filter_map(|FileDiagnostic { file_id, diagnostic, call_stack: _ }| { // Ignore diagnostics for any file that wasn't the file we saved // TODO: In the future, we could create "related" diagnostics for these files - // TODO: This currently just appends the `.nr` file extension that we store as a constant, - // but that won't work if we accept other extensions - if fm.path(file_id).with_extension(FILE_EXTENSION) != file_path { + if fm.path(file_id) != file_path { return None; }