I'm trying to use Visual Studio Code for Perl (on Debian 9). I have installed VSCode extensions:

Code Outline (by Patryk Zawadzki);

Perl (by Henrik Sjooh).

Extension code-outline works great for .pl files but doesn't for .cgi files (although both .pl and .cgi recognized as Perl files). I can't find any info for how to fix it. Maybe someone did the same already? How to make code-outline extension works for .cgi files too?