From 4a212d84ecbdf5cd9a67ce4c97371875b099aaf2 Mon Sep 17 00:00:00 2001 From: "Han, Xu" Date: Mon, 29 Dec 2025 14:08:48 +0800 Subject: [PATCH] add *.sycl support for SYCL C++. --- Extension/src/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extension/src/common.ts b/Extension/src/common.ts index e32f23043..78fe5d4bc 100644 --- a/Extension/src/common.ts +++ b/Extension/src/common.ts @@ -171,7 +171,7 @@ export function isHeaderFile(uri: vscode.Uri): boolean { export function isCppFile(uri: vscode.Uri): boolean { const fileExt: string = path.extname(uri.fsPath); const fileExtLower: string = fileExt.toLowerCase(); - return (fileExt === ".C") || [".cu", ".cpp", ".cc", ".cxx", ".c++", ".cp", ".ii", ".ino"].some(ext => fileExtLower === ext); + return (fileExt === ".C") || [".cu", ".cpp", ".cc", ".cxx", ".c++", ".cp", ".ii", ".ino", ".sycl"].some(ext => fileExtLower === ext); } export function isCFile(uri: vscode.Uri): boolean {