(unit: string)
| 1276 | } |
| 1277 | |
| 1278 | function resolveIndentWidth(unit: string): number { |
| 1279 | if (typeof unit !== "string" || !unit.length) return 4; |
| 1280 | let width = 0; |
| 1281 | for (const ch of unit) { |
| 1282 | if (ch === "\t") return 4; |
| 1283 | width += 1; |
| 1284 | } |
| 1285 | return width || 4; |
| 1286 | } |
| 1287 | |
| 1288 | const defaultManager = new LspClientManager(); |
| 1289 |
no outgoing calls
no test coverage detected