Skip to content

Commit

Permalink
Patch for commit #e08240d
Browse files Browse the repository at this point in the history
Commit #e08240d also removed necessary 'sortSnippets'
  • Loading branch information
bdm-k committed Sep 5, 2024
1 parent b0d7172 commit 160af3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/settings/file_watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { parseSnippets, parseSnippetVariables, type SnippetVariables } from "../
import differenceImplementation from "set.prototype.difference";
// @ts-ignore
import intersectionImplementation from "set.prototype.intersection";
import { sortSnippets } from "src/snippets/sort";

const difference: <T>(self: Set<T>, other: Set<T>) => Set<T> = differenceImplementation;
const intersection: <T>(self: Set<T>, other: Set<T>) => Set<T> = intersectionImplementation;
Expand Down Expand Up @@ -170,5 +171,5 @@ export async function getSnippetsFromFiles(
}
}

return snippets;
return sortSnippets(snippets);
}

0 comments on commit 160af3a

Please sign in to comment.