diff --git a/src/vs/editor/contrib/comment/blockCommentCommand.ts b/src/vs/editor/contrib/comment/blockCommentCommand.ts index 3c8caf720d507db6063a06cc21d1da679a8563bd..d6ceea7e08d098978387dfcdbc2ef80bcca85890 100644 --- a/src/vs/editor/contrib/comment/blockCommentCommand.ts +++ b/src/vs/editor/contrib/comment/blockCommentCommand.ts @@ -32,8 +32,11 @@ export class BlockCommentCommand implements editorCommon.ICommand { if (offset + needleLength > haystackLength) { return false; } + + const haystackUpper = haystack.toUpperCase(); + const needleUpper = needle.toUpperCase(); for (let i = 0; i < needleLength; i++) { - if (haystack.charCodeAt(offset + i) !== needle.charCodeAt(i)) { + if (haystackUpper.charCodeAt(offset + i) !== needleUpper.charCodeAt(i)) { return false; } }