From 65725ec9d6defdcf018fab87f09c5faf4f6d481b Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Sun, 9 Feb 2025 23:07:13 +0500 Subject: [PATCH] Include check for volumes (#318) --- src/Lib/Diagnostics/Format/diagnose.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Lib/Diagnostics/Format/diagnose.ts b/src/Lib/Diagnostics/Format/diagnose.ts index 5b1a410..03f1578 100644 --- a/src/Lib/Diagnostics/Format/diagnose.ts +++ b/src/Lib/Diagnostics/Format/diagnose.ts @@ -17,6 +17,13 @@ export function format_diagnose_path(pack: Pack, uri: string, diagnoser: Diagnos const relpath = uri.slice(index + length); + if (relpath.startsWith('volumes/')) diagnoser.add( + 0, + `Volume files have been removed`, + DiagnosticSeverity.error, + "behaviorpack.volumes.deprecated" + ); + if (relpath.length > LengthFromRoot) { diagnoser.add( 0,