diff --git a/src/DebugConfigurationProvider.spec.ts b/src/DebugConfigurationProvider.spec.ts index 8b16f1d9..0ca4d574 100644 --- a/src/DebugConfigurationProvider.spec.ts +++ b/src/DebugConfigurationProvider.spec.ts @@ -7,6 +7,7 @@ import type { WorkspaceFolder } from 'vscode'; import { QuickPickItemKind } from 'vscode'; import Uri from 'vscode-uri'; import type { BrightScriptLaunchConfiguration } from './DebugConfigurationProvider'; +import { manualHostItemId } from './DebugConfigurationProvider'; import { BrightScriptDebugConfigurationProvider } from './DebugConfigurationProvider'; import { vscode } from './mockVscode.spec'; import { standardizePath as s } from 'brighterscript'; @@ -370,7 +371,7 @@ describe('BrightScriptConfigurationProvider', () => { ).to.eql([{ label: 'Enter manually', device: { - id: Number.MAX_SAFE_INTEGER + id: manualHostItemId } }]); }); @@ -393,7 +394,7 @@ describe('BrightScriptConfigurationProvider', () => { }, { label: 'Enter manually', device: { - id: Number.MAX_SAFE_INTEGER + id: manualHostItemId } }] ); diff --git a/src/DebugConfigurationProvider.ts b/src/DebugConfigurationProvider.ts index 67dead10..851d0609 100644 --- a/src/DebugConfigurationProvider.ts +++ b/src/DebugConfigurationProvider.ts @@ -23,7 +23,7 @@ import { debounce } from 'debounce'; /** * An id to represent the "Enter manually" option in the host picker */ -const manualHostItemId = `${Number.MAX_SAFE_INTEGER}`; +export const manualHostItemId = `${Number.MAX_SAFE_INTEGER}`; const manualLabel = 'Enter manually'; export class BrightScriptDebugConfigurationProvider implements DebugConfigurationProvider {