thecodrr/fdir

Issue with SharePoint project accessible over the network

glenn2223 opened this issue · 2 comments

Hey, me again! Got another issue over at glenn2223/vscode-live-sass-compiler#253. Is this out of scope?

For reference, it's from about this comment you probably care about.

The code snippet below is what produced the highlighted output in this comment

try {
    const x = (await new fdir()
        .crawlWithOptions(basePath, {
            filters: [
                (filePath) =>
                    filePath.toLowerCase().endsWith(".scss") ||
                    filePath.toLowerCase().endsWith(".sass"),
            ],
            includeBasePath: true,
            resolvePaths: true,
            suppressErrors: false,
        })
        .withPromise());

    OutputWindow.Show(OutputLevel.Trace, "fdir Output", [
        JSON.stringify(x),
    ]);
} catch (error) {
    let message = "Unknown Error",
        json = '{"json":null}';

    if (error instanceof Error) {
        message = error.message;

        json = JSON.parse(
            JSON.stringify(error, Object.getOwnPropertyNames(error))
        );
    }

    OutputWindow.Show(OutputLevel.Trace, "fdir ERROR", [
        message,
        json,
    ]);
}

@glenn2223 is this still an issue?

No, sorry - closing