MCPcopy Create free account
hub / github.com/Marus/cortex-debug / createTermName

Method createTermName

src/frontend/server_console.ts:129–140  ·  view source on GitHub ↗
(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
143export class GDBServerConsole {

Callers 1

setupTerminalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected