Skip to content

Commit 3da568a

Browse files
Merge pull request #360 from mcecode/vscode-cmake-support
feat(vscode-plugin): Add CMake Support
2 parents 39dbb34 + ff87fe5 commit 3da568a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/vscode-plugin/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
],
3333
"activationEvents": [
3434
"onLanguage:c",
35+
"onLanguage:cmake",
3536
"onLanguage:cpp",
3637
"onLanguage:csharp",
3738
"onLanguage:git-commit",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
project(HelloWorld)
3+
add_executable(HelloWorld #[[ Errorz ]] cpp.cpp)

packages/vscode-plugin/src/tests/suite/languages.test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ describe('Languages >', () => {
2121
// Uncomment when #65 is fixed.
2222
// { type: 'Shellscript without extension', file: 'shellscript', row: 2, column: 2 },
2323

24-
// VSCode doesn't support Haskell, Nix, and TOML files out of the box. Uncomment when you figure
25-
// out how to support them during testing.
24+
// VSCode doesn't support CMake, Haskell, Nix, and TOML files out of the box. Uncomment when you
25+
// figure out how to support them during testing.
26+
// { type: 'CMake', file: 'CMakeLists.txt', row: 2, column: 30 },
2627
// { type: 'Haskell', file: 'haskell.hs', row: 1, column: 3 },
2728
// { type: 'Nix', file: 'nix.nix', row: 1, column: 2 },
2829
// { type: 'TOML', file: 'toml.toml', row: 1, column: 2 },

0 commit comments

Comments
 (0)