From 3e9b781359a7dc841f4c4e69e69671dd30583267 Mon Sep 17 00:00:00 2001 From: Job Tijhuis Date: Fri, 25 Feb 2022 11:40:01 +0100 Subject: Add official VS Code Language identifier for CUDA (#273) * Change Language identifier for CUDA to correct one * Also keep 'old' language identifier `cuda` because it is what was used by extensions before Microsoft and Nvidia started using `cuda-cpp` --- package.json | 1 + src/CodeParserController.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 826e4e6..2a180dd 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ ], "activationEvents": [ "onLanguage:cuda", + "onLanguage:cuda-cpp", "onLanguage:cpp", "onLanguage:c" ], diff --git a/src/CodeParserController.ts b/src/CodeParserController.ts index 3b6348a..7a7c641 100644 --- a/src/CodeParserController.ts +++ b/src/CodeParserController.ts @@ -105,6 +105,7 @@ export default class CodeParserController { case "c": case "cpp": case "cuda": + case "cuda-cpp": parser = new CppParser(this.cfg); break; default: -- cgit v1.2.3