Skip to content

Commit f8ed290

Browse files
authored
fix(codewhisperer): update security scan error message (#2770)
## Problem If customer opens a non-text document, for example images, and hit security scan, they will see Please open a file you want to scan to proceed, which can be confusing. ## Solution To update the error message to handle this case.
1 parent 5304b73 commit f8ed290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codewhisperer/commands/basicCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const showSecurityScan = Commands.declare(
158158
startSecurityScanWithProgress(securityPanelViewProvider, editor, client, context.extensionContext)
159159
}
160160
} else {
161-
vscode.window.showInformationMessage('Please open a file you want to scan to proceed.')
161+
vscode.window.showInformationMessage('Please open a valid file you want to scan to proceed.')
162162
}
163163
}
164164
)

0 commit comments

Comments
 (0)