@@ -165,19 +165,19 @@ export function getVcpkgRoot(): string {
165165export function isHeaderFile ( uri :vscode . Uri ) :boolean {
166166const fileExt :string = path . extname ( uri . fsPath ) ;
167167const fileExtLower :string = fileExt . toLowerCase ( ) ;
168- return ! fileExt || [ ".cuh" , ".hpp" , ".hh" , ".hxx" , ".h++" , ".hp" , ".h" , ".ii " , ".inl " , ".idl " , "" ] . some ( ext => fileExtLower === ext ) ;
168+ return ! fileExt || [ ".cuh" , ".hpp" , ".hh" , ".hxx" , ".h++" , ".hp" , ".h" , ".inl " , ".ipp " , ".tcc" , ".tlh" , ".tli ", "" ] . some ( ext => fileExtLower === ext ) ;
169169}
170170
171171export function isCppFile ( uri :vscode . Uri ) :boolean {
172172const fileExt :string = path . extname ( uri . fsPath ) ;
173173const fileExtLower :string = fileExt . toLowerCase ( ) ;
174- return ( fileExt === ".C" ) || [ ".cu" , ".cpp" , ".cc" , ".cxx" , ".c++" , ".cp" , ".ino " , ".ipp" , ".tcc "] . some ( ext => fileExtLower === ext ) ;
174+ return ( fileExt === ".C" ) || [ ".cu" , ".cpp" , ".cc" , ".cxx" , ".c++" , ".cp" , ".ii " , ".ino " ] . some ( ext => fileExtLower === ext ) ;
175175}
176176
177177export function isCFile ( uri :vscode . Uri ) :boolean {
178178const fileExt :string = path . extname ( uri . fsPath ) ;
179179const fileExtLower :string = fileExt . toLowerCase ( ) ;
180- return ( fileExt === ".C" ) || fileExtLower === ".c " ;
180+ return fileExt === ".c" || fileExtLower === ".i " ;
181181}
182182
183183export function isCppOrCFile ( uri :vscode . Uri | undefined ) :boolean {