diff --git a/src/common/global.ts b/src/common/global.ts index 9f16b32a..2869e630 100644 --- a/src/common/global.ts +++ b/src/common/global.ts @@ -65,3 +65,10 @@ export enum LanguageId { /** Defined in package.json */ export type ShowOutput = 'always' | 'never'; + +export enum LibIncludeType { + Disabled = 'Off', + Local = 'Local', + UserAndStandard = 'User and Standard', + All = 'All', +} diff --git a/src/test/config.e2e.ts b/src/test/config.e2e.ts index 4894e997..1b7408b7 100644 --- a/src/test/config.e2e.ts +++ b/src/test/config.e2e.ts @@ -10,7 +10,7 @@ import { updateConfig, } from './utils'; import { resolve } from 'path'; -import { ConfigKey, ShowOutput } from '../common/global'; +import { ConfigKey, LibIncludeType, ShowOutput } from '../common/global'; const rootPath = path.join(__dirname, '..', '..', '..'); @@ -66,6 +66,13 @@ suite('exclude', () => { ['back to v2 no exclusions', 2, [], true], ]; + before(async () => { + await updateConfig<{ librarySuggestions: LibIncludeType }>( + ConfigKey.general, + { librarySuggestions: LibIncludeType.All }, + ); + }); + tests.forEach(([name, version, exclude, expected]) => { test(name, async () => { const snippetText = 'MyExclu';