|
20 | 20 | "onLanguage:objective-c", |
21 | 21 | "onLanguage:java", |
22 | 22 | "onLanguage:javascript", |
23 | | - "onLanguage:typescript" |
| 23 | + "onLanguage:typescript", |
| 24 | + "onLanguage:proto" |
24 | 25 | ], |
25 | 26 | "contributes": { |
26 | 27 | "configuration": { |
|
37 | 38 | "default": "clang-format", |
38 | 39 | "description": "clang-format executable path" |
39 | 40 | }, |
| 41 | + // style |
40 | 42 | "clang-format.style": { |
41 | 43 | "type": "string", |
42 | 44 | "default": "file", |
43 | 45 | "description": "clang-format style.(-style=value, value can be file, LLVM, Google, Chromium, Mozilla, WebKit or json configure)" |
44 | 46 | }, |
| 47 | + // fallback style |
45 | 48 | "clang-format.fallbackStyle": { |
46 | 49 | "type": "string", |
47 | 50 | "default": "LLVM", |
48 | 51 | "description": "clang-format fallback style.(-fallback-style=value, value can be none, LLVM, Google, Chromium, Mozilla, WebKit)" |
| 52 | + }, |
| 53 | + // every language can has it's own style & fallback style option, if not confirured, use the default value above |
| 54 | + "clang-format.language.cpp.style": { |
| 55 | + "type": "string", |
| 56 | + "default": "", |
| 57 | + "description": "clang-format fallback style for c++, left empty to use clang-format.style" |
| 58 | + }, |
| 59 | + "clang-format.language.cpp.fallbackStyle": { |
| 60 | + "type": "string", |
| 61 | + "default": "", |
| 62 | + "description": "clang-format fallback style for c++, left empty to use clang-format.fallbackStyle" |
| 63 | + }, |
| 64 | + "clang-format.language.c.style": { |
| 65 | + "type": "string", |
| 66 | + "default": "", |
| 67 | + "description": "clang-format fallback style for c, left empty to use clang-format.style" |
| 68 | + }, |
| 69 | + "clang-format.language.c.fallbackStyle": { |
| 70 | + "type": "string", |
| 71 | + "default": "", |
| 72 | + "description": "clang-format fallback style for c, left empty to use clang-format.fallbackStyle" |
| 73 | + }, |
| 74 | + "clang-format.language.objective-c.style": { |
| 75 | + "type": "string", |
| 76 | + "default": "", |
| 77 | + "description": "clang-format fallback style for objective-c, left empty to use clang-format.style" |
| 78 | + }, |
| 79 | + "clang-format.language.objective-c.fallbackStyle": { |
| 80 | + "type": "string", |
| 81 | + "default": "", |
| 82 | + "description": "clang-format fallback style for objective-c, left empty to use clang-format.fallbackStyle" |
| 83 | + }, |
| 84 | + "clang-format.language.java.style": { |
| 85 | + "type": "string", |
| 86 | + "default": "", |
| 87 | + "description": "clang-format fallback style for java, left empty to use clang-format.style" |
| 88 | + }, |
| 89 | + "clang-format.language.java.fallbackStyle": { |
| 90 | + "type": "string", |
| 91 | + "default": "", |
| 92 | + "description": "clang-format fallback style for java, left empty to use clang-format.fallbackStyle" |
| 93 | + }, |
| 94 | + "clang-format.language.javascript.style": { |
| 95 | + "type": "string", |
| 96 | + "default": "", |
| 97 | + "description": "clang-format fallback style for javascript, left empty to use clang-format.style" |
| 98 | + }, |
| 99 | + "clang-format.language.javascript.fallbackStyle": { |
| 100 | + "type": "string", |
| 101 | + "default": "", |
| 102 | + "description": "clang-format fallback style for javascript, left empty to use clang-format.fallbackStyle" |
| 103 | + }, |
| 104 | + "clang-format.language.typescript.style": { |
| 105 | + "type": "string", |
| 106 | + "default": "", |
| 107 | + "description": "clang-format fallback style for typescript, left empty to use clang-format.style" |
| 108 | + }, |
| 109 | + "clang-format.language.typescript.fallbackStyle": { |
| 110 | + "type": "string", |
| 111 | + "default": "", |
| 112 | + "description": "clang-format fallback style for typescript, left empty to use clang-format.fallbackStyle" |
| 113 | + }, |
| 114 | + "clang-format.language.proto.style": { |
| 115 | + "type": "string", |
| 116 | + "default": "", |
| 117 | + "description": "clang-format fallback style for proto, left empty to use clang-format.style" |
| 118 | + }, |
| 119 | + "clang-format.language.proto.fallbackStyle": { |
| 120 | + "type": "string", |
| 121 | + "default": "", |
| 122 | + "description": "clang-format fallback style for proto, left empty to use clang-format.fallbackStyle" |
49 | 123 | } |
50 | 124 | } |
51 | 125 | } |
|
0 commit comments