Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"onLanguage:glsl",
"onLanguage:hlsl",
"onLanguage:cuda",
"onLanguage:cuda-cpp"
"onLanguage:cuda-cpp",
"onLanguage:tablegen"
],
"contributes": {
"configuration": {
Expand Down Expand Up @@ -305,6 +306,21 @@
"default": "",
"description": "clang-format fallback style for CUDA, left empty to use clang-format.fallbackStyle"
},
"clang-format.language.tablegen.enable": {
"type": "boolean",
"default": true,
"description": "enable formatting for TableGen (requires reloading Visual Studio Code)"
},
"clang-format.language.teblegen.style": {
"type": "string",
"default": "",
"description": "clang-format fallback style for TableGen, left empty to use clang-format.style"
},
"clang-format.language.teblegen.fallbackStyle": {
"type": "string",
"default": "",
"description": "clang-format fallback style for TableGen, left empty to use clang-format.fallbackStyle"
},
"clang-format.assumeFilename": {
"type": "string",
"default": "",
Expand Down
2 changes: 1 addition & 1 deletion src/clangMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const ALIAS = {
};

let languages: string[] = [];
for (let l of ['cpp', 'c', 'csharp', 'objective-c', 'objective-cpp', 'java', 'javascript', 'json', 'typescript', 'proto', 'proto3', 'textproto', 'apex', 'glsl', 'hlsl', 'cuda', 'cuda-cpp']) {
for (let l of ['cpp', 'c', 'csharp', 'objective-c', 'objective-cpp', 'java', 'javascript', 'json', 'typescript', 'proto', 'proto3', 'textproto', 'apex', 'glsl', 'hlsl', 'cuda', 'cuda-cpp','tablegen']) {
let confKey = `language.${ALIAS[l] || l}.enable`;
if (vscode.workspace.getConfiguration('clang-format').get(confKey)) {
languages.push(l);
Expand Down