microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.11.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/extension/debuggingConfiguration/configurationProviders/configProviderFactory.ts

23lines · modeblame

5471436aRedMickey5 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
09f6024fHeniker4 years ago4import { DebugScenarioType } from "../debugConfigTypesAndConstants";
5471436aRedMickey5 years ago5import { RunConfigProvider } from "./runConfigProvider";
6import { DebugConfigProvider } from "./debugConfigProvider";
7import { AttachConfigProvider } from "./attachConfigProvider";
8import { BaseConfigProvider } from "./baseConfigProvider";
9
10export class ConfigProviderFactory {
11public static create(configurationType: string): BaseConfigProvider {
12switch (configurationType) {
13case DebugScenarioType.RunApp:
14return new RunConfigProvider();
15case DebugScenarioType.DebugApp:
16return new DebugConfigProvider();
17case DebugScenarioType.AttachApp:
18return new AttachConfigProvider();
19default:
20throw new Error(`Couldn't find ${configurationType} config adapter type`);
21}
22}
23}