Skip to content

Commit

Permalink
fix: remove unnessary use of nuclide-debugger-common constants
Browse files Browse the repository at this point in the history
Inline debugger type and name
  • Loading branch information
aminya committed Oct 25, 2020
1 parent ac4781e commit d77549f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/debugger/node/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import type {
import * as React from 'react';

import {AutoGenLaunchAttachProvider} from '@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachProvider';
import {VsAdapterTypes, VsAdapterNames} from '@atom-ide-community/nuclide-debugger-common';

export function createNodeDebuggerProvider(): NuclideDebuggerProvider {
return {
type: VsAdapterTypes.NODE,
type: 'node',
getLaunchAttachProvider: connection => {
return new AutoGenLaunchAttachProvider(
VsAdapterNames.NODE,
'Node',
connection,
getNodeConfig(),
);
Expand Down Expand Up @@ -112,7 +111,7 @@ function getNodeConfig(): AutoGenConfig {
return {
launch: {
launch: true,
vsAdapterType: VsAdapterTypes.NODE,
vsAdapterType: 'node',
properties: [
program,
cwd,
Expand Down Expand Up @@ -144,7 +143,7 @@ function getNodeConfig(): AutoGenConfig {
},
attach: {
launch: false,
vsAdapterType: VsAdapterTypes.NODE,
vsAdapterType: 'node',
properties: [port],
scriptExtension: '.js',
header: <p>Attach to a running node.js process</p>,
Expand Down

0 comments on commit d77549f

Please sign in to comment.