Method
createTermName
(want: string, existing: string | null)
Source from the content-addressed store, hash-verified
| 127 | } |
| 128 | |
| 129 | public static createTermName(want: string, existing: string | null): string { |
| 130 | let ret = want; |
| 131 | let count = 1; |
| 132 | while (vscode.window.terminals.findIndex((t) => t.name === ret) >= 0) { |
| 133 | if (existing === ret) { |
| 134 | return existing; |
| 135 | } |
| 136 | ret = `${want}-${count}`; |
| 137 | count = count + 1; |
| 138 | } |
| 139 | return ret; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | export class GDBServerConsole { |
Tested by
no test coverage detected