Add fileUtils.ts

[?]
Dec 24, 2020, 1:19 AM
F2OLRT5VIROPZFGQLH653CEFZWESSCAPQ2ARDM2U7DW4HGJQUXCQC

Dependencies

  • [2] IBRKAWNM Moved utility modules into their own folder

Change contents

  • file addition: fileUtils.ts (-xw-x--x--)
    [2.135]
    import * as path from 'path';
    import { Uri, workspace } from 'vscode';
    export function createResourceUri (relativePath: string): Uri {
    const absolutePath = path.join(workspace.workspaceFolders?.[0]?.uri.path ?? '', relativePath);
    return Uri.file(absolutePath);
    }