microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/debugger/debugSessionWrapper.ts
23lines · modeblame
d93677adRedMickey4 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
| 3 | | |
| 4 | import { DebugSession } from "vscode"; | |
| 5 | import { v4 as uuidv4 } from "uuid"; | |
| 6 | | |
| 7 | export class RNSession { | |
| 8 | private _sessionId: string; | |
| 9 | private _vsCodeDebugSession: DebugSession; | |
| 10 | | |
| 11 | constructor(vsCodeDebugSession: DebugSession) { | |
| 12 | this._vsCodeDebugSession = vsCodeDebugSession; | |
| 13 | this._sessionId = uuidv4(); | |
| 14 | } | |
| 15 | | |
| 16 | get sessionId(): string { | |
| 17 | return this._sessionId; | |
| 18 | } | |
| 19 | | |
| 20 | get vsCodeDebugSession(): DebugSession { | |
| 21 | return this._vsCodeDebugSession; | |
| 22 | } | |
| 23 | } |