|
79 | 79 | "properties": { |
80 | 80 | "bandit.args": { |
81 | 81 | "default": [], |
82 | | - "description": "Arguments passed in. Each argument is a separate item in the array.", |
| 82 | + "markdownDescription": "%settings.args.description%", |
83 | 83 | "items": { |
84 | 84 | "type": "string" |
85 | 85 | }, |
|
88 | 88 | }, |
89 | 89 | "bandit.enabled": { |
90 | 90 | "default": true, |
91 | | - "markdownDescription": "Enable/disable linting Python files with Bandit.", |
| 91 | + "markdownDescription": "%settings.enabled.description%", |
92 | 92 | "scope": "resource", |
93 | 93 | "type": "boolean" |
94 | 94 | }, |
95 | 95 | "bandit.path": { |
96 | 96 | "default": [], |
97 | | - "description": "When set to a path to bandit binary, extension will use that. NOTE: Using this option may slowdown server response time.", |
| 97 | + "markdownDescription": "%settings.path.description%", |
98 | 98 | "scope": "resource", |
99 | 99 | "items": { |
100 | 100 | "type": "string" |
|
103 | 103 | }, |
104 | 104 | "bandit.importStrategy": { |
105 | 105 | "default": "useBundled", |
106 | | - "description": "Defines where `bandit` is imported from. This setting may be ignored if `bandit.path` is set.", |
| 106 | + "markdownDescription": "%settings.importStrategy.description%", |
107 | 107 | "enum": [ |
108 | 108 | "useBundled", |
109 | 109 | "fromEnvironment" |
110 | 110 | ], |
111 | 111 | "enumDescriptions": [ |
112 | | - "Always use the bundled version of `bandit`.", |
113 | | - "Use `bandit` from environment, fallback to bundled version only if `bandit` not available in the environment." |
| 112 | + "%settings.importStrategy.useBundled.description%", |
| 113 | + "%settings.importStrategy.fromEnvironment.description%" |
114 | 114 | ], |
115 | 115 | "scope": "window", |
116 | 116 | "type": "string" |
117 | 117 | }, |
118 | 118 | "bandit.interpreter": { |
119 | 119 | "default": [], |
120 | | - "description": "When set to a path to python executable, extension will use that to launch the server and any subprocess.", |
| 120 | + "markdownDescription": "%settings.interpreter.description%", |
121 | 121 | "scope": "resource", |
122 | 122 | "items": { |
123 | 123 | "type": "string" |
|
126 | 126 | }, |
127 | 127 | "bandit.showNotifications": { |
128 | 128 | "default": "off", |
129 | | - "description": "Controls when notifications are shown by this extension.", |
| 129 | + "markdownDescription": "%settings.showNotifications.description%", |
130 | 130 | "enum": [ |
131 | 131 | "off", |
132 | 132 | "onError", |
133 | 133 | "onWarning", |
134 | 134 | "always" |
135 | 135 | ], |
136 | 136 | "enumDescriptions": [ |
137 | | - "All notifications are turned off, any errors or warning are still available in the logs.", |
138 | | - "Notifications are shown only in the case of an error.", |
139 | | - "Notifications are shown for errors and warnings.", |
140 | | - "Notifications are show for anything that the server chooses to show." |
| 137 | + "%settings.showNotifications.off.description%", |
| 138 | + "%settings.showNotifications.onError.description%", |
| 139 | + "%settings.showNotifications.onWarning.description%", |
| 140 | + "%settings.showNotifications.always.description%" |
141 | 141 | ], |
142 | 142 | "scope": "machine", |
143 | 143 | "type": "string" |
|
146 | 146 | }, |
147 | 147 | "commands": [ |
148 | 148 | { |
149 | | - "title": "Restart Server", |
| 149 | + "title": "%command.restartServer%", |
150 | 150 | "category": "Bandit", |
151 | 151 | "command": "bandit.restart" |
152 | 152 | } |
|
0 commit comments