Skip to content

Commit

Permalink
chore: removed unnecessary file and toggle code ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusZdroba committed Nov 21, 2024
1 parent b1218bd commit 85601d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ declare const acquireVsCodeApi: any;

const ignoreContainerElements = document.getElementsByClassName('ignore-action-container');
if (ignoreContainerElements) {
toggleElement((ignoreContainerElements[0] as HTMLElement), "show");

Check failure on line 218 in src/snyk/snykCode/views/suggestion/codeSuggestionWebviewScriptLS.ts

View workflow job for this annotation

GitHub Actions / Build and Test (ubuntu-latest)

Replace `(ignoreContainerElements[0]·as·HTMLElement),·"show"` with `ignoreContainerElements[0]·as·HTMLElement,·'show'`

Check failure on line 218 in src/snyk/snykCode/views/suggestion/codeSuggestionWebviewScriptLS.ts

View workflow job for this annotation

GitHub Actions / Build and Test (macos-latest)

Replace `(ignoreContainerElements[0]·as·HTMLElement),·"show"` with `ignoreContainerElements[0]·as·HTMLElement,·'show'`
(ignoreContainerElements[0] as HTMLElement).style.display = suggestion?.showInlineIgnoresButton ? 'block' : 'none';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ export class IacSuggestionWebviewProvider
// data-ide-style is a placeholder defined in the Language Server
// to be replaced with the custom IDE styles.
html = html.replace(

Check failure on line 109 in src/snyk/snykIac/views/suggestion/iacSuggestionWebviewProvider.ts

View workflow job for this annotation

GitHub Actions / Build and Test (ubuntu-latest)

Replace `⏎······'${ideStyle}',⏎······`<style·nonce="${nonce}">${ideStyle}</style>`,⏎····` with `'${ideStyle}',·`<style·nonce="${nonce}">${ideStyle}</style>``

Check failure on line 109 in src/snyk/snykIac/views/suggestion/iacSuggestionWebviewProvider.ts

View workflow job for this annotation

GitHub Actions / Build and Test (macos-latest)

Replace `⏎······'${ideStyle}',⏎······`<style·nonce="${nonce}">${ideStyle}</style>`,⏎····` with `'${ideStyle}',·`<style·nonce="${nonce}">${ideStyle}</style>``
'<style nonce="ideNonce" data-ide-style></style>',
'${ideStyle}',
`<style nonce="${nonce}">${ideStyle}</style>`,
);
html = html.replace("${ideScript}", "");

Check failure on line 113 in src/snyk/snykIac/views/suggestion/iacSuggestionWebviewProvider.ts

View workflow job for this annotation

GitHub Actions / Build and Test (ubuntu-latest)

Replace `"${ideScript}",·""` with `'${ideScript}',·''`

Check failure on line 113 in src/snyk/snykIac/views/suggestion/iacSuggestionWebviewProvider.ts

View workflow job for this annotation

GitHub Actions / Build and Test (macos-latest)

Replace `"${ideScript}",·""` with `'${ideScript}',·''`
return html;
}

Expand Down
180 changes: 0 additions & 180 deletions src/snyk/snykIac/views/suggestion/iacSuggestionWebviewScript.ts

This file was deleted.

0 comments on commit 85601d9

Please sign in to comment.