(config: BasicDebugConfiguration)
| 161 | /// which might be after we recieve some events (since VS Code fires its event late - after all |
| 162 | /// initialisation has completed). |
| 163 | export function ensureDebugLaunchUniqueId(config: BasicDebugConfiguration): string { |
| 164 | const conf = config as any; |
| 165 | if (!conf.dartCodeDebugSessionID) { |
| 166 | const dartCodeDebugSessionID = `session-${getRandomInt(0x10000, 0x100000).toString(16)}`; |
| 167 | conf.dartCodeDebugSessionID = dartCodeDebugSessionID; |
| 168 | } |
| 169 | return conf.dartCodeDebugSessionID as string; |
| 170 | } |
| 171 | |
| 172 | export function isValidEntryFile(file: string | undefined) { |
| 173 | if (!file || !isDartFile(file)) |
no test coverage detected