...
async function fixImport(
file: string,
line: number,
char: number,
broken: string
) {
const fixed = broken + ".ts";
// open the file and replace 'broken' with 'fixed'
const relative = file.replace(Deno.cwd(), ".");
const decoder = new TextDecoder();
const bytes = await Deno.readFile(relative);
const content = decoder.decode(bytes);
...
}
...
...
async function fixImport(
file: string,
line: number,
char: number,
broken: string
) {
const fixed = broken + ".ts";
// open the file and replace 'broken' with 'fixed'
const relative = file.replace(Deno.cwd(), ".");
const decoder = new TextDecoder();
const bytes = await Deno.readFile(relative);
const content = decoder.decode(bytes);
...
}
...