From 2606ed6d7ab078ccf2bd93e94353b0c22fce1379 Mon Sep 17 00:00:00 2001 From: Huachao Mao Date: Thu, 20 Aug 2020 13:03:33 +0800 Subject: [PATCH] Add aadv2Token variable autocompletion --- src/utils/httpElementFactory.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/httpElementFactory.ts b/src/utils/httpElementFactory.ts index 7e6412c6..0c49a895 100644 --- a/src/utils/httpElementFactory.ts +++ b/src/utils/httpElementFactory.ts @@ -136,6 +136,12 @@ export class HttpElementFactory { null, Constants.AzureActiveDirectoryDescription, new SnippetString(`{{$\${name:${Constants.AzureActiveDirectoryVariableName.slice(1)}}}}`))); + originalElements.push(new HttpElement( + Constants.AzureActiveDirectoryV2TokenVariableName, + ElementType.SystemVariable, + null, + Constants.AzureActiveDirectoryV2TokenDescription, + new SnippetString(`{{$\${name:${Constants.AzureActiveDirectoryV2TokenVariableName.slice(1)}}}}`))); // add environment custom variables const environmentVariables = await EnvironmentVariableProvider.Instance.getAll();