Skip to content

Commit

Permalink
chore: update DiagnosticsOverview type with folderHash
Browse files Browse the repository at this point in the history
  • Loading branch information
Catalina Oyaneder committed Aug 23, 2024
1 parent 873beae commit c717d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/snyk/common/languageServer/languageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ import { LanguageClientMiddleware } from './middleware';
import { LanguageServerSettings, ServerSettings } from './settings';
import { CodeIssueData, IacIssueData, OssIssueData, Scan } from './types';
import { SnykDiagnosticsWebviewViewProvider } from '../views/diagnosticsOverviewWebviewProvider';

type DiagnosticOverview = {
product: 'oss' | 'code' | 'iac';
html: string;
};
import type { DiagnosticsOverview } from '../views/diagnosticsOverviewWebviewProvider';

export interface ILanguageServer {
start(): Promise<void>;
Expand Down Expand Up @@ -187,7 +183,7 @@ export class LanguageServer implements ILanguageServer {
this.scan$.next(scan);
});

client.onNotification(SNYK_DIAGNOSTICS_OVERVIEW, (diagnosticOverview: DiagnosticOverview) => {
client.onNotification(SNYK_DIAGNOSTICS_OVERVIEW, (diagnosticOverview: DiagnosticsOverview) => {
this.logger.info(`Diagnostics overview for ${diagnosticOverview.product}: ${diagnosticOverview.html}`);
const diagnosticsOverviewProvider = SnykDiagnosticsWebviewViewProvider.getInstance();
diagnosticsOverviewProvider.updateWebviewContent(diagnosticOverview.html);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type DiagnosticsOverview = {
product: 'oss' | 'code' | 'iac';
html: string;
folderPath: string;
folderHash: string;
};

export class SnykDiagnosticsWebviewViewProvider implements vscode.WebviewViewProvider {
Expand Down

0 comments on commit c717d4d

Please sign in to comment.