Skip to content

Commit 18d59c2

Browse files
authored
CUDA/CPP extension (#7726)
* Missing dot: "cu" -> ".cu" * Useless uppercase ".C" before needed lowercase ".c" * Add same CPP extensions as here: https://github.com/microsoft/vscode-cpptools/blob/f82b1beaa0899b67685441325592690a9b664be9/Extension/src/LanguageServer/cppBuildTaskProvider.ts#L83
1 parent f26ee1f commit 18d59c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export async function getRawJson(path: string | undefined): Promise<any> {
8989

9090
export function fileIsCOrCppSource(file: string): boolean {
9191
const fileExtLower: string = path.extname(file).toLowerCase();
92-
return ["cu", ".C", ".c", ".cpp", ".cc", ".cxx", ".mm", ".ino", ".inl"].some(ext => fileExtLower === ext);
92+
return [".cu", ".c", ".cpp", ".cc", ".cxx", ".c++", ".cp", ".tcc", ".mm", ".ino", ".ipp", ".inl"].some(ext => fileExtLower === ext);
9393
}
9494

9595
export function isEditorFileCpp(file: string): boolean {

0 commit comments

Comments
 (0)