From cb4941843a4e035fa3c1d0fcd8a1994ab527d154 Mon Sep 17 00:00:00 2001 From: LouisEugeneMSFT <66701106+LouisEugeneMSFT@users.noreply.github.com> Date: Fri, 23 Oct 2020 13:15:57 -0700 Subject: [PATCH] Adding this and settings scopes (#4500) Co-authored-by: Chris Whitten --- .../intellisense/src/resolvers/variableScopes.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Composer/packages/tools/language-servers/intellisense/src/resolvers/variableScopes.ts b/Composer/packages/tools/language-servers/intellisense/src/resolvers/variableScopes.ts index aa0cbc07f4..e0d7d44e37 100644 --- a/Composer/packages/tools/language-servers/intellisense/src/resolvers/variableScopes.ts +++ b/Composer/packages/tools/language-servers/intellisense/src/resolvers/variableScopes.ts @@ -32,5 +32,19 @@ export const variableScopesResolver = (): CompletionItem[] => { documentation: 'turn is associated with a single turn. You can also think of this as the bot handling a single message from the user. Properties in the turn scope are discarded at the end of the turn.', }, + { + label: 'this.', + kind: CompletionItemKind.Enum, + insertText: 'this.', + documentation: + "this is associated with the active action's properties. It is helpful for input actions that last beyond a single turn of the conversation. Two properties already on the scope are this.value and this.turnCount.", + }, + { + label: 'settings.', + kind: CompletionItemKind.Enum, + insertText: 'settings.', + documentation: + 'settings is associated with any information that is made available to the bot via the platform specific settings configuration system, for example if you are developing your bot using C#, these settings will appear in the appsettings.json file.', + }, ]; };