microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fix-ts-error1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/debugger/debugSessionWrapper.ts

23lines · modeblame

d93677adRedMickey4 years ago1// 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 {
8private _sessionId: string;
9private _vsCodeDebugSession: DebugSession;
10
11constructor(vsCodeDebugSession: DebugSession) {
12this._vsCodeDebugSession = vsCodeDebugSession;
13this._sessionId = uuidv4();
14}
15
16get sessionId(): string {
17return this._sessionId;
18}
19
20get vsCodeDebugSession(): DebugSession {
21return this._vsCodeDebugSession;
22}
23}