MCPcopy
hub / github.com/shufo/vscode-blade-formatter / formatSameAsBladeFormatter

Function formatSameAsBladeFormatter

src/test/support/util.ts:7–18  ·  view source on GitHub ↗
(
	file: any,
	formattedFile: any,
	options: any = {},
)

Source from the content-addressed store, hash-verified

5import { ExtensionConstants } from "../../constants";
6
7export async function formatSameAsBladeFormatter(
8 file: any,
9 formattedFile: any,
10 options: any = {},
11) {
12 const { actual, source } = await format(options.workspace ?? "project", file);
13 const formatted = await getContent(
14 options.workspace ?? "project",
15 formattedFile,
16 );
17 assert.equal(actual, formatted);
18}
19
20export async function getDoc(filename: string): Promise<TextDocument> {
21 const base = getWorkspaceFolderUri("project");

Callers 1

extension.test.tsFile · 0.90

Calls 2

formatFunction · 0.85
getContentFunction · 0.85

Tested by

no test coverage detected