Skip to content

Commit 162ec40

Browse files
Merge pull request #273 from digma-ai/fix/error-view
Fix error view
2 parents c33e3bb + 2ebca92 commit 162ec40

File tree

3 files changed

+230
-170
lines changed

3 files changed

+230
-170
lines changed

src/services/analyticsProvider.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export interface GetRecentActivityResponse {
6464
entries: ActivityEntry[];
6565
}
6666

67-
6867
type QueryParams = [string, any][] | undefined;
6968

7069
export class EndpointSchema {
@@ -151,8 +150,8 @@ export interface ErrorFlowSummary {
151150
isNew: boolean;
152151
frequency: Frequency;
153152
impact: Impact;
154-
lastOccurrenceTime: moment.Moment;
155-
firstOccurrenceTime: moment.Moment;
153+
lastOccurenceTime: moment.Moment;
154+
firstOccurenceTime: moment.Moment;
156155
unhandled: boolean;
157156
unexpected: boolean;
158157
rootSpan: string;
@@ -294,8 +293,8 @@ export interface CodeObjectErrorResponse {
294293
characteristic: string;
295294
startsHere: boolean;
296295
endsHere: boolean;
297-
firstOccurrenceTime: moment.Moment;
298-
lastOccurrenceTime: moment.Moment;
296+
firstOccurenceTime: moment.Moment;
297+
lastOccurenceTime: moment.Moment;
299298
}
300299

301300
export interface CodeObjectError {
@@ -305,8 +304,8 @@ export interface CodeObjectError {
305304
characteristic: string;
306305
startsHere: boolean;
307306
endsHere: boolean;
308-
firstOccurrenceTime: moment.Moment;
309-
lastOccurrenceTime: moment.Moment;
307+
firstOccurenceTime: moment.Moment;
308+
lastOccurenceTime: moment.Moment;
310309
dayAvg: integer;
311310
handledLocally: boolean;
312311
score: integer;
@@ -462,10 +461,14 @@ export class AnalyticsProvider {
462461
}
463462

464463
private getTheme(): string | null {
465-
if (vscode.window.activeColorTheme.kind === vscode.ColorThemeKind.Dark) {
464+
if (
465+
vscode.window.activeColorTheme.kind === vscode.ColorThemeKind.Dark
466+
) {
466467
return "dark";
467468
}
468-
if (vscode.window.activeColorTheme.kind === vscode.ColorThemeKind.Light) {
469+
if (
470+
vscode.window.activeColorTheme.kind === vscode.ColorThemeKind.Light
471+
) {
469472
return "light";
470473
}
471474
return null;

0 commit comments

Comments
 (0)