Skip to content

Commit d77549f

Browse files
committed
fix: remove unnessary use of nuclide-debugger-common constants
Inline debugger type and name
1 parent ac4781e commit d77549f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/debugger/node/main.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import type {
55
import * as React from 'react';
66

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

109
export function createNodeDebuggerProvider(): NuclideDebuggerProvider {
1110
return {
12-
type: VsAdapterTypes.NODE,
11+
type: 'node',
1312
getLaunchAttachProvider: connection => {
1413
return new AutoGenLaunchAttachProvider(
15-
VsAdapterNames.NODE,
14+
'Node',
1615
connection,
1716
getNodeConfig(),
1817
);
@@ -112,7 +111,7 @@ function getNodeConfig(): AutoGenConfig {
112111
return {
113112
launch: {
114113
launch: true,
115-
vsAdapterType: VsAdapterTypes.NODE,
114+
vsAdapterType: 'node',
116115
properties: [
117116
program,
118117
cwd,
@@ -144,7 +143,7 @@ function getNodeConfig(): AutoGenConfig {
144143
},
145144
attach: {
146145
launch: false,
147-
vsAdapterType: VsAdapterTypes.NODE,
146+
vsAdapterType: 'node',
148147
properties: [port],
149148
scriptExtension: '.js',
150149
header: <p>Attach to a running node.js process</p>,

0 commit comments

Comments
 (0)