@@ -165,19 +165,19 @@ export function getVcpkgRoot(): string {
165
165
export function isHeaderFile ( uri : vscode . Uri ) : boolean {
166
166
const fileExt : string = path . extname ( uri . fsPath ) ;
167
167
const 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 ) ;
169
169
}
170
170
171
171
export function isCppFile ( uri : vscode . Uri ) : boolean {
172
172
const fileExt : string = path . extname ( uri . fsPath ) ;
173
173
const 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 ) ;
175
175
}
176
176
177
177
export function isCFile ( uri : vscode . Uri ) : boolean {
178
178
const fileExt : string = path . extname ( uri . fsPath ) ;
179
179
const fileExtLower : string = fileExt . toLowerCase ( ) ;
180
- return ( fileExt === ".C" ) || fileExtLower === ".c " ;
180
+ return fileExt === ".c" || fileExtLower === ".i " ;
181
181
}
182
182
183
183
export function isCppOrCFile ( uri : vscode . Uri | undefined ) : boolean {
0 commit comments