Skip to content

Commit

Permalink
Record paths for why isIgnoredFile file
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Sep 11, 2024
1 parent ba796e7 commit bc47460
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Workspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ bool WorkspaceFolder::isIgnoredFile(const std::filesystem::path& path, const std
// We want to test globs against a relative path to workspace, since that's what makes most sense
auto relativeFsPath = path.lexically_relative(rootUri.fsPath());
if (relativeFsPath == std::filesystem::path())
throw JsonRpcException(lsp::ErrorCode::InternalError, "isIgnoredFile failed: relative path is default-constructed");
throw JsonRpcException(lsp::ErrorCode::InternalError, "isIgnoredFile failed: relative path is default-constructed when constructing " +
path.string() + " against " + rootUri.fsPath().string());
auto relativePathString = relativeFsPath.generic_string(); // HACK: we convert to generic string so we get '/' separators

auto config = givenConfig ? *givenConfig : client->getConfiguration(rootUri);
Expand Down

0 comments on commit bc47460

Please sign in to comment.