Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 7dd9c7a

Browse files
committed
add warning when cargo.toml is missing
1 parent 617c21a commit 7dd9c7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extension.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function didOpenTextDocument(document: TextDocument, context: ExtensionContext):
5656
folder = getOuterMostWorkspaceFolder(folder);
5757
folder = getCargoTomlWorkspace(folder, document.uri.fsPath);
5858
if (!folder) {
59+
window.showWarningMessage(`A Cargo.toml was not found for document ${ document.uri.fsPath }`);
5960
return;
6061
}
6162

0 commit comments

Comments
 (0)