microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
smoke-actionbar-use-packager-helper

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/debugger/debugSessionWrapper.ts

23lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import { DebugSession } from "vscode";
5import { v4 as uuidv4 } from "uuid";
6
7export 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}