Skip to content

Commit bc47460

Browse files
committed
Record paths for why isIgnoredFile file
1 parent ba796e7 commit bc47460

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Workspace.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ bool WorkspaceFolder::isIgnoredFile(const std::filesystem::path& path, const std
140140
// We want to test globs against a relative path to workspace, since that's what makes most sense
141141
auto relativeFsPath = path.lexically_relative(rootUri.fsPath());
142142
if (relativeFsPath == std::filesystem::path())
143-
throw JsonRpcException(lsp::ErrorCode::InternalError, "isIgnoredFile failed: relative path is default-constructed");
143+
throw JsonRpcException(lsp::ErrorCode::InternalError, "isIgnoredFile failed: relative path is default-constructed when constructing " +
144+
path.string() + " against " + rootUri.fsPath().string());
144145
auto relativePathString = relativeFsPath.generic_string(); // HACK: we convert to generic string so we get '/' separators
145146

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

0 commit comments

Comments
 (0)