f5devcentral / vscode-f5-flipper

Exploring Citrix/NetScaler configs
Apache License 2.0
8 stars 4 forks source link

[BUG] report output blending with previous config #24

Closed DumpySquare closed 3 months ago

DumpySquare commented 1 year ago

recently doing a demo and saw that the example config we previously reviewed was included in the report.

Need to make sure everything is cleared when the clear function is called

DumpySquare commented 3 months ago

pending fix in v1.8.0

updated the nsCfgViewProvider.clear() function to reset the diagnostics storage objects

    clear(): void {
        this.adc = undefined;
        this.explosion = undefined;
        this.parsedFileEvents.length = 0;

        // reset the diagnostic stats
        this.diagStats = {
            defaultRedirects: 0,
            Green: undefined,
            Information: undefined,
            Warning: undefined,
            Error: undefined,
        };
        this.diags = {
            defaultRedirects: [],
            Green: [],
            Information: [],
            Warning: [],
            Error: [],
        };
        this.refresh();
    }