Skip to content

Commit

Permalink
The trustedExtensionAuthAccess env VSCODE_TRUSTED_EXTENSIONS is Case …
Browse files Browse the repository at this point in the history
…Sensitive (#368)

---------
  • Loading branch information
satyamburhade authored Aug 5, 2024
1 parent 225a8c4 commit 9a769bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launcher/src/trusted-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class TrustedExtensions {

for (const extension of env.VSCODE_TRUSTED_EXTENSIONS.split(',')) {
if (extension) {
if (extension.match(/^[a-z0-9][a-z0-9-]*\.[a-z0-9][a-z0-9-.]*$/)) {
extensions.push(extension);
if (extension.match(/^[A-Za-z0-9][A-Za-z0-9-]*\.[A-Za-z0-9][A-Za-z0-9-.]*$/)) {
extensions.push(extension.toLowerCase());
console.log(` > add ${extension}`);
} else {
console.log(` > failure to add [${extension}] because of wrong identifier`);
Expand Down

0 comments on commit 9a769bd

Please sign in to comment.