From 22252a5c2c64566d519c8c39c56f41a69cc2478b Mon Sep 17 00:00:00 2001 From: Knut Funkel Date: Tue, 15 Oct 2024 11:27:48 +0200 Subject: [PATCH] tidy: remove spaces --- CONTRIBUTING.md | 4 +++- .../views/suggestion/codeSuggestionWebviewProvider.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 879704451..382ef7b3b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,13 +25,15 @@ Code changes require extension reload when run in debug. ## Run tests and debug - Unit tests - - Run `npm run test:unit` for a single execution, `npm run test:unit:watch` to watch for changes. - Make sure to re-run the command to pick up new files, if new `**.test.ts` is added. - Integration tests - Run `npm run test:integration`. +- Run Lint + - npm `npm run lint` + You can debug tests via VS Code debugger, selecting "Extension Unit Tests" or "Extension Integration Tests" respectively. ## Analytics, experimentation and error reporting diff --git a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts index f674d0dc8..8d9e93e8d 100644 --- a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts +++ b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts @@ -309,7 +309,7 @@ export class CodeSuggestionWebviewProvider try { await vscode.commands.executeCommand(SNYK_CODE_SUBMIT_FIX_FEEDBACK, fixId, 'FIX_APPLIED'); } catch (e) { - throw new Error('Error in submit fix feedback'); + throw new Error('Error in submit fix feedback'); } break; }