Skip to content

Commit

Permalink
Include check for volumes (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix authored Feb 9, 2025
1 parent f5d4a35 commit 65725ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Lib/Diagnostics/Format/diagnose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 65725ec

Please sign in to comment.