diff --git a/docs/grammar.md b/docs/grammar.md index e172636e8c7..8d3ae5da506 100644 --- a/docs/grammar.md +++ b/docs/grammar.md @@ -18,7 +18,7 @@ parameterDefaultValue -> "=" expression variableDecl -> "variable" IDENTIFIER(name) "=" expression NL -resourceDecl -> "resource" IDENTIFIER(name) interpString(type) "=" object NL +resourceDecl -> "resource" IDENTIFIER(name) interpString(type) "=" ifCondition? object NL moduleDecl -> "module" IDENTIFIER(name) interpString(type) "=" object NL @@ -85,6 +85,8 @@ argumentList -> expression ("," expression)* parenthesizedExpression -> "(" expression ")" +ifCondition -> "if" parenthesizedExpression + interpString -> interpStringLeftPiece ( expression interpStringMiddlePiece )* expression interpStringRightPiece | literalString interpStringLeftPiece -> "'" STRINGCHAR* "${" interpStringMiddlePiece -> "}" STRINGCHAR* "${" diff --git a/src/Bicep.Cli/Program.cs b/src/Bicep.Cli/Program.cs index 76755c1666c..376ad7b6b23 100644 --- a/src/Bicep.Cli/Program.cs +++ b/src/Bicep.Cli/Program.cs @@ -3,22 +3,20 @@ using System; using System.IO; using System.Linq; -using System.Text; using Bicep.Cli.CommandLine; +using Bicep.Cli.CommandLine.Arguments; using Bicep.Cli.Logging; +using Bicep.Core.Diagnostics; using Bicep.Core.Emit; +using Bicep.Core.FileSystem; using Bicep.Core.Semantics; using Bicep.Core.Syntax; -using Bicep.Core.Text; -using Microsoft.Extensions.Logging; -using Newtonsoft.Json; -using Bicep.Cli.CommandLine.Arguments; -using Bicep.Core.TypeSystem.Az; using Bicep.Core.TypeSystem; -using Bicep.Core.Diagnostics; -using Bicep.Core.FileSystem; +using Bicep.Core.TypeSystem.Az; using Bicep.Core.Workspaces; using Bicep.Decompiler; +using Microsoft.Extensions.Logging; +using Newtonsoft.Json; namespace Bicep.Cli { diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionOutputs.json b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionOutputs.json new file mode 100644 index 00000000000..205033e8c7f --- /dev/null +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionOutputs.json @@ -0,0 +1,86 @@ +[ + { + "label": "arrayOutput", + "kind": "property", + "detail": "arrayOutput", + "documentation": { + "kind": "markdown", + "value": "Type: `array` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_arrayOutput", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "arrayOutput" + }, + "commitCharacters": [ + "." + ] + }, + { + "label": "objOutput", + "kind": "property", + "detail": "objOutput", + "documentation": { + "kind": "markdown", + "value": "Type: `object` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_objOutput", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "objOutput" + }, + "commitCharacters": [ + "." + ] + }, + { + "label": "stringOutputA", + "kind": "property", + "detail": "stringOutputA", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_stringOutputA", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "stringOutputA" + }, + "commitCharacters": [ + "." + ] + }, + { + "label": "stringOutputB", + "kind": "property", + "detail": "stringOutputB", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_stringOutputB", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "stringOutputB" + }, + "commitCharacters": [ + "." + ] + } +] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionParams.json b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionParams.json new file mode 100644 index 00000000000..43fb3b2c18d --- /dev/null +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionParams.json @@ -0,0 +1,86 @@ +[ + { + "label": "arrayParam", + "kind": "property", + "detail": "arrayParam (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `array` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_arrayParam", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "arrayParam" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "objParam", + "kind": "property", + "detail": "objParam (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `object` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_objParam", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "objParam" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "stringParamA", + "kind": "property", + "detail": "stringParamA", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_stringParamA", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "stringParamA" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "stringParamB", + "kind": "property", + "detail": "stringParamB (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_stringParamB", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "stringParamB" + }, + "commitCharacters": [ + ":" + ] + } +] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelProperties.json b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelProperties.json new file mode 100644 index 00000000000..c97dd6ba411 --- /dev/null +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelProperties.json @@ -0,0 +1,86 @@ +[ + { + "label": "dependsOn", + "kind": "property", + "detail": "dependsOn", + "documentation": { + "kind": "markdown", + "value": "Type: `resource | module[]` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_dependsOn", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dependsOn" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "name", + "kind": "property", + "detail": "name (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_name", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "name" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "params", + "kind": "property", + "detail": "params (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `params` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_params", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "params" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "scope", + "kind": "property", + "detail": "scope", + "documentation": { + "kind": "markdown", + "value": "Type: `resourceGroup` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_scope", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "scope" + }, + "commitCharacters": [ + ":" + ] + } +] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelPropertiesMinusName.json b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelPropertiesMinusName.json new file mode 100644 index 00000000000..dbf109b2b8f --- /dev/null +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelPropertiesMinusName.json @@ -0,0 +1,65 @@ +[ + { + "label": "dependsOn", + "kind": "property", + "detail": "dependsOn", + "documentation": { + "kind": "markdown", + "value": "Type: `resource | module[]` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_dependsOn", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dependsOn" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "params", + "kind": "property", + "detail": "params (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `params` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_params", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "params" + }, + "commitCharacters": [ + ":" + ] + }, + { + "label": "scope", + "kind": "property", + "detail": "scope", + "documentation": { + "kind": "markdown", + "value": "Type: `resourceGroup` \nWrite-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_scope", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "scope" + }, + "commitCharacters": [ + ":" + ] + } +] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelPropertyAccess.json b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelPropertyAccess.json new file mode 100644 index 00000000000..73f78040d4a --- /dev/null +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/Completions/moduleAWithConditionTopLevelPropertyAccess.json @@ -0,0 +1,44 @@ +[ + { + "label": "name", + "kind": "property", + "detail": "name (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_name", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "name" + }, + "commitCharacters": [ + "." + ] + }, + { + "label": "outputs", + "kind": "property", + "detail": "outputs", + "documentation": { + "kind": "markdown", + "value": "Type: `outputs` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "2_outputs", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "outputs" + }, + "commitCharacters": [ + "." + ] + } +] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.bicep b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.bicep index 6513c97d2bb..1019cef9a62 100644 --- a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.bicep @@ -27,25 +27,83 @@ module moduleWithInterpPath './${interp}.bicep' = { } +module moduleWithConditionAndInterpPath './${interp}.bicep' = if (true) { + +} + module moduleWithSelfCycle './main.bicep' = { } +module moduleWithConditionAndSelfCycle './main.bicep' = if ('foo' == 'bar') { + +} + module './main.bicep' = { } +module './main.bicep' = if (1 + 2 == 3) { + +} + +module './main.bicep' = if + +module './main.bicep' = if ( + +module './main.bicep' = if (true + +module './main.bicep' = if (true) + +module './main.bicep' = if { + +} + +module './main.bicep' = if () { + +} + +module './main.bicep' = if ('true') { + +} + module modANoName './modulea.bicep' = { // #completionTest(0) -> moduleATopLevelProperties } +module modANoNameWithCondition './modulea.bicep' = if (true) { +// #completionTest(0) -> moduleAWithConditionTopLevelProperties + +} + +module modWithReferenceInCondition './main.bicep' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { + +} + +module modWithListKeysInCondition './main.bicep' = if (listKeys('foo', '2020-05-01').bar == true) { + +} + + +module modANoName './modulea.bicep' = if ({ 'a': b }.a == true) { + +} + module modANoInputs './modulea.bicep' = { name: 'modANoInputs' // #completionTest(0,1,2) -> moduleATopLevelPropertiesMinusName } +module modANoInputsWithCondition './modulea.bicep' = if (length([ + 'foo' +]) == 1) { + name: 'modANoInputs' + // #completionTest(0,1,2) -> moduleAWithConditionTopLevelPropertiesMinusName + +} + module modAEmptyInputs './modulea.bicep' = { name: 'modANoInputs' params: { @@ -54,12 +112,26 @@ module modAEmptyInputs './modulea.bicep' = { } } +module modAEmptyInputsWithCondition './modulea.bicep' = if (1 + 2 == 2) { + name: 'modANoInputs' + params: { + // #completionTest(0,1,2,3,4) -> moduleAWithConditionParams + + } +} + // #completionTest(55) -> moduleATopLevelPropertyAccess var modulePropertyAccessCompletions = modAEmptyInputs.o +// #completionTest(81) -> moduleAWithConditionTopLevelPropertyAccess +var moduleWithConditionPropertyAccessCompletions = modAEmptyInputsWithCondition.o + // #completionTest(56) -> moduleAOutputs var moduleOutputsCompletions = modAEmptyInputs.outputs.s +// #completionTest(82) -> moduleAWithConditionOutputs +var moduleWithConditionOutputsCompletions = modAEmptyInputsWithCondition.outputs.s + module modAUnspecifiedInputs './modulea.bicep' = { name: 'modAUnspecifiedInputs' params: { diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.diagnostics.bicep b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.diagnostics.bicep index dc649dd8b60..437a43d98b1 100644 --- a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.diagnostics.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.diagnostics.bicep @@ -31,7 +31,7 @@ module // #completionTest(24,25) -> object module missingValue '' = //@[20:22) [BCP050 (Error)] The specified module path is empty. |''| -//@[25:25) [BCP018 (Error)] Expected the "{" character at this location. || +//@[25:25) [BCP118 (Error)] Expected the "{" character or the "if" keyword at this location. || var interp = 'hello' module moduleWithInterpPath './${interp}.bicep' = { @@ -39,22 +39,94 @@ module moduleWithInterpPath './${interp}.bicep' = { } +module moduleWithConditionAndInterpPath './${interp}.bicep' = if (true) { +//@[40:59) [BCP092 (Error)] String interpolation is not supported in module paths. |'./${interp}.bicep'| + +} + module moduleWithSelfCycle './main.bicep' = { //@[27:41) [BCP094 (Error)] This module references itself, which is not allowed. |'./main.bicep'| } +module moduleWithConditionAndSelfCycle './main.bicep' = if ('foo' == 'bar') { +//@[39:53) [BCP094 (Error)] This module references itself, which is not allowed. |'./main.bicep'| + +} + module './main.bicep' = { //@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| } +module './main.bicep' = if (1 + 2 == 3) { +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| + +} + +module './main.bicep' = if +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| +//@[26:26) [BCP018 (Error)] Expected the "(" character at this location. || + +module './main.bicep' = if ( +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| +//@[28:28) [BCP009 (Error)] Expected a literal value, an array, an object, a parenthesized expression, or a function call at this location. || + +module './main.bicep' = if (true +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| +//@[32:32) [BCP018 (Error)] Expected the ")" character at this location. || + +module './main.bicep' = if (true) +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| +//@[33:33) [BCP018 (Error)] Expected the "{" character at this location. || + +module './main.bicep' = if { +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| +//@[27:28) [BCP018 (Error)] Expected the "(" character at this location. |{| + +} + +module './main.bicep' = if () { +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| +//@[28:29) [BCP009 (Error)] Expected a literal value, an array, an object, a parenthesized expression, or a function call at this location. |)| + +} + +module './main.bicep' = if ('true') { +//@[7:21) [BCP096 (Error)] Expected a module identifier at this location. |'./main.bicep'| + +} + module modANoName './modulea.bicep' = { +//@[7:17) [BCP028 (Error)] Identifier "modANoName" is declared multiple times. Remove or rename the duplicates. |modANoName| //@[7:17) [BCP035 (Error)] The specified "module" declaration is missing the following required properties: "name", "params". |modANoName| // #completionTest(0) -> moduleATopLevelProperties } +module modANoNameWithCondition './modulea.bicep' = if (true) { +//@[7:30) [BCP035 (Error)] The specified "module" declaration is missing the following required properties: "name", "params". |modANoNameWithCondition| +// #completionTest(0) -> moduleAWithConditionTopLevelProperties + +} + +module modWithReferenceInCondition './main.bicep' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[35:49) [BCP094 (Error)] This module references itself, which is not allowed. |'./main.bicep'| + +} + +module modWithListKeysInCondition './main.bicep' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[34:48) [BCP094 (Error)] This module references itself, which is not allowed. |'./main.bicep'| + +} + + +module modANoName './modulea.bicep' = if ({ 'a': b }.a == true) { +//@[7:17) [BCP028 (Error)] Identifier "modANoName" is declared multiple times. Remove or rename the duplicates. |modANoName| + +} +//@[1:1) [BCP018 (Error)] Expected the ")" character at this location. || + module modANoInputs './modulea.bicep' = { //@[7:19) [BCP035 (Error)] The specified "module" declaration is missing the following required properties: "params". |modANoInputs| name: 'modANoInputs' @@ -62,6 +134,15 @@ module modANoInputs './modulea.bicep' = { } +module modANoInputsWithCondition './modulea.bicep' = if (length([ +//@[7:32) [BCP035 (Error)] The specified "module" declaration is missing the following required properties: "params". |modANoInputsWithCondition| + 'foo' +]) == 1) { + name: 'modANoInputs' + // #completionTest(0,1,2) -> moduleAWithConditionTopLevelPropertiesMinusName + +} + module modAEmptyInputs './modulea.bicep' = { name: 'modANoInputs' params: { @@ -71,14 +152,31 @@ module modAEmptyInputs './modulea.bicep' = { } } +module modAEmptyInputsWithCondition './modulea.bicep' = if (1 + 2 == 2) { + name: 'modANoInputs' + params: { +//@[2:8) [BCP035 (Error)] The specified "object" declaration is missing the following required properties: "arrayParam", "objParam", "stringParamB". |params| + // #completionTest(0,1,2,3,4) -> moduleAWithConditionParams + + } +} + // #completionTest(55) -> moduleATopLevelPropertyAccess var modulePropertyAccessCompletions = modAEmptyInputs.o //@[54:55) [BCP053 (Error)] The type "module" does not contain property "o". Available properties include "name", "outputs". |o| +// #completionTest(81) -> moduleAWithConditionTopLevelPropertyAccess +var moduleWithConditionPropertyAccessCompletions = modAEmptyInputsWithCondition.o +//@[80:81) [BCP053 (Error)] The type "module" does not contain property "o". Available properties include "name", "outputs". |o| + // #completionTest(56) -> moduleAOutputs var moduleOutputsCompletions = modAEmptyInputs.outputs.s //@[55:56) [BCP053 (Error)] The type "outputs" does not contain property "s". Available properties include "arrayOutput", "objOutput", "stringOutputA", "stringOutputB". |s| +// #completionTest(82) -> moduleAWithConditionOutputs +var moduleWithConditionOutputsCompletions = modAEmptyInputsWithCondition.outputs.s +//@[81:82) [BCP053 (Error)] The type "outputs" does not contain property "s". Available properties include "arrayOutput", "objOutput", "stringOutputA", "stringOutputB". |s| + module modAUnspecifiedInputs './modulea.bicep' = { name: 'modAUnspecifiedInputs' params: { diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.formatted.bicep b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.formatted.bicep index 42d6608ca54..f031cb9744b 100644 --- a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.formatted.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.formatted.bicep @@ -19,21 +19,68 @@ module missingValue '' = var interp = 'hello' module moduleWithInterpPath './${interp}.bicep' = {} +module moduleWithConditionAndInterpPath './${interp}.bicep' = if (true) {} + module moduleWithSelfCycle './main.bicep' = {} +module moduleWithConditionAndSelfCycle './main.bicep' = if ('foo' == 'bar') {} + module './main.bicep' = { } +module './main.bicep' = if (1 + 2 == 3) { + +} + +module './main.bicep' = if + +module './main.bicep' = if ( + +module './main.bicep' = if (true + +module './main.bicep' = if (true) + +module './main.bicep' = if { + +} + +module './main.bicep' = if () { + +} + +module './main.bicep' = if ('true') { + +} + module modANoName './modulea.bicep' = { // #completionTest(0) -> moduleATopLevelProperties } +module modANoNameWithCondition './modulea.bicep' = if (true) { + // #completionTest(0) -> moduleAWithConditionTopLevelProperties +} + +module modWithReferenceInCondition './main.bicep' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') {} + +module modWithListKeysInCondition './main.bicep' = if (listKeys('foo', '2020-05-01').bar == true) {} + +module modANoName './modulea.bicep' = if ({ 'a': b }.a == true) { + +} + module modANoInputs './modulea.bicep' = { name: 'modANoInputs' // #completionTest(0,1,2) -> moduleATopLevelPropertiesMinusName } +module modANoInputsWithCondition './modulea.bicep' = if (length([ + 'foo' +]) == 1) { + name: 'modANoInputs' + // #completionTest(0,1,2) -> moduleAWithConditionTopLevelPropertiesMinusName +} + module modAEmptyInputs './modulea.bicep' = { name: 'modANoInputs' params: { @@ -41,12 +88,25 @@ module modAEmptyInputs './modulea.bicep' = { } } +module modAEmptyInputsWithCondition './modulea.bicep' = if (1 + 2 == 2) { + name: 'modANoInputs' + params: { + // #completionTest(0,1,2,3,4) -> moduleAWithConditionParams + } +} + // #completionTest(55) -> moduleATopLevelPropertyAccess var modulePropertyAccessCompletions = modAEmptyInputs.o +// #completionTest(81) -> moduleAWithConditionTopLevelPropertyAccess +var moduleWithConditionPropertyAccessCompletions = modAEmptyInputsWithCondition.o + // #completionTest(56) -> moduleAOutputs var moduleOutputsCompletions = modAEmptyInputs.outputs.s +// #completionTest(82) -> moduleAWithConditionOutputs +var moduleWithConditionOutputsCompletions = modAEmptyInputsWithCondition.outputs.s + module modAUnspecifiedInputs './modulea.bicep' = { name: 'modAUnspecifiedInputs' params: { diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.symbols.bicep b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.symbols.bicep index 4ebd9fc4110..3ad6e5e1e50 100644 --- a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.symbols.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.symbols.bicep @@ -35,22 +35,86 @@ module moduleWithInterpPath './${interp}.bicep' = { } +module moduleWithConditionAndInterpPath './${interp}.bicep' = if (true) { +//@[7:39) Module moduleWithConditionAndInterpPath. Type: error. Declaration start char: 0, length: 76 + +} + module moduleWithSelfCycle './main.bicep' = { //@[7:26) Module moduleWithSelfCycle. Type: error. Declaration start char: 0, length: 48 } +module moduleWithConditionAndSelfCycle './main.bicep' = if ('foo' == 'bar') { +//@[7:38) Module moduleWithConditionAndSelfCycle. Type: error. Declaration start char: 0, length: 80 + +} + module './main.bicep' = { //@[7:7) Module . Type: error. Declaration start char: 0, length: 28 } +module './main.bicep' = if (1 + 2 == 3) { +//@[7:7) Module . Type: error. Declaration start char: 0, length: 44 + +} + +module './main.bicep' = if +//@[7:7) Module . Type: error. Declaration start char: 0, length: 26 + +module './main.bicep' = if ( +//@[7:7) Module . Type: error. Declaration start char: 0, length: 28 + +module './main.bicep' = if (true +//@[7:7) Module . Type: error. Declaration start char: 0, length: 32 + +module './main.bicep' = if (true) +//@[7:7) Module . Type: error. Declaration start char: 0, length: 33 + +module './main.bicep' = if { +//@[7:7) Module . Type: error. Declaration start char: 0, length: 31 + +} + +module './main.bicep' = if () { +//@[7:7) Module . Type: error. Declaration start char: 0, length: 34 + +} + +module './main.bicep' = if ('true') { +//@[7:7) Module . Type: error. Declaration start char: 0, length: 40 + +} + module modANoName './modulea.bicep' = { //@[7:17) Module modANoName. Type: module. Declaration start char: 0, length: 93 // #completionTest(0) -> moduleATopLevelProperties } +module modANoNameWithCondition './modulea.bicep' = if (true) { +//@[7:30) Module modANoNameWithCondition. Type: module. Declaration start char: 0, length: 129 +// #completionTest(0) -> moduleAWithConditionTopLevelProperties + +} + +module modWithReferenceInCondition './main.bicep' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[7:34) Module modWithReferenceInCondition. Type: error. Declaration start char: 0, length: 149 + +} + +module modWithListKeysInCondition './main.bicep' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[7:33) Module modWithListKeysInCondition. Type: error. Declaration start char: 0, length: 102 + +} + + +module modANoName './modulea.bicep' = if ({ 'a': b }.a == true) { +//@[7:17) Module modANoName. Type: error. Declaration start char: 0, length: 68 + +} + module modANoInputs './modulea.bicep' = { //@[7:19) Module modANoInputs. Type: module. Declaration start char: 0, length: 135 name: 'modANoInputs' @@ -58,6 +122,15 @@ module modANoInputs './modulea.bicep' = { } +module modANoInputsWithCondition './modulea.bicep' = if (length([ +//@[7:32) Module modANoInputsWithCondition. Type: module. Declaration start char: 0, length: 191 + 'foo' +]) == 1) { + name: 'modANoInputs' + // #completionTest(0,1,2) -> moduleAWithConditionTopLevelPropertiesMinusName + +} + module modAEmptyInputs './modulea.bicep' = { //@[7:22) Module modAEmptyInputs. Type: module. Declaration start char: 0, length: 141 name: 'modANoInputs' @@ -67,14 +140,31 @@ module modAEmptyInputs './modulea.bicep' = { } } +module modAEmptyInputsWithCondition './modulea.bicep' = if (1 + 2 == 2) { +//@[7:35) Module modAEmptyInputsWithCondition. Type: module. Declaration start char: 0, length: 183 + name: 'modANoInputs' + params: { + // #completionTest(0,1,2,3,4) -> moduleAWithConditionParams + + } +} + // #completionTest(55) -> moduleATopLevelPropertyAccess var modulePropertyAccessCompletions = modAEmptyInputs.o //@[4:35) Variable modulePropertyAccessCompletions. Type: error. Declaration start char: 0, length: 55 +// #completionTest(81) -> moduleAWithConditionTopLevelPropertyAccess +var moduleWithConditionPropertyAccessCompletions = modAEmptyInputsWithCondition.o +//@[4:48) Variable moduleWithConditionPropertyAccessCompletions. Type: error. Declaration start char: 0, length: 81 + // #completionTest(56) -> moduleAOutputs var moduleOutputsCompletions = modAEmptyInputs.outputs.s //@[4:28) Variable moduleOutputsCompletions. Type: error. Declaration start char: 0, length: 56 +// #completionTest(82) -> moduleAWithConditionOutputs +var moduleWithConditionOutputsCompletions = modAEmptyInputsWithCondition.outputs.s +//@[4:41) Variable moduleWithConditionOutputsCompletions. Type: error. Declaration start char: 0, length: 82 + module modAUnspecifiedInputs './modulea.bicep' = { //@[7:28) Module modAUnspecifiedInputs. Type: module. Declaration start char: 0, length: 180 name: 'modAUnspecifiedInputs' diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.syntax.bicep b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.syntax.bicep index f68ffaaa77f..5a956c6ff89 100644 --- a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.syntax.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.syntax.bicep @@ -60,6 +60,7 @@ module moduleWithoutPath = { //@[27:28) LeftBrace |{| //@[28:28) SkippedTriviaSyntax //@[28:28) SkippedTriviaSyntax +//@[28:28) SkippedTriviaSyntax //@[28:30) NewLine |\n\n| } @@ -77,6 +78,7 @@ module //@[7:7) SkippedTriviaSyntax //@[7:7) SkippedTriviaSyntax //@[7:7) SkippedTriviaSyntax +//@[7:7) SkippedTriviaSyntax //@[7:9) NewLine |\n\n| // #completionTest(24,25) -> object @@ -90,6 +92,7 @@ module missingValue '' = //@[20:22) StringComplete |''| //@[23:24) Assignment |=| //@[25:25) SkippedTriviaSyntax +//@[25:25) SkippedTriviaSyntax //@[25:27) NewLine |\n\n| var interp = 'hello' @@ -121,6 +124,33 @@ module moduleWithInterpPath './${interp}.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module moduleWithConditionAndInterpPath './${interp}.bicep' = if (true) { +//@[0:76) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:39) IdentifierSyntax +//@[7:39) Identifier |moduleWithConditionAndInterpPath| +//@[40:59) StringSyntax +//@[40:45) StringLeftPiece |'./${| +//@[45:51) VariableAccessSyntax +//@[45:51) IdentifierSyntax +//@[45:51) Identifier |interp| +//@[51:59) StringRightPiece |}.bicep'| +//@[60:61) Assignment |=| +//@[62:71) IfConditionSyntax +//@[62:64) Identifier |if| +//@[65:71) ParenthesizedExpressionSyntax +//@[65:66) LeftParen |(| +//@[66:70) BooleanLiteralSyntax +//@[66:70) TrueKeyword |true| +//@[70:71) RightParen |)| +//@[72:76) ObjectSyntax +//@[72:73) LeftBrace |{| +//@[73:75) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module moduleWithSelfCycle './main.bicep' = { //@[0:48) ModuleDeclarationSyntax //@[0:6) Identifier |module| @@ -137,6 +167,33 @@ module moduleWithSelfCycle './main.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module moduleWithConditionAndSelfCycle './main.bicep' = if ('foo' == 'bar') { +//@[0:80) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:38) IdentifierSyntax +//@[7:38) Identifier |moduleWithConditionAndSelfCycle| +//@[39:53) StringSyntax +//@[39:53) StringComplete |'./main.bicep'| +//@[54:55) Assignment |=| +//@[56:75) IfConditionSyntax +//@[56:58) Identifier |if| +//@[59:75) ParenthesizedExpressionSyntax +//@[59:60) LeftParen |(| +//@[60:74) BinaryOperationSyntax +//@[60:65) StringSyntax +//@[60:65) StringComplete |'foo'| +//@[66:68) Equals |==| +//@[69:74) StringSyntax +//@[69:74) StringComplete |'bar'| +//@[74:75) RightParen |)| +//@[76:80) ObjectSyntax +//@[76:77) LeftBrace |{| +//@[77:79) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module './main.bicep' = { //@[0:28) ModuleDeclarationSyntax //@[0:6) Identifier |module| @@ -153,6 +210,163 @@ module './main.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module './main.bicep' = if (1 + 2 == 3) { +//@[0:44) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:39) IfConditionSyntax +//@[24:26) Identifier |if| +//@[27:39) ParenthesizedExpressionSyntax +//@[27:28) LeftParen |(| +//@[28:38) BinaryOperationSyntax +//@[28:33) BinaryOperationSyntax +//@[28:29) NumericLiteralSyntax +//@[28:29) Number |1| +//@[30:31) Plus |+| +//@[32:33) NumericLiteralSyntax +//@[32:33) Number |2| +//@[34:36) Equals |==| +//@[37:38) NumericLiteralSyntax +//@[37:38) Number |3| +//@[38:39) RightParen |)| +//@[40:44) ObjectSyntax +//@[40:41) LeftBrace |{| +//@[41:43) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module './main.bicep' = if +//@[0:26) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) IfConditionSyntax +//@[24:26) Identifier |if| +//@[26:26) SkippedTriviaSyntax +//@[26:26) SkippedTriviaSyntax +//@[26:28) NewLine |\n\n| + +module './main.bicep' = if ( +//@[0:28) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:28) IfConditionSyntax +//@[24:26) Identifier |if| +//@[27:28) SkippedTriviaSyntax +//@[27:28) LeftParen |(| +//@[28:28) SkippedTriviaSyntax +//@[28:30) NewLine |\n\n| + +module './main.bicep' = if (true +//@[0:32) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:32) IfConditionSyntax +//@[24:26) Identifier |if| +//@[27:32) SkippedTriviaSyntax +//@[27:28) LeftParen |(| +//@[28:32) TrueKeyword |true| +//@[32:32) SkippedTriviaSyntax +//@[32:34) NewLine |\n\n| + +module './main.bicep' = if (true) +//@[0:33) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:33) IfConditionSyntax +//@[24:26) Identifier |if| +//@[27:33) ParenthesizedExpressionSyntax +//@[27:28) LeftParen |(| +//@[28:32) BooleanLiteralSyntax +//@[28:32) TrueKeyword |true| +//@[32:33) RightParen |)| +//@[33:33) SkippedTriviaSyntax +//@[33:35) NewLine |\n\n| + +module './main.bicep' = if { +//@[0:31) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:27) IfConditionSyntax +//@[24:26) Identifier |if| +//@[27:27) SkippedTriviaSyntax +//@[27:31) ObjectSyntax +//@[27:28) LeftBrace |{| +//@[28:30) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module './main.bicep' = if () { +//@[0:34) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:29) IfConditionSyntax +//@[24:26) Identifier |if| +//@[27:29) SkippedTriviaSyntax +//@[27:28) LeftParen |(| +//@[28:29) RightParen |)| +//@[30:34) ObjectSyntax +//@[30:31) LeftBrace |{| +//@[31:33) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module './main.bicep' = if ('true') { +//@[0:40) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:7) IdentifierSyntax +//@[7:7) SkippedTriviaSyntax +//@[7:21) StringSyntax +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:35) IfConditionSyntax +//@[24:26) Identifier |if| +//@[27:35) ParenthesizedExpressionSyntax +//@[27:28) LeftParen |(| +//@[28:34) StringSyntax +//@[28:34) StringComplete |'true'| +//@[34:35) RightParen |)| +//@[36:40) ObjectSyntax +//@[36:37) LeftBrace |{| +//@[37:39) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module modANoName './modulea.bicep' = { //@[0:93) ModuleDeclarationSyntax //@[0:6) Identifier |module| @@ -171,6 +385,144 @@ module modANoName './modulea.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module modANoNameWithCondition './modulea.bicep' = if (true) { +//@[0:129) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:30) IdentifierSyntax +//@[7:30) Identifier |modANoNameWithCondition| +//@[31:48) StringSyntax +//@[31:48) StringComplete |'./modulea.bicep'| +//@[49:50) Assignment |=| +//@[51:60) IfConditionSyntax +//@[51:53) Identifier |if| +//@[54:60) ParenthesizedExpressionSyntax +//@[54:55) LeftParen |(| +//@[55:59) BooleanLiteralSyntax +//@[55:59) TrueKeyword |true| +//@[59:60) RightParen |)| +//@[61:129) ObjectSyntax +//@[61:62) LeftBrace |{| +//@[62:63) NewLine |\n| +// #completionTest(0) -> moduleAWithConditionTopLevelProperties +//@[63:65) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module modWithReferenceInCondition './main.bicep' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[0:149) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:34) IdentifierSyntax +//@[7:34) Identifier |modWithReferenceInCondition| +//@[35:49) StringSyntax +//@[35:49) StringComplete |'./main.bicep'| +//@[50:51) Assignment |=| +//@[52:144) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:144) ParenthesizedExpressionSyntax +//@[55:56) LeftParen |(| +//@[56:143) BinaryOperationSyntax +//@[56:128) PropertyAccessSyntax +//@[56:123) FunctionCallSyntax +//@[56:65) IdentifierSyntax +//@[56:65) Identifier |reference| +//@[65:66) LeftParen |(| +//@[66:109) FunctionArgumentSyntax +//@[66:108) StringSyntax +//@[66:108) StringComplete |'Micorosft.Management/managementGroups/MG'| +//@[108:109) Comma |,| +//@[110:122) FunctionArgumentSyntax +//@[110:122) StringSyntax +//@[110:122) StringComplete |'2020-05-01'| +//@[122:123) RightParen |)| +//@[123:124) Dot |.| +//@[124:128) IdentifierSyntax +//@[124:128) Identifier |name| +//@[129:131) Equals |==| +//@[132:143) StringSyntax +//@[132:143) StringComplete |'something'| +//@[143:144) RightParen |)| +//@[145:149) ObjectSyntax +//@[145:146) LeftBrace |{| +//@[146:148) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module modWithListKeysInCondition './main.bicep' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[0:102) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:33) IdentifierSyntax +//@[7:33) Identifier |modWithListKeysInCondition| +//@[34:48) StringSyntax +//@[34:48) StringComplete |'./main.bicep'| +//@[49:50) Assignment |=| +//@[51:97) IfConditionSyntax +//@[51:53) Identifier |if| +//@[54:97) ParenthesizedExpressionSyntax +//@[54:55) LeftParen |(| +//@[55:96) BinaryOperationSyntax +//@[55:88) PropertyAccessSyntax +//@[55:84) FunctionCallSyntax +//@[55:63) IdentifierSyntax +//@[55:63) Identifier |listKeys| +//@[63:64) LeftParen |(| +//@[64:70) FunctionArgumentSyntax +//@[64:69) StringSyntax +//@[64:69) StringComplete |'foo'| +//@[69:70) Comma |,| +//@[71:83) FunctionArgumentSyntax +//@[71:83) StringSyntax +//@[71:83) StringComplete |'2020-05-01'| +//@[83:84) RightParen |)| +//@[84:85) Dot |.| +//@[85:88) IdentifierSyntax +//@[85:88) Identifier |bar| +//@[89:91) Equals |==| +//@[92:96) BooleanLiteralSyntax +//@[92:96) TrueKeyword |true| +//@[96:97) RightParen |)| +//@[98:102) ObjectSyntax +//@[98:99) LeftBrace |{| +//@[99:101) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:4) NewLine |\n\n\n| + + +module modANoName './modulea.bicep' = if ({ 'a': b }.a == true) { +//@[0:68) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:17) IdentifierSyntax +//@[7:17) Identifier |modANoName| +//@[18:35) StringSyntax +//@[18:35) StringComplete |'./modulea.bicep'| +//@[36:37) Assignment |=| +//@[38:68) IfConditionSyntax +//@[38:40) Identifier |if| +//@[41:68) SkippedTriviaSyntax +//@[41:42) LeftParen |(| +//@[42:43) LeftBrace |{| +//@[44:47) StringComplete |'a'| +//@[47:48) Colon |:| +//@[49:50) Identifier |b| +//@[51:52) RightBrace |}| +//@[52:53) Dot |.| +//@[53:54) Identifier |a| +//@[55:57) Equals |==| +//@[58:62) TrueKeyword |true| +//@[62:63) RightParen |)| +//@[64:65) LeftBrace |{| +//@[65:67) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:1) SkippedTriviaSyntax +//@[1:3) NewLine |\n\n| + module modANoInputs './modulea.bicep' = { //@[0:135) ModuleDeclarationSyntax //@[0:6) Identifier |module| @@ -198,6 +550,58 @@ module modANoInputs './modulea.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module modANoInputsWithCondition './modulea.bicep' = if (length([ +//@[0:191) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:32) IdentifierSyntax +//@[7:32) Identifier |modANoInputsWithCondition| +//@[33:50) StringSyntax +//@[33:50) StringComplete |'./modulea.bicep'| +//@[51:52) Assignment |=| +//@[53:82) IfConditionSyntax +//@[53:55) Identifier |if| +//@[56:82) ParenthesizedExpressionSyntax +//@[56:57) LeftParen |(| +//@[57:81) BinaryOperationSyntax +//@[57:76) FunctionCallSyntax +//@[57:63) IdentifierSyntax +//@[57:63) Identifier |length| +//@[63:64) LeftParen |(| +//@[64:75) FunctionArgumentSyntax +//@[64:75) ArraySyntax +//@[64:65) LeftSquare |[| +//@[65:66) NewLine |\n| + 'foo' +//@[2:7) ArrayItemSyntax +//@[2:7) StringSyntax +//@[2:7) StringComplete |'foo'| +//@[7:8) NewLine |\n| +]) == 1) { +//@[0:1) RightSquare |]| +//@[1:2) RightParen |)| +//@[3:5) Equals |==| +//@[6:7) NumericLiteralSyntax +//@[6:7) Number |1| +//@[7:8) RightParen |)| +//@[9:117) ObjectSyntax +//@[9:10) LeftBrace |{| +//@[10:11) NewLine |\n| + name: 'modANoInputs' +//@[2:22) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:22) StringSyntax +//@[8:22) StringComplete |'modANoInputs'| +//@[22:23) NewLine |\n| + // #completionTest(0,1,2) -> moduleAWithConditionTopLevelPropertiesMinusName +//@[78:79) NewLine |\n| + +//@[2:3) NewLine |\n| +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module modAEmptyInputs './modulea.bicep' = { //@[0:141) ModuleDeclarationSyntax //@[0:6) Identifier |module| @@ -236,6 +640,59 @@ module modAEmptyInputs './modulea.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module modAEmptyInputsWithCondition './modulea.bicep' = if (1 + 2 == 2) { +//@[0:183) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:35) IdentifierSyntax +//@[7:35) Identifier |modAEmptyInputsWithCondition| +//@[36:53) StringSyntax +//@[36:53) StringComplete |'./modulea.bicep'| +//@[54:55) Assignment |=| +//@[56:71) IfConditionSyntax +//@[56:58) Identifier |if| +//@[59:71) ParenthesizedExpressionSyntax +//@[59:60) LeftParen |(| +//@[60:70) BinaryOperationSyntax +//@[60:65) BinaryOperationSyntax +//@[60:61) NumericLiteralSyntax +//@[60:61) Number |1| +//@[62:63) Plus |+| +//@[64:65) NumericLiteralSyntax +//@[64:65) Number |2| +//@[66:68) Equals |==| +//@[69:70) NumericLiteralSyntax +//@[69:70) Number |2| +//@[70:71) RightParen |)| +//@[72:183) ObjectSyntax +//@[72:73) LeftBrace |{| +//@[73:74) NewLine |\n| + name: 'modANoInputs' +//@[2:22) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:22) StringSyntax +//@[8:22) StringComplete |'modANoInputs'| +//@[22:23) NewLine |\n| + params: { +//@[2:84) ObjectPropertySyntax +//@[2:8) IdentifierSyntax +//@[2:8) Identifier |params| +//@[8:9) Colon |:| +//@[10:84) ObjectSyntax +//@[10:11) LeftBrace |{| +//@[11:12) NewLine |\n| + // #completionTest(0,1,2,3,4) -> moduleAWithConditionParams +//@[63:64) NewLine |\n| + +//@[4:5) NewLine |\n| + } +//@[2:3) RightBrace |}| +//@[3:4) NewLine |\n| +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + // #completionTest(55) -> moduleATopLevelPropertyAccess //@[55:56) NewLine |\n| var modulePropertyAccessCompletions = modAEmptyInputs.o @@ -253,6 +710,23 @@ var modulePropertyAccessCompletions = modAEmptyInputs.o //@[54:55) Identifier |o| //@[55:57) NewLine |\n\n| +// #completionTest(81) -> moduleAWithConditionTopLevelPropertyAccess +//@[68:69) NewLine |\n| +var moduleWithConditionPropertyAccessCompletions = modAEmptyInputsWithCondition.o +//@[0:81) VariableDeclarationSyntax +//@[0:3) Identifier |var| +//@[4:48) IdentifierSyntax +//@[4:48) Identifier |moduleWithConditionPropertyAccessCompletions| +//@[49:50) Assignment |=| +//@[51:81) PropertyAccessSyntax +//@[51:79) VariableAccessSyntax +//@[51:79) IdentifierSyntax +//@[51:79) Identifier |modAEmptyInputsWithCondition| +//@[79:80) Dot |.| +//@[80:81) IdentifierSyntax +//@[80:81) Identifier |o| +//@[81:83) NewLine |\n\n| + // #completionTest(56) -> moduleAOutputs //@[40:41) NewLine |\n| var moduleOutputsCompletions = modAEmptyInputs.outputs.s @@ -274,6 +748,27 @@ var moduleOutputsCompletions = modAEmptyInputs.outputs.s //@[55:56) Identifier |s| //@[56:58) NewLine |\n\n| +// #completionTest(82) -> moduleAWithConditionOutputs +//@[53:54) NewLine |\n| +var moduleWithConditionOutputsCompletions = modAEmptyInputsWithCondition.outputs.s +//@[0:82) VariableDeclarationSyntax +//@[0:3) Identifier |var| +//@[4:41) IdentifierSyntax +//@[4:41) Identifier |moduleWithConditionOutputsCompletions| +//@[42:43) Assignment |=| +//@[44:82) PropertyAccessSyntax +//@[44:80) PropertyAccessSyntax +//@[44:72) VariableAccessSyntax +//@[44:72) IdentifierSyntax +//@[44:72) Identifier |modAEmptyInputsWithCondition| +//@[72:73) Dot |.| +//@[73:80) IdentifierSyntax +//@[73:80) Identifier |outputs| +//@[80:81) Dot |.| +//@[81:82) IdentifierSyntax +//@[81:82) Identifier |s| +//@[82:84) NewLine |\n\n| + module modAUnspecifiedInputs './modulea.bicep' = { //@[0:180) ModuleDeclarationSyntax //@[0:6) Identifier |module| diff --git a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.tokens.bicep b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.tokens.bicep index 2e617bb08ba..e8876c0347f 100644 --- a/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.tokens.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidModules_LF/main.tokens.bicep @@ -84,6 +84,24 @@ module moduleWithInterpPath './${interp}.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module moduleWithConditionAndInterpPath './${interp}.bicep' = if (true) { +//@[0:6) Identifier |module| +//@[7:39) Identifier |moduleWithConditionAndInterpPath| +//@[40:45) StringLeftPiece |'./${| +//@[45:51) Identifier |interp| +//@[51:59) StringRightPiece |}.bicep'| +//@[60:61) Assignment |=| +//@[62:64) Identifier |if| +//@[65:66) LeftParen |(| +//@[66:70) TrueKeyword |true| +//@[70:71) RightParen |)| +//@[72:73) LeftBrace |{| +//@[73:75) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module moduleWithSelfCycle './main.bicep' = { //@[0:6) Identifier |module| //@[7:26) Identifier |moduleWithSelfCycle| @@ -96,6 +114,24 @@ module moduleWithSelfCycle './main.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module moduleWithConditionAndSelfCycle './main.bicep' = if ('foo' == 'bar') { +//@[0:6) Identifier |module| +//@[7:38) Identifier |moduleWithConditionAndSelfCycle| +//@[39:53) StringComplete |'./main.bicep'| +//@[54:55) Assignment |=| +//@[56:58) Identifier |if| +//@[59:60) LeftParen |(| +//@[60:65) StringComplete |'foo'| +//@[66:68) Equals |==| +//@[69:74) StringComplete |'bar'| +//@[74:75) RightParen |)| +//@[76:77) LeftBrace |{| +//@[77:79) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module './main.bicep' = { //@[0:6) Identifier |module| //@[7:21) StringComplete |'./main.bicep'| @@ -107,6 +143,100 @@ module './main.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module './main.bicep' = if (1 + 2 == 3) { +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[27:28) LeftParen |(| +//@[28:29) Number |1| +//@[30:31) Plus |+| +//@[32:33) Number |2| +//@[34:36) Equals |==| +//@[37:38) Number |3| +//@[38:39) RightParen |)| +//@[40:41) LeftBrace |{| +//@[41:43) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module './main.bicep' = if +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[26:28) NewLine |\n\n| + +module './main.bicep' = if ( +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[27:28) LeftParen |(| +//@[28:30) NewLine |\n\n| + +module './main.bicep' = if (true +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[27:28) LeftParen |(| +//@[28:32) TrueKeyword |true| +//@[32:34) NewLine |\n\n| + +module './main.bicep' = if (true) +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[27:28) LeftParen |(| +//@[28:32) TrueKeyword |true| +//@[32:33) RightParen |)| +//@[33:35) NewLine |\n\n| + +module './main.bicep' = if { +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[27:28) LeftBrace |{| +//@[28:30) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module './main.bicep' = if () { +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[27:28) LeftParen |(| +//@[28:29) RightParen |)| +//@[30:31) LeftBrace |{| +//@[31:33) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module './main.bicep' = if ('true') { +//@[0:6) Identifier |module| +//@[7:21) StringComplete |'./main.bicep'| +//@[22:23) Assignment |=| +//@[24:26) Identifier |if| +//@[27:28) LeftParen |(| +//@[28:34) StringComplete |'true'| +//@[34:35) RightParen |)| +//@[36:37) LeftBrace |{| +//@[37:39) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module modANoName './modulea.bicep' = { //@[0:6) Identifier |module| //@[7:17) Identifier |modANoName| @@ -121,6 +251,99 @@ module modANoName './modulea.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module modANoNameWithCondition './modulea.bicep' = if (true) { +//@[0:6) Identifier |module| +//@[7:30) Identifier |modANoNameWithCondition| +//@[31:48) StringComplete |'./modulea.bicep'| +//@[49:50) Assignment |=| +//@[51:53) Identifier |if| +//@[54:55) LeftParen |(| +//@[55:59) TrueKeyword |true| +//@[59:60) RightParen |)| +//@[61:62) LeftBrace |{| +//@[62:63) NewLine |\n| +// #completionTest(0) -> moduleAWithConditionTopLevelProperties +//@[63:65) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module modWithReferenceInCondition './main.bicep' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[0:6) Identifier |module| +//@[7:34) Identifier |modWithReferenceInCondition| +//@[35:49) StringComplete |'./main.bicep'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:65) Identifier |reference| +//@[65:66) LeftParen |(| +//@[66:108) StringComplete |'Micorosft.Management/managementGroups/MG'| +//@[108:109) Comma |,| +//@[110:122) StringComplete |'2020-05-01'| +//@[122:123) RightParen |)| +//@[123:124) Dot |.| +//@[124:128) Identifier |name| +//@[129:131) Equals |==| +//@[132:143) StringComplete |'something'| +//@[143:144) RightParen |)| +//@[145:146) LeftBrace |{| +//@[146:148) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + +module modWithListKeysInCondition './main.bicep' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[0:6) Identifier |module| +//@[7:33) Identifier |modWithListKeysInCondition| +//@[34:48) StringComplete |'./main.bicep'| +//@[49:50) Assignment |=| +//@[51:53) Identifier |if| +//@[54:55) LeftParen |(| +//@[55:63) Identifier |listKeys| +//@[63:64) LeftParen |(| +//@[64:69) StringComplete |'foo'| +//@[69:70) Comma |,| +//@[71:83) StringComplete |'2020-05-01'| +//@[83:84) RightParen |)| +//@[84:85) Dot |.| +//@[85:88) Identifier |bar| +//@[89:91) Equals |==| +//@[92:96) TrueKeyword |true| +//@[96:97) RightParen |)| +//@[98:99) LeftBrace |{| +//@[99:101) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:4) NewLine |\n\n\n| + + +module modANoName './modulea.bicep' = if ({ 'a': b }.a == true) { +//@[0:6) Identifier |module| +//@[7:17) Identifier |modANoName| +//@[18:35) StringComplete |'./modulea.bicep'| +//@[36:37) Assignment |=| +//@[38:40) Identifier |if| +//@[41:42) LeftParen |(| +//@[42:43) LeftBrace |{| +//@[44:47) StringComplete |'a'| +//@[47:48) Colon |:| +//@[49:50) Identifier |b| +//@[51:52) RightBrace |}| +//@[52:53) Dot |.| +//@[53:54) Identifier |a| +//@[55:57) Equals |==| +//@[58:62) TrueKeyword |true| +//@[62:63) RightParen |)| +//@[64:65) LeftBrace |{| +//@[65:67) NewLine |\n\n| + +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module modANoInputs './modulea.bicep' = { //@[0:6) Identifier |module| //@[7:19) Identifier |modANoInputs| @@ -141,6 +364,41 @@ module modANoInputs './modulea.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module modANoInputsWithCondition './modulea.bicep' = if (length([ +//@[0:6) Identifier |module| +//@[7:32) Identifier |modANoInputsWithCondition| +//@[33:50) StringComplete |'./modulea.bicep'| +//@[51:52) Assignment |=| +//@[53:55) Identifier |if| +//@[56:57) LeftParen |(| +//@[57:63) Identifier |length| +//@[63:64) LeftParen |(| +//@[64:65) LeftSquare |[| +//@[65:66) NewLine |\n| + 'foo' +//@[2:7) StringComplete |'foo'| +//@[7:8) NewLine |\n| +]) == 1) { +//@[0:1) RightSquare |]| +//@[1:2) RightParen |)| +//@[3:5) Equals |==| +//@[6:7) Number |1| +//@[7:8) RightParen |)| +//@[9:10) LeftBrace |{| +//@[10:11) NewLine |\n| + name: 'modANoInputs' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:22) StringComplete |'modANoInputs'| +//@[22:23) NewLine |\n| + // #completionTest(0,1,2) -> moduleAWithConditionTopLevelPropertiesMinusName +//@[78:79) NewLine |\n| + +//@[2:3) NewLine |\n| +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + module modAEmptyInputs './modulea.bicep' = { //@[0:6) Identifier |module| //@[7:22) Identifier |modAEmptyInputs| @@ -169,6 +427,42 @@ module modAEmptyInputs './modulea.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module modAEmptyInputsWithCondition './modulea.bicep' = if (1 + 2 == 2) { +//@[0:6) Identifier |module| +//@[7:35) Identifier |modAEmptyInputsWithCondition| +//@[36:53) StringComplete |'./modulea.bicep'| +//@[54:55) Assignment |=| +//@[56:58) Identifier |if| +//@[59:60) LeftParen |(| +//@[60:61) Number |1| +//@[62:63) Plus |+| +//@[64:65) Number |2| +//@[66:68) Equals |==| +//@[69:70) Number |2| +//@[70:71) RightParen |)| +//@[72:73) LeftBrace |{| +//@[73:74) NewLine |\n| + name: 'modANoInputs' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:22) StringComplete |'modANoInputs'| +//@[22:23) NewLine |\n| + params: { +//@[2:8) Identifier |params| +//@[8:9) Colon |:| +//@[10:11) LeftBrace |{| +//@[11:12) NewLine |\n| + // #completionTest(0,1,2,3,4) -> moduleAWithConditionParams +//@[63:64) NewLine |\n| + +//@[4:5) NewLine |\n| + } +//@[2:3) RightBrace |}| +//@[3:4) NewLine |\n| +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + // #completionTest(55) -> moduleATopLevelPropertyAccess //@[55:56) NewLine |\n| var modulePropertyAccessCompletions = modAEmptyInputs.o @@ -180,6 +474,17 @@ var modulePropertyAccessCompletions = modAEmptyInputs.o //@[54:55) Identifier |o| //@[55:57) NewLine |\n\n| +// #completionTest(81) -> moduleAWithConditionTopLevelPropertyAccess +//@[68:69) NewLine |\n| +var moduleWithConditionPropertyAccessCompletions = modAEmptyInputsWithCondition.o +//@[0:3) Identifier |var| +//@[4:48) Identifier |moduleWithConditionPropertyAccessCompletions| +//@[49:50) Assignment |=| +//@[51:79) Identifier |modAEmptyInputsWithCondition| +//@[79:80) Dot |.| +//@[80:81) Identifier |o| +//@[81:83) NewLine |\n\n| + // #completionTest(56) -> moduleAOutputs //@[40:41) NewLine |\n| var moduleOutputsCompletions = modAEmptyInputs.outputs.s @@ -193,6 +498,19 @@ var moduleOutputsCompletions = modAEmptyInputs.outputs.s //@[55:56) Identifier |s| //@[56:58) NewLine |\n\n| +// #completionTest(82) -> moduleAWithConditionOutputs +//@[53:54) NewLine |\n| +var moduleWithConditionOutputsCompletions = modAEmptyInputsWithCondition.outputs.s +//@[0:3) Identifier |var| +//@[4:41) Identifier |moduleWithConditionOutputsCompletions| +//@[42:43) Assignment |=| +//@[44:72) Identifier |modAEmptyInputsWithCondition| +//@[72:73) Dot |.| +//@[73:80) Identifier |outputs| +//@[80:81) Dot |.| +//@[81:82) Identifier |s| +//@[82:84) NewLine |\n\n| + module modAUnspecifiedInputs './modulea.bicep' = { //@[0:6) Identifier |module| //@[7:28) Identifier |modAUnspecifiedInputs| diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/arrayPlusSymbols.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/arrayPlusSymbols.json index 59b8e5ebdb6..d440b9aa5f8 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/arrayPlusSymbols.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/arrayPlusSymbols.json @@ -1,1500 +1,1514 @@ -[ - { - "label": "[]", - "kind": "value", - "detail": "[]", - "deprecated": false, - "preselect": true, - "sortText": "1_[]", - "insertTextFormat": "snippet", - "insertTextMode": "adjustIndentation", - "textEdit": { - "range": {}, - "newText": "[\n\t$0\n]" - } - }, - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetOneCompletions3", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions3" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissing", - "kind": "interface", - "detail": "discriminatorKeyValueMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissing" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions3", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions3" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorArrayIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorArrayIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorArrayIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorArrayIndexCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "nestedDiscriminatorMissingKeyIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyIndexCompletions" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - } +[ + { + "label": "[]", + "kind": "value", + "detail": "[]", + "deprecated": false, + "preselect": true, + "sortText": "1_[]", + "insertTextFormat": "snippet", + "insertTextMode": "adjustIndentation", + "textEdit": { + "range": {}, + "newText": "[\n\t$0\n]" + } + }, + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetOneCompletions3", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions3" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissing", + "kind": "interface", + "detail": "discriminatorKeyValueMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissing" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions3", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions3" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorArrayIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorArrayIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorArrayIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorArrayIndexCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "nestedDiscriminatorMissingKeyIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyIndexCompletions" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cleanupPreferencesPlusSymbols.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cleanupPreferencesPlusSymbols.json index c3ede6b85df..d20033e6959 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cleanupPreferencesPlusSymbols.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cleanupPreferencesPlusSymbols.json @@ -1,1528 +1,1542 @@ -[ - { - "label": "'Always'", - "kind": "enumMember", - "detail": "'Always'", - "deprecated": false, - "preselect": true, - "sortText": "2_'Always'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'Always'" - } - }, - { - "label": "'OnExpiration'", - "kind": "enumMember", - "detail": "'OnExpiration'", - "deprecated": false, - "preselect": true, - "sortText": "2_'OnExpiration'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'OnExpiration'" - } - }, - { - "label": "'OnSuccess'", - "kind": "enumMember", - "detail": "'OnSuccess'", - "deprecated": false, - "preselect": true, - "sortText": "2_'OnSuccess'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'OnSuccess'" - } - }, - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetOneCompletions3", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions3" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissing", - "kind": "interface", - "detail": "discriminatorKeyValueMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissing" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions3", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions3" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorArrayIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorArrayIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorArrayIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorArrayIndexCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "nestedDiscriminatorMissingKeyIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyIndexCompletions" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - } +[ + { + "label": "'Always'", + "kind": "enumMember", + "detail": "'Always'", + "deprecated": false, + "preselect": true, + "sortText": "2_'Always'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'Always'" + } + }, + { + "label": "'OnExpiration'", + "kind": "enumMember", + "detail": "'OnExpiration'", + "deprecated": false, + "preselect": true, + "sortText": "2_'OnExpiration'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'OnExpiration'" + } + }, + { + "label": "'OnSuccess'", + "kind": "enumMember", + "detail": "'OnSuccess'", + "deprecated": false, + "preselect": true, + "sortText": "2_'OnSuccess'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'OnSuccess'" + } + }, + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetOneCompletions3", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions3" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissing", + "kind": "interface", + "detail": "discriminatorKeyValueMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissing" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions3", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions3" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorArrayIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorArrayIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorArrayIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorArrayIndexCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "nestedDiscriminatorMissingKeyIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyIndexCompletions" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cliPropertyAccessIndexesPlusSymbols.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cliPropertyAccessIndexesPlusSymbols.json index 8e293262997..4bcd962fa4c 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cliPropertyAccessIndexesPlusSymbols.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/cliPropertyAccessIndexesPlusSymbols.json @@ -1,1756 +1,1770 @@ -[ - { - "label": "'arguments'", - "kind": "property", - "detail": "arguments", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'arguments'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'arguments'" - } - }, - { - "label": "'azCliVersion'", - "kind": "property", - "detail": "azCliVersion (Required)", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'azCliVersion'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'azCliVersion'" - } - }, - { - "label": "'cleanupPreference'", - "kind": "property", - "detail": "cleanupPreference", - "documentation": { - "kind": "markdown", - "value": "Type: `'Always' | 'OnExpiration' | 'OnSuccess'` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'cleanupPreference'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'cleanupPreference'" - } - }, - { - "label": "'containerSettings'", - "kind": "property", - "detail": "containerSettings", - "documentation": { - "kind": "markdown", - "value": "Type: `ContainerConfiguration` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'containerSettings'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'containerSettings'" - } - }, - { - "label": "'environmentVariables'", - "kind": "property", - "detail": "environmentVariables", - "documentation": { - "kind": "markdown", - "value": "Type: `EnvironmentVariable[]` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'environmentVariables'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'environmentVariables'" - } - }, - { - "label": "'forceUpdateTag'", - "kind": "property", - "detail": "forceUpdateTag", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'forceUpdateTag'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'forceUpdateTag'" - } - }, - { - "label": "'outputs'", - "kind": "property", - "detail": "outputs", - "documentation": { - "kind": "markdown", - "value": "Type: `Dictionary` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'outputs'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'outputs'" - } - }, - { - "label": "'primaryScriptUri'", - "kind": "property", - "detail": "primaryScriptUri", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'primaryScriptUri'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'primaryScriptUri'" - } - }, - { - "label": "'provisioningState'", - "kind": "property", - "detail": "provisioningState", - "documentation": { - "kind": "markdown", - "value": "Type: `'Canceled' | 'Creating' | 'Failed' | 'ProvisioningResources' | 'Running' | 'Succeeded'` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'provisioningState'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'provisioningState'" - } - }, - { - "label": "'retentionInterval'", - "kind": "property", - "detail": "retentionInterval (Required)", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'retentionInterval'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'retentionInterval'" - } - }, - { - "label": "'scriptContent'", - "kind": "property", - "detail": "scriptContent", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'scriptContent'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'scriptContent'" - } - }, - { - "label": "'status'", - "kind": "property", - "detail": "status", - "documentation": { - "kind": "markdown", - "value": "Type: `ScriptStatus` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'status'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'status'" - } - }, - { - "label": "'storageAccountSettings'", - "kind": "property", - "detail": "storageAccountSettings", - "documentation": { - "kind": "markdown", - "value": "Type: `StorageAccountConfiguration` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'storageAccountSettings'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'storageAccountSettings'" - } - }, - { - "label": "'supportingScriptUris'", - "kind": "property", - "detail": "supportingScriptUris", - "documentation": { - "kind": "markdown", - "value": "Type: `string[]` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'supportingScriptUris'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'supportingScriptUris'" - } - }, - { - "label": "'timeout'", - "kind": "property", - "detail": "timeout", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'timeout'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'timeout'" - } - }, - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissing", - "kind": "interface", - "detail": "discriminatorKeyValueMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissing" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions3", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions3" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "incorrectPropertiesKey2", - "kind": "interface", - "detail": "incorrectPropertiesKey2", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey2" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorArrayIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorArrayIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorArrayIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorArrayIndexCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "nestedDiscriminatorMissingKeyIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyIndexCompletions" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - } +[ + { + "label": "'arguments'", + "kind": "property", + "detail": "arguments", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'arguments'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'arguments'" + } + }, + { + "label": "'azCliVersion'", + "kind": "property", + "detail": "azCliVersion (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'azCliVersion'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'azCliVersion'" + } + }, + { + "label": "'cleanupPreference'", + "kind": "property", + "detail": "cleanupPreference", + "documentation": { + "kind": "markdown", + "value": "Type: `'Always' | 'OnExpiration' | 'OnSuccess'` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'cleanupPreference'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'cleanupPreference'" + } + }, + { + "label": "'containerSettings'", + "kind": "property", + "detail": "containerSettings", + "documentation": { + "kind": "markdown", + "value": "Type: `ContainerConfiguration` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'containerSettings'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'containerSettings'" + } + }, + { + "label": "'environmentVariables'", + "kind": "property", + "detail": "environmentVariables", + "documentation": { + "kind": "markdown", + "value": "Type: `EnvironmentVariable[]` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'environmentVariables'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'environmentVariables'" + } + }, + { + "label": "'forceUpdateTag'", + "kind": "property", + "detail": "forceUpdateTag", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'forceUpdateTag'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'forceUpdateTag'" + } + }, + { + "label": "'outputs'", + "kind": "property", + "detail": "outputs", + "documentation": { + "kind": "markdown", + "value": "Type: `Dictionary` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'outputs'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'outputs'" + } + }, + { + "label": "'primaryScriptUri'", + "kind": "property", + "detail": "primaryScriptUri", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'primaryScriptUri'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'primaryScriptUri'" + } + }, + { + "label": "'provisioningState'", + "kind": "property", + "detail": "provisioningState", + "documentation": { + "kind": "markdown", + "value": "Type: `'Canceled' | 'Creating' | 'Failed' | 'ProvisioningResources' | 'Running' | 'Succeeded'` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'provisioningState'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'provisioningState'" + } + }, + { + "label": "'retentionInterval'", + "kind": "property", + "detail": "retentionInterval (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'retentionInterval'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'retentionInterval'" + } + }, + { + "label": "'scriptContent'", + "kind": "property", + "detail": "scriptContent", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'scriptContent'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'scriptContent'" + } + }, + { + "label": "'status'", + "kind": "property", + "detail": "status", + "documentation": { + "kind": "markdown", + "value": "Type: `ScriptStatus` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'status'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'status'" + } + }, + { + "label": "'storageAccountSettings'", + "kind": "property", + "detail": "storageAccountSettings", + "documentation": { + "kind": "markdown", + "value": "Type: `StorageAccountConfiguration` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'storageAccountSettings'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'storageAccountSettings'" + } + }, + { + "label": "'supportingScriptUris'", + "kind": "property", + "detail": "supportingScriptUris", + "documentation": { + "kind": "markdown", + "value": "Type: `string[]` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'supportingScriptUris'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'supportingScriptUris'" + } + }, + { + "label": "'timeout'", + "kind": "property", + "detail": "timeout", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'timeout'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'timeout'" + } + }, + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissing", + "kind": "interface", + "detail": "discriminatorKeyValueMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissing" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions3", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions3" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "incorrectPropertiesKey2", + "kind": "interface", + "detail": "incorrectPropertiesKey2", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey2" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorArrayIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorArrayIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorArrayIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorArrayIndexCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "nestedDiscriminatorMissingKeyIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyIndexCompletions" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/createModeIndexPlusSymbols.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/createModeIndexPlusSymbols.json index e9a3188bc0f..215da858ab9 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/createModeIndexPlusSymbols.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/createModeIndexPlusSymbols.json @@ -1,1504 +1,1518 @@ -[ - { - "label": "'createMode'", - "kind": "property", - "detail": "createMode (Required)", - "documentation": { - "kind": "markdown", - "value": "Type: `'Default' | 'Restore'` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'createMode'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'createMode'" - } - }, - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetOneCompletions3", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions3" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissing", - "kind": "interface", - "detail": "discriminatorKeyValueMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissing" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions3", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions3" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "incorrectPropertiesKey2", - "kind": "interface", - "detail": "incorrectPropertiesKey2", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey2" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorArrayIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorArrayIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorArrayIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorArrayIndexCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - } +[ + { + "label": "'createMode'", + "kind": "property", + "detail": "createMode (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `'Default' | 'Restore'` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'createMode'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'createMode'" + } + }, + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetOneCompletions3", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions3" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissing", + "kind": "interface", + "detail": "discriminatorKeyValueMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissing" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions3", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions3" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "incorrectPropertiesKey2", + "kind": "interface", + "detail": "incorrectPropertiesKey2", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey2" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorArrayIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorArrayIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorArrayIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorArrayIndexCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/defaultCreateModeIndexes.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/defaultCreateModeIndexes.json index b6567c7d20a..9d970918383 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/defaultCreateModeIndexes.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/defaultCreateModeIndexes.json @@ -1,1990 +1,2004 @@ -[ - { - "label": "'apiProperties'", - "kind": "property", - "detail": "apiProperties", - "documentation": { - "kind": "markdown", - "value": "Type: `ApiProperties` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'apiProperties'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'apiProperties'" - } - }, - { - "label": "'backupPolicy'", - "kind": "property", - "detail": "backupPolicy", - "documentation": { - "kind": "markdown", - "value": "Type: `BackupPolicy` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'backupPolicy'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'backupPolicy'" - } - }, - { - "label": "'capabilities'", - "kind": "property", - "detail": "capabilities", - "documentation": { - "kind": "markdown", - "value": "Type: `Capability[]` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'capabilities'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'capabilities'" - } - }, - { - "label": "'connectorOffer'", - "kind": "property", - "detail": "connectorOffer", - "documentation": { - "kind": "markdown", - "value": "Type: `'Small'` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'connectorOffer'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'connectorOffer'" - } - }, - { - "label": "'consistencyPolicy'", - "kind": "property", - "detail": "consistencyPolicy", - "documentation": { - "kind": "markdown", - "value": "Type: `ConsistencyPolicy` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'consistencyPolicy'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'consistencyPolicy'" - } - }, - { - "label": "'cors'", - "kind": "property", - "detail": "cors", - "documentation": { - "kind": "markdown", - "value": "Type: `CorsPolicy[]` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'cors'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'cors'" - } - }, - { - "label": "'createMode'", - "kind": "property", - "detail": "createMode (Required)", - "documentation": { - "kind": "markdown", - "value": "Type: `'Default'` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'createMode'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'createMode'" - } - }, - { - "label": "'databaseAccountOfferType'", - "kind": "property", - "detail": "databaseAccountOfferType (Required)", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'databaseAccountOfferType'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'databaseAccountOfferType'" - } - }, - { - "label": "'disableKeyBasedMetadataWriteAccess'", - "kind": "property", - "detail": "disableKeyBasedMetadataWriteAccess", - "documentation": { - "kind": "markdown", - "value": "Type: `bool` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'disableKeyBasedMetadataWriteAccess'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'disableKeyBasedMetadataWriteAccess'" - } - }, - { - "label": "'documentEndpoint'", - "kind": "property", - "detail": "documentEndpoint", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'documentEndpoint'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'documentEndpoint'" - } - }, - { - "label": "'enableAnalyticalStorage'", - "kind": "property", - "detail": "enableAnalyticalStorage", - "documentation": { - "kind": "markdown", - "value": "Type: `bool` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'enableAnalyticalStorage'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'enableAnalyticalStorage'" - } - }, - { - "label": "'enableAutomaticFailover'", - "kind": "property", - "detail": "enableAutomaticFailover", - "documentation": { - "kind": "markdown", - "value": "Type: `bool` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'enableAutomaticFailover'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'enableAutomaticFailover'" - } - }, - { - "label": "'enableCassandraConnector'", - "kind": "property", - "detail": "enableCassandraConnector", - "documentation": { - "kind": "markdown", - "value": "Type: `bool` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'enableCassandraConnector'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'enableCassandraConnector'" - } - }, - { - "label": "'enableFreeTier'", - "kind": "property", - "detail": "enableFreeTier", - "documentation": { - "kind": "markdown", - "value": "Type: `bool` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'enableFreeTier'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'enableFreeTier'" - } - }, - { - "label": "'enableMultipleWriteLocations'", - "kind": "property", - "detail": "enableMultipleWriteLocations", - "documentation": { - "kind": "markdown", - "value": "Type: `bool` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'enableMultipleWriteLocations'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'enableMultipleWriteLocations'" - } - }, - { - "label": "'failoverPolicies'", - "kind": "property", - "detail": "failoverPolicies", - "documentation": { - "kind": "markdown", - "value": "Type: `FailoverPolicy[]` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'failoverPolicies'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'failoverPolicies'" - } - }, - { - "label": "'instanceId'", - "kind": "property", - "detail": "instanceId", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'instanceId'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'instanceId'" - } - }, - { - "label": "'ipRules'", - "kind": "property", - "detail": "ipRules", - "documentation": { - "kind": "markdown", - "value": "Type: `IpAddressOrRange[]` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'ipRules'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'ipRules'" - } - }, - { - "label": "'isVirtualNetworkFilterEnabled'", - "kind": "property", - "detail": "isVirtualNetworkFilterEnabled", - "documentation": { - "kind": "markdown", - "value": "Type: `bool` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'isVirtualNetworkFilterEnabled'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'isVirtualNetworkFilterEnabled'" - } - }, - { - "label": "'keyVaultKeyUri'", - "kind": "property", - "detail": "keyVaultKeyUri", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'keyVaultKeyUri'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'keyVaultKeyUri'" - } - }, - { - "label": "'locations'", - "kind": "property", - "detail": "locations (Required)", - "documentation": { - "kind": "markdown", - "value": "Type: `Location[]` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'locations'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'locations'" - } - }, - { - "label": "'privateEndpointConnections'", - "kind": "property", - "detail": "privateEndpointConnections", - "documentation": { - "kind": "markdown", - "value": "Type: `PrivateEndpointConnection[]` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'privateEndpointConnections'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'privateEndpointConnections'" - } - }, - { - "label": "'provisioningState'", - "kind": "property", - "detail": "provisioningState", - "documentation": { - "kind": "markdown", - "value": "Type: `string` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'provisioningState'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'provisioningState'" - } - }, - { - "label": "'publicNetworkAccess'", - "kind": "property", - "detail": "publicNetworkAccess", - "documentation": { - "kind": "markdown", - "value": "Type: `'Disabled' | 'Enabled'` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'publicNetworkAccess'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'publicNetworkAccess'" - } - }, - { - "label": "'readLocations'", - "kind": "property", - "detail": "readLocations", - "documentation": { - "kind": "markdown", - "value": "Type: `Location[]` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'readLocations'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'readLocations'" - } - }, - { - "label": "'restoreParameters'", - "kind": "property", - "detail": "restoreParameters", - "documentation": { - "kind": "markdown", - "value": "Type: `RestoreParameters` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'restoreParameters'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'restoreParameters'" - } - }, - { - "label": "'virtualNetworkRules'", - "kind": "property", - "detail": "virtualNetworkRules", - "documentation": { - "kind": "markdown", - "value": "Type: `VirtualNetworkRule[]` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'virtualNetworkRules'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'virtualNetworkRules'" - } - }, - { - "label": "'writeLocations'", - "kind": "property", - "detail": "writeLocations", - "documentation": { - "kind": "markdown", - "value": "Type: `Location[]` \nRead-only property \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'writeLocations'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'writeLocations'" - } - }, - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetOneCompletions3", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions3" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissing", - "kind": "interface", - "detail": "discriminatorKeyValueMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissing" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions3", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions3" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "incorrectPropertiesKey2", - "kind": "interface", - "detail": "incorrectPropertiesKey2", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey2" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "nestedDiscriminatorMissingKeyIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyIndexCompletions" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - } +[ + { + "label": "'apiProperties'", + "kind": "property", + "detail": "apiProperties", + "documentation": { + "kind": "markdown", + "value": "Type: `ApiProperties` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'apiProperties'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'apiProperties'" + } + }, + { + "label": "'backupPolicy'", + "kind": "property", + "detail": "backupPolicy", + "documentation": { + "kind": "markdown", + "value": "Type: `BackupPolicy` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'backupPolicy'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'backupPolicy'" + } + }, + { + "label": "'capabilities'", + "kind": "property", + "detail": "capabilities", + "documentation": { + "kind": "markdown", + "value": "Type: `Capability[]` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'capabilities'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'capabilities'" + } + }, + { + "label": "'connectorOffer'", + "kind": "property", + "detail": "connectorOffer", + "documentation": { + "kind": "markdown", + "value": "Type: `'Small'` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'connectorOffer'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'connectorOffer'" + } + }, + { + "label": "'consistencyPolicy'", + "kind": "property", + "detail": "consistencyPolicy", + "documentation": { + "kind": "markdown", + "value": "Type: `ConsistencyPolicy` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'consistencyPolicy'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'consistencyPolicy'" + } + }, + { + "label": "'cors'", + "kind": "property", + "detail": "cors", + "documentation": { + "kind": "markdown", + "value": "Type: `CorsPolicy[]` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'cors'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'cors'" + } + }, + { + "label": "'createMode'", + "kind": "property", + "detail": "createMode (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `'Default'` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'createMode'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'createMode'" + } + }, + { + "label": "'databaseAccountOfferType'", + "kind": "property", + "detail": "databaseAccountOfferType (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'databaseAccountOfferType'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'databaseAccountOfferType'" + } + }, + { + "label": "'disableKeyBasedMetadataWriteAccess'", + "kind": "property", + "detail": "disableKeyBasedMetadataWriteAccess", + "documentation": { + "kind": "markdown", + "value": "Type: `bool` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'disableKeyBasedMetadataWriteAccess'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'disableKeyBasedMetadataWriteAccess'" + } + }, + { + "label": "'documentEndpoint'", + "kind": "property", + "detail": "documentEndpoint", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'documentEndpoint'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'documentEndpoint'" + } + }, + { + "label": "'enableAnalyticalStorage'", + "kind": "property", + "detail": "enableAnalyticalStorage", + "documentation": { + "kind": "markdown", + "value": "Type: `bool` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'enableAnalyticalStorage'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'enableAnalyticalStorage'" + } + }, + { + "label": "'enableAutomaticFailover'", + "kind": "property", + "detail": "enableAutomaticFailover", + "documentation": { + "kind": "markdown", + "value": "Type: `bool` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'enableAutomaticFailover'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'enableAutomaticFailover'" + } + }, + { + "label": "'enableCassandraConnector'", + "kind": "property", + "detail": "enableCassandraConnector", + "documentation": { + "kind": "markdown", + "value": "Type: `bool` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'enableCassandraConnector'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'enableCassandraConnector'" + } + }, + { + "label": "'enableFreeTier'", + "kind": "property", + "detail": "enableFreeTier", + "documentation": { + "kind": "markdown", + "value": "Type: `bool` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'enableFreeTier'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'enableFreeTier'" + } + }, + { + "label": "'enableMultipleWriteLocations'", + "kind": "property", + "detail": "enableMultipleWriteLocations", + "documentation": { + "kind": "markdown", + "value": "Type: `bool` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'enableMultipleWriteLocations'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'enableMultipleWriteLocations'" + } + }, + { + "label": "'failoverPolicies'", + "kind": "property", + "detail": "failoverPolicies", + "documentation": { + "kind": "markdown", + "value": "Type: `FailoverPolicy[]` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'failoverPolicies'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'failoverPolicies'" + } + }, + { + "label": "'instanceId'", + "kind": "property", + "detail": "instanceId", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'instanceId'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'instanceId'" + } + }, + { + "label": "'ipRules'", + "kind": "property", + "detail": "ipRules", + "documentation": { + "kind": "markdown", + "value": "Type: `IpAddressOrRange[]` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'ipRules'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'ipRules'" + } + }, + { + "label": "'isVirtualNetworkFilterEnabled'", + "kind": "property", + "detail": "isVirtualNetworkFilterEnabled", + "documentation": { + "kind": "markdown", + "value": "Type: `bool` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'isVirtualNetworkFilterEnabled'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'isVirtualNetworkFilterEnabled'" + } + }, + { + "label": "'keyVaultKeyUri'", + "kind": "property", + "detail": "keyVaultKeyUri", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'keyVaultKeyUri'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'keyVaultKeyUri'" + } + }, + { + "label": "'locations'", + "kind": "property", + "detail": "locations (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `Location[]` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'locations'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'locations'" + } + }, + { + "label": "'privateEndpointConnections'", + "kind": "property", + "detail": "privateEndpointConnections", + "documentation": { + "kind": "markdown", + "value": "Type: `PrivateEndpointConnection[]` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'privateEndpointConnections'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'privateEndpointConnections'" + } + }, + { + "label": "'provisioningState'", + "kind": "property", + "detail": "provisioningState", + "documentation": { + "kind": "markdown", + "value": "Type: `string` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'provisioningState'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'provisioningState'" + } + }, + { + "label": "'publicNetworkAccess'", + "kind": "property", + "detail": "publicNetworkAccess", + "documentation": { + "kind": "markdown", + "value": "Type: `'Disabled' | 'Enabled'` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'publicNetworkAccess'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'publicNetworkAccess'" + } + }, + { + "label": "'readLocations'", + "kind": "property", + "detail": "readLocations", + "documentation": { + "kind": "markdown", + "value": "Type: `Location[]` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'readLocations'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'readLocations'" + } + }, + { + "label": "'restoreParameters'", + "kind": "property", + "detail": "restoreParameters", + "documentation": { + "kind": "markdown", + "value": "Type: `RestoreParameters` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'restoreParameters'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'restoreParameters'" + } + }, + { + "label": "'virtualNetworkRules'", + "kind": "property", + "detail": "virtualNetworkRules", + "documentation": { + "kind": "markdown", + "value": "Type: `VirtualNetworkRule[]` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'virtualNetworkRules'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'virtualNetworkRules'" + } + }, + { + "label": "'writeLocations'", + "kind": "property", + "detail": "writeLocations", + "documentation": { + "kind": "markdown", + "value": "Type: `Location[]` \nRead-only property \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'writeLocations'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'writeLocations'" + } + }, + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetOneCompletions3", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions3" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissing", + "kind": "interface", + "detail": "discriminatorKeyValueMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissing" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions3", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions3" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "incorrectPropertiesKey2", + "kind": "interface", + "detail": "incorrectPropertiesKey2", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey2" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "nestedDiscriminatorMissingKeyIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyIndexCompletions" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/deploymentScriptKindsPlusSymbols.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/deploymentScriptKindsPlusSymbols.json index ed692e7e578..79cb4768258 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/deploymentScriptKindsPlusSymbols.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/deploymentScriptKindsPlusSymbols.json @@ -1,1514 +1,1528 @@ -[ - { - "label": "'AzureCLI'", - "kind": "enumMember", - "detail": "'AzureCLI'", - "deprecated": false, - "preselect": true, - "sortText": "2_'AzureCLI'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'AzureCLI'" - } - }, - { - "label": "'AzurePowerShell'", - "kind": "enumMember", - "detail": "'AzurePowerShell'", - "deprecated": false, - "preselect": true, - "sortText": "2_'AzurePowerShell'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'AzurePowerShell'" - } - }, - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetOneCompletions3", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions3" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions3", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions3" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "incorrectPropertiesKey2", - "kind": "interface", - "detail": "incorrectPropertiesKey2", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey2" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorArrayIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorArrayIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorArrayIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorArrayIndexCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "nestedDiscriminatorMissingKeyIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyIndexCompletions" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - } +[ + { + "label": "'AzureCLI'", + "kind": "enumMember", + "detail": "'AzureCLI'", + "deprecated": false, + "preselect": true, + "sortText": "2_'AzureCLI'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'AzureCLI'" + } + }, + { + "label": "'AzurePowerShell'", + "kind": "enumMember", + "detail": "'AzurePowerShell'", + "deprecated": false, + "preselect": true, + "sortText": "2_'AzurePowerShell'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'AzurePowerShell'" + } + }, + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetOneCompletions3", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions3" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions3", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions3" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "incorrectPropertiesKey2", + "kind": "interface", + "detail": "incorrectPropertiesKey2", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey2" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorArrayIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorArrayIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorArrayIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorArrayIndexCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "nestedDiscriminatorMissingKeyIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyIndexCompletions" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/missingDiscriminatorPropertyIndexPlusSymbols.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/missingDiscriminatorPropertyIndexPlusSymbols.json index ad1dd9a3341..6c4563e4012 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/missingDiscriminatorPropertyIndexPlusSymbols.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/missingDiscriminatorPropertyIndexPlusSymbols.json @@ -1,1504 +1,1518 @@ -[ - { - "label": "'kind'", - "kind": "property", - "detail": "kind (Required)", - "documentation": { - "kind": "markdown", - "value": "Type: `'AzureCLI' | 'AzurePowerShell'` \n" - }, - "deprecated": false, - "preselect": false, - "sortText": "1_'kind'", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "'kind'" - } - }, - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetOneCompletions3", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions3" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissing", - "kind": "interface", - "detail": "discriminatorKeyValueMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissing" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "incorrectPropertiesKey2", - "kind": "interface", - "detail": "incorrectPropertiesKey2", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey2" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorArrayIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorArrayIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorArrayIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorArrayIndexCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "nestedDiscriminatorMissingKeyIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyIndexCompletions" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - } +[ + { + "label": "'kind'", + "kind": "property", + "detail": "kind (Required)", + "documentation": { + "kind": "markdown", + "value": "Type: `'AzureCLI' | 'AzurePowerShell'` \n" + }, + "deprecated": false, + "preselect": false, + "sortText": "1_'kind'", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "'kind'" + } + }, + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetOneCompletions3", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions3" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissing", + "kind": "interface", + "detail": "discriminatorKeyValueMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissing" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "incorrectPropertiesKey2", + "kind": "interface", + "detail": "incorrectPropertiesKey2", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey2" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorArrayIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorArrayIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorArrayIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorArrayIndexCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "nestedDiscriminatorMissingKeyIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyIndexCompletions" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/objectPlusSymbols.json b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/objectPlusSymbols.json index caaf0889fcf..9b0423b673f 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/objectPlusSymbols.json +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/Completions/objectPlusSymbols.json @@ -1,1500 +1,1514 @@ -[ - { - "label": "any", - "kind": "function", - "detail": "any()", - "deprecated": false, - "preselect": false, - "sortText": "3_any", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "any($0)" - } - }, - { - "label": "array", - "kind": "function", - "detail": "array()", - "deprecated": false, - "preselect": false, - "sortText": "3_array", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "array($0)" - } - }, - { - "label": "az", - "kind": "folder", - "detail": "az", - "deprecated": false, - "preselect": false, - "sortText": "3_az", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "az" - } - }, - { - "label": "badDepends", - "kind": "interface", - "detail": "badDepends", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends" - } - }, - { - "label": "badDepends2", - "kind": "interface", - "detail": "badDepends2", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends2" - } - }, - { - "label": "badDepends3", - "kind": "interface", - "detail": "badDepends3", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends3" - } - }, - { - "label": "badDepends4", - "kind": "interface", - "detail": "badDepends4", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends4" - } - }, - { - "label": "badDepends5", - "kind": "interface", - "detail": "badDepends5", - "deprecated": false, - "preselect": false, - "sortText": "2_badDepends5", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badDepends5" - } - }, - { - "label": "badInterp", - "kind": "interface", - "detail": "badInterp", - "deprecated": false, - "preselect": false, - "sortText": "2_badInterp", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "badInterp" - } - }, - { - "label": "bar", - "kind": "interface", - "detail": "bar", - "deprecated": false, - "preselect": false, - "sortText": "2_bar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bar" - } - }, - { - "label": "base64", - "kind": "function", - "detail": "base64()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64($0)" - } - }, - { - "label": "base64ToJson", - "kind": "function", - "detail": "base64ToJson()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToJson", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToJson($0)" - } - }, - { - "label": "base64ToString", - "kind": "function", - "detail": "base64ToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_base64ToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "base64ToString($0)" - } - }, - { - "label": "baz", - "kind": "interface", - "detail": "baz", - "deprecated": false, - "preselect": false, - "sortText": "2_baz", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "baz" - } - }, - { - "label": "bool", - "kind": "function", - "detail": "bool()", - "deprecated": false, - "preselect": false, - "sortText": "3_bool", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "bool($0)" - } - }, - { - "label": "coalesce", - "kind": "function", - "detail": "coalesce()", - "deprecated": false, - "preselect": false, - "sortText": "3_coalesce", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "coalesce($0)" - } - }, - { - "label": "concat", - "kind": "function", - "detail": "concat()", - "deprecated": false, - "preselect": false, - "sortText": "3_concat", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "concat($0)" - } - }, - { - "label": "contains", - "kind": "function", - "detail": "contains()", - "deprecated": false, - "preselect": false, - "sortText": "3_contains", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "contains($0)" - } - }, - { - "label": "dashesInPropertyNames", - "kind": "interface", - "detail": "dashesInPropertyNames", - "deprecated": false, - "preselect": false, - "sortText": "2_dashesInPropertyNames", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dashesInPropertyNames" - } - }, - { - "label": "dataUri", - "kind": "function", - "detail": "dataUri()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUri($0)" - } - }, - { - "label": "dataUriToString", - "kind": "function", - "detail": "dataUriToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_dataUriToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dataUriToString($0)" - } - }, - { - "label": "dateTimeAdd", - "kind": "function", - "detail": "dateTimeAdd()", - "deprecated": false, - "preselect": false, - "sortText": "3_dateTimeAdd", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "dateTimeAdd($0)" - } - }, - { - "label": "deployment", - "kind": "function", - "detail": "deployment()", - "deprecated": false, - "preselect": false, - "sortText": "3_deployment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "deployment()$0" - } - }, - { - "label": "discriminatorKeyMissing", - "kind": "interface", - "detail": "discriminatorKeyMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyMissing" - } - }, - { - "label": "discriminatorKeySetOne", - "kind": "interface", - "detail": "discriminatorKeySetOne", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOne", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOne" - } - }, - { - "label": "discriminatorKeySetOneCompletions", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions" - } - }, - { - "label": "discriminatorKeySetOneCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions2" - } - }, - { - "label": "discriminatorKeySetOneCompletions3", - "kind": "variable", - "detail": "discriminatorKeySetOneCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetOneCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetOneCompletions3" - } - }, - { - "label": "discriminatorKeySetTwo", - "kind": "interface", - "detail": "discriminatorKeySetTwo", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwo" - } - }, - { - "label": "discriminatorKeySetTwoCompletions", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions" - } - }, - { - "label": "discriminatorKeySetTwoCompletions2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletions2" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" - } - }, - { - "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "kind": "variable", - "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" - } - }, - { - "label": "discriminatorKeyValueMissing", - "kind": "interface", - "detail": "discriminatorKeyValueMissing", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissing", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissing" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions2", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions2" - } - }, - { - "label": "discriminatorKeyValueMissingCompletions3", - "kind": "variable", - "detail": "discriminatorKeyValueMissingCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_discriminatorKeyValueMissingCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "discriminatorKeyValueMissingCompletions3" - } - }, - { - "label": "empty", - "kind": "function", - "detail": "empty()", - "deprecated": false, - "preselect": false, - "sortText": "3_empty", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "empty($0)" - } - }, - { - "label": "endsWith", - "kind": "function", - "detail": "endsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_endsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "endsWith($0)" - } - }, - { - "label": "environment", - "kind": "function", - "detail": "environment()", - "deprecated": false, - "preselect": false, - "sortText": "3_environment", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "environment()$0" - } - }, - { - "label": "extensionResourceId", - "kind": "function", - "detail": "extensionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_extensionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "extensionResourceId($0)" - } - }, - { - "label": "first", - "kind": "function", - "detail": "first()", - "deprecated": false, - "preselect": false, - "sortText": "3_first", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "first($0)" - } - }, - { - "label": "fo", - "kind": "interface", - "detail": "fo", - "deprecated": false, - "preselect": false, - "sortText": "2_fo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "fo" - } - }, - { - "label": "foo", - "kind": "interface", - "detail": "foo", - "deprecated": false, - "preselect": false, - "sortText": "2_foo", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "foo" - } - }, - { - "label": "format", - "kind": "function", - "detail": "format()", - "deprecated": false, - "preselect": false, - "sortText": "3_format", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "format($0)" - } - }, - { - "label": "guid", - "kind": "function", - "detail": "guid()", - "deprecated": false, - "preselect": false, - "sortText": "3_guid", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "guid($0)" - } - }, - { - "label": "incorrectPropertiesKey", - "kind": "interface", - "detail": "incorrectPropertiesKey", - "deprecated": false, - "preselect": false, - "sortText": "2_incorrectPropertiesKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "incorrectPropertiesKey" - } - }, - { - "label": "indexOf", - "kind": "function", - "detail": "indexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_indexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "indexOf($0)" - } - }, - { - "label": "int", - "kind": "function", - "detail": "int()", - "deprecated": false, - "preselect": false, - "sortText": "3_int", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "int($0)" - } - }, - { - "label": "interpVal", - "kind": "variable", - "detail": "interpVal", - "deprecated": false, - "preselect": false, - "sortText": "2_interpVal", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "interpVal" - } - }, - { - "label": "intersection", - "kind": "function", - "detail": "intersection()", - "deprecated": false, - "preselect": false, - "sortText": "3_intersection", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "intersection($0)" - } - }, - { - "label": "json", - "kind": "function", - "detail": "json()", - "deprecated": false, - "preselect": false, - "sortText": "3_json", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "json($0)" - } - }, - { - "label": "last", - "kind": "function", - "detail": "last()", - "deprecated": false, - "preselect": false, - "sortText": "3_last", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "last($0)" - } - }, - { - "label": "lastIndexOf", - "kind": "function", - "detail": "lastIndexOf()", - "deprecated": false, - "preselect": false, - "sortText": "3_lastIndexOf", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "lastIndexOf($0)" - } - }, - { - "label": "length", - "kind": "function", - "detail": "length()", - "deprecated": false, - "preselect": false, - "sortText": "3_length", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "length($0)" - } - }, - { - "label": "letsAccessTheDashes", - "kind": "variable", - "detail": "letsAccessTheDashes", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes" - } - }, - { - "label": "letsAccessTheDashes2", - "kind": "variable", - "detail": "letsAccessTheDashes2", - "deprecated": false, - "preselect": false, - "sortText": "2_letsAccessTheDashes2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "letsAccessTheDashes2" - } - }, - { - "label": "max", - "kind": "function", - "detail": "max()", - "deprecated": false, - "preselect": false, - "sortText": "3_max", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "max($0)" - } - }, - { - "label": "min", - "kind": "function", - "detail": "min()", - "deprecated": false, - "preselect": false, - "sortText": "3_min", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "min($0)" - } - }, - { - "label": "missingTopLevelProperties", - "kind": "interface", - "detail": "missingTopLevelProperties", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelProperties", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelProperties" - } - }, - { - "label": "missingTopLevelPropertiesExceptName", - "kind": "interface", - "detail": "missingTopLevelPropertiesExceptName", - "deprecated": false, - "preselect": false, - "sortText": "2_missingTopLevelPropertiesExceptName", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingTopLevelPropertiesExceptName" - } - }, - { - "label": "missingType", - "kind": "interface", - "detail": "missingType", - "deprecated": false, - "preselect": false, - "sortText": "2_missingType", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "missingType" - } - }, - { - "label": "mock", - "kind": "variable", - "detail": "mock", - "deprecated": false, - "preselect": false, - "sortText": "2_mock", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "mock" - } - }, - { - "label": "nestedDiscriminator", - "kind": "interface", - "detail": "nestedDiscriminator", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminator", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminator" - } - }, - { - "label": "nestedDiscriminatorArrayIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorArrayIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorArrayIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorArrayIndexCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions" - } - }, - { - "label": "nestedDiscriminatorCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions2" - } - }, - { - "label": "nestedDiscriminatorCompletions3", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions3", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions3", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions3" - } - }, - { - "label": "nestedDiscriminatorCompletions4", - "kind": "variable", - "detail": "nestedDiscriminatorCompletions4", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorCompletions4", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorCompletions4" - } - }, - { - "label": "nestedDiscriminatorMissingKey", - "kind": "interface", - "detail": "nestedDiscriminatorMissingKey", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKey", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKey" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions" - } - }, - { - "label": "nestedDiscriminatorMissingKeyCompletions2", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyCompletions2", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyCompletions2" - } - }, - { - "label": "nestedDiscriminatorMissingKeyIndexCompletions", - "kind": "variable", - "detail": "nestedDiscriminatorMissingKeyIndexCompletions", - "deprecated": false, - "preselect": false, - "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "nestedDiscriminatorMissingKeyIndexCompletions" - } - }, - { - "label": "padLeft", - "kind": "function", - "detail": "padLeft()", - "deprecated": false, - "preselect": false, - "sortText": "3_padLeft", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "padLeft($0)" - } - }, - { - "label": "pickZones", - "kind": "function", - "detail": "pickZones()", - "deprecated": false, - "preselect": false, - "sortText": "3_pickZones", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "pickZones($0)" - } - }, - { - "label": "providers", - "kind": "function", - "detail": "providers()", - "deprecated": false, - "preselect": false, - "sortText": "3_providers", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "providers($0)" - } - }, - { - "label": "range", - "kind": "function", - "detail": "range()", - "deprecated": false, - "preselect": false, - "sortText": "3_range", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "range($0)" - } - }, - { - "label": "reference", - "kind": "function", - "detail": "reference()", - "deprecated": false, - "preselect": false, - "sortText": "3_reference", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "reference($0)" - } - }, - { - "label": "replace", - "kind": "function", - "detail": "replace()", - "deprecated": false, - "preselect": false, - "sortText": "3_replace", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "replace($0)" - } - }, - { - "label": "resourceGroup", - "kind": "function", - "detail": "resourceGroup()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceGroup", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceGroup($0)" - } - }, - { - "label": "resourceId", - "kind": "function", - "detail": "resourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_resourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resourceId($0)" - } - }, - { - "label": "resrefpar", - "kind": "field", - "detail": "resrefpar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefpar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefpar" - } - }, - { - "label": "resrefvar", - "kind": "variable", - "detail": "resrefvar", - "deprecated": false, - "preselect": false, - "sortText": "2_resrefvar", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "resrefvar" - } - }, - { - "label": "skip", - "kind": "function", - "detail": "skip()", - "deprecated": false, - "preselect": false, - "sortText": "3_skip", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "skip($0)" - } - }, - { - "label": "split", - "kind": "function", - "detail": "split()", - "deprecated": false, - "preselect": false, - "sortText": "3_split", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "split($0)" - } - }, - { - "label": "startedTypingTypeWithQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithQuotes" - } - }, - { - "label": "startedTypingTypeWithoutQuotes", - "kind": "interface", - "detail": "startedTypingTypeWithoutQuotes", - "deprecated": false, - "preselect": false, - "sortText": "2_startedTypingTypeWithoutQuotes", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startedTypingTypeWithoutQuotes" - } - }, - { - "label": "startsWith", - "kind": "function", - "detail": "startsWith()", - "deprecated": false, - "preselect": false, - "sortText": "3_startsWith", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "startsWith($0)" - } - }, - { - "label": "string", - "kind": "function", - "detail": "string()", - "deprecated": false, - "preselect": false, - "sortText": "3_string", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "string($0)" - } - }, - { - "label": "subscription", - "kind": "function", - "detail": "subscription()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscription", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscription($0)" - } - }, - { - "label": "subscriptionResourceId", - "kind": "function", - "detail": "subscriptionResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_subscriptionResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "subscriptionResourceId($0)" - } - }, - { - "label": "substring", - "kind": "function", - "detail": "substring()", - "deprecated": false, - "preselect": false, - "sortText": "3_substring", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "substring($0)" - } - }, - { - "label": "sys", - "kind": "folder", - "detail": "sys", - "deprecated": false, - "preselect": false, - "sortText": "3_sys", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "sys" - } - }, - { - "label": "take", - "kind": "function", - "detail": "take()", - "deprecated": false, - "preselect": false, - "sortText": "3_take", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "take($0)" - } - }, - { - "label": "tenant", - "kind": "function", - "detail": "tenant()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenant", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenant()$0" - } - }, - { - "label": "tenantResourceId", - "kind": "function", - "detail": "tenantResourceId()", - "deprecated": false, - "preselect": false, - "sortText": "3_tenantResourceId", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "tenantResourceId($0)" - } - }, - { - "label": "toLower", - "kind": "function", - "detail": "toLower()", - "deprecated": false, - "preselect": false, - "sortText": "3_toLower", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toLower($0)" - } - }, - { - "label": "toUpper", - "kind": "function", - "detail": "toUpper()", - "deprecated": false, - "preselect": false, - "sortText": "3_toUpper", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "toUpper($0)" - } - }, - { - "label": "trailingSpace", - "kind": "interface", - "detail": "trailingSpace", - "deprecated": false, - "preselect": false, - "sortText": "2_trailingSpace", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trailingSpace" - } - }, - { - "label": "trim", - "kind": "function", - "detail": "trim()", - "deprecated": false, - "preselect": false, - "sortText": "3_trim", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "trim($0)" - } - }, - { - "label": "unfinishedVnet", - "kind": "interface", - "detail": "unfinishedVnet", - "deprecated": false, - "preselect": false, - "sortText": "2_unfinishedVnet", - "insertTextFormat": "plainText", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "unfinishedVnet" - } - }, - { - "label": "union", - "kind": "function", - "detail": "union()", - "deprecated": false, - "preselect": false, - "sortText": "3_union", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "union($0)" - } - }, - { - "label": "uniqueString", - "kind": "function", - "detail": "uniqueString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uniqueString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uniqueString($0)" - } - }, - { - "label": "uri", - "kind": "function", - "detail": "uri()", - "deprecated": false, - "preselect": false, - "sortText": "3_uri", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uri($0)" - } - }, - { - "label": "uriComponent", - "kind": "function", - "detail": "uriComponent()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponent", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponent($0)" - } - }, - { - "label": "uriComponentToString", - "kind": "function", - "detail": "uriComponentToString()", - "deprecated": false, - "preselect": false, - "sortText": "3_uriComponentToString", - "insertTextFormat": "snippet", - "insertTextMode": "asIs", - "textEdit": { - "range": {}, - "newText": "uriComponentToString($0)" - } - }, - { - "label": "{}", - "kind": "value", - "detail": "{}", - "deprecated": false, - "preselect": true, - "sortText": "1_{}", - "insertTextFormat": "snippet", - "insertTextMode": "adjustIndentation", - "textEdit": { - "range": {}, - "newText": "{\n\t$0\n}" - } - } +[ + { + "label": "any", + "kind": "function", + "detail": "any()", + "deprecated": false, + "preselect": false, + "sortText": "3_any", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "any($0)" + } + }, + { + "label": "array", + "kind": "function", + "detail": "array()", + "deprecated": false, + "preselect": false, + "sortText": "3_array", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "array($0)" + } + }, + { + "label": "az", + "kind": "folder", + "detail": "az", + "deprecated": false, + "preselect": false, + "sortText": "3_az", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "az" + } + }, + { + "label": "badDepends", + "kind": "interface", + "detail": "badDepends", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends" + } + }, + { + "label": "badDepends2", + "kind": "interface", + "detail": "badDepends2", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends2" + } + }, + { + "label": "badDepends3", + "kind": "interface", + "detail": "badDepends3", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends3" + } + }, + { + "label": "badDepends4", + "kind": "interface", + "detail": "badDepends4", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends4" + } + }, + { + "label": "badDepends5", + "kind": "interface", + "detail": "badDepends5", + "deprecated": false, + "preselect": false, + "sortText": "2_badDepends5", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badDepends5" + } + }, + { + "label": "badInterp", + "kind": "interface", + "detail": "badInterp", + "deprecated": false, + "preselect": false, + "sortText": "2_badInterp", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "badInterp" + } + }, + { + "label": "bar", + "kind": "interface", + "detail": "bar", + "deprecated": false, + "preselect": false, + "sortText": "2_bar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bar" + } + }, + { + "label": "base64", + "kind": "function", + "detail": "base64()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64($0)" + } + }, + { + "label": "base64ToJson", + "kind": "function", + "detail": "base64ToJson()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToJson", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToJson($0)" + } + }, + { + "label": "base64ToString", + "kind": "function", + "detail": "base64ToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_base64ToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "base64ToString($0)" + } + }, + { + "label": "baz", + "kind": "interface", + "detail": "baz", + "deprecated": false, + "preselect": false, + "sortText": "2_baz", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "baz" + } + }, + { + "label": "bool", + "kind": "function", + "detail": "bool()", + "deprecated": false, + "preselect": false, + "sortText": "3_bool", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "bool($0)" + } + }, + { + "label": "coalesce", + "kind": "function", + "detail": "coalesce()", + "deprecated": false, + "preselect": false, + "sortText": "3_coalesce", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "coalesce($0)" + } + }, + { + "label": "concat", + "kind": "function", + "detail": "concat()", + "deprecated": false, + "preselect": false, + "sortText": "3_concat", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "concat($0)" + } + }, + { + "label": "contains", + "kind": "function", + "detail": "contains()", + "deprecated": false, + "preselect": false, + "sortText": "3_contains", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "contains($0)" + } + }, + { + "label": "dashesInPropertyNames", + "kind": "interface", + "detail": "dashesInPropertyNames", + "deprecated": false, + "preselect": false, + "sortText": "2_dashesInPropertyNames", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dashesInPropertyNames" + } + }, + { + "label": "dataUri", + "kind": "function", + "detail": "dataUri()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUri($0)" + } + }, + { + "label": "dataUriToString", + "kind": "function", + "detail": "dataUriToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_dataUriToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dataUriToString($0)" + } + }, + { + "label": "dateTimeAdd", + "kind": "function", + "detail": "dateTimeAdd()", + "deprecated": false, + "preselect": false, + "sortText": "3_dateTimeAdd", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "dateTimeAdd($0)" + } + }, + { + "label": "deployment", + "kind": "function", + "detail": "deployment()", + "deprecated": false, + "preselect": false, + "sortText": "3_deployment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "deployment()$0" + } + }, + { + "label": "discriminatorKeyMissing", + "kind": "interface", + "detail": "discriminatorKeyMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyMissing" + } + }, + { + "label": "discriminatorKeySetOne", + "kind": "interface", + "detail": "discriminatorKeySetOne", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOne", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOne" + } + }, + { + "label": "discriminatorKeySetOneCompletions", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions" + } + }, + { + "label": "discriminatorKeySetOneCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions2" + } + }, + { + "label": "discriminatorKeySetOneCompletions3", + "kind": "variable", + "detail": "discriminatorKeySetOneCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetOneCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetOneCompletions3" + } + }, + { + "label": "discriminatorKeySetTwo", + "kind": "interface", + "detail": "discriminatorKeySetTwo", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwo" + } + }, + { + "label": "discriminatorKeySetTwoCompletions", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions" + } + }, + { + "label": "discriminatorKeySetTwoCompletions2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletions2" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer" + } + }, + { + "label": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "kind": "variable", + "detail": "discriminatorKeySetTwoCompletionsArrayIndexer2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeySetTwoCompletionsArrayIndexer2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeySetTwoCompletionsArrayIndexer2" + } + }, + { + "label": "discriminatorKeyValueMissing", + "kind": "interface", + "detail": "discriminatorKeyValueMissing", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissing", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissing" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions2", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions2" + } + }, + { + "label": "discriminatorKeyValueMissingCompletions3", + "kind": "variable", + "detail": "discriminatorKeyValueMissingCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_discriminatorKeyValueMissingCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "discriminatorKeyValueMissingCompletions3" + } + }, + { + "label": "empty", + "kind": "function", + "detail": "empty()", + "deprecated": false, + "preselect": false, + "sortText": "3_empty", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "empty($0)" + } + }, + { + "label": "endsWith", + "kind": "function", + "detail": "endsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_endsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "endsWith($0)" + } + }, + { + "label": "environment", + "kind": "function", + "detail": "environment()", + "deprecated": false, + "preselect": false, + "sortText": "3_environment", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "environment()$0" + } + }, + { + "label": "extensionResourceId", + "kind": "function", + "detail": "extensionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_extensionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "extensionResourceId($0)" + } + }, + { + "label": "first", + "kind": "function", + "detail": "first()", + "deprecated": false, + "preselect": false, + "sortText": "3_first", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "first($0)" + } + }, + { + "label": "fo", + "kind": "interface", + "detail": "fo", + "deprecated": false, + "preselect": false, + "sortText": "2_fo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "fo" + } + }, + { + "label": "foo", + "kind": "interface", + "detail": "foo", + "deprecated": false, + "preselect": false, + "sortText": "2_foo", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "foo" + } + }, + { + "label": "format", + "kind": "function", + "detail": "format()", + "deprecated": false, + "preselect": false, + "sortText": "3_format", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "format($0)" + } + }, + { + "label": "guid", + "kind": "function", + "detail": "guid()", + "deprecated": false, + "preselect": false, + "sortText": "3_guid", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "guid($0)" + } + }, + { + "label": "incorrectPropertiesKey", + "kind": "interface", + "detail": "incorrectPropertiesKey", + "deprecated": false, + "preselect": false, + "sortText": "2_incorrectPropertiesKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "incorrectPropertiesKey" + } + }, + { + "label": "indexOf", + "kind": "function", + "detail": "indexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_indexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "indexOf($0)" + } + }, + { + "label": "int", + "kind": "function", + "detail": "int()", + "deprecated": false, + "preselect": false, + "sortText": "3_int", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "int($0)" + } + }, + { + "label": "interpVal", + "kind": "variable", + "detail": "interpVal", + "deprecated": false, + "preselect": false, + "sortText": "2_interpVal", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "interpVal" + } + }, + { + "label": "intersection", + "kind": "function", + "detail": "intersection()", + "deprecated": false, + "preselect": false, + "sortText": "3_intersection", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "intersection($0)" + } + }, + { + "label": "json", + "kind": "function", + "detail": "json()", + "deprecated": false, + "preselect": false, + "sortText": "3_json", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "json($0)" + } + }, + { + "label": "last", + "kind": "function", + "detail": "last()", + "deprecated": false, + "preselect": false, + "sortText": "3_last", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "last($0)" + } + }, + { + "label": "lastIndexOf", + "kind": "function", + "detail": "lastIndexOf()", + "deprecated": false, + "preselect": false, + "sortText": "3_lastIndexOf", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "lastIndexOf($0)" + } + }, + { + "label": "length", + "kind": "function", + "detail": "length()", + "deprecated": false, + "preselect": false, + "sortText": "3_length", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "length($0)" + } + }, + { + "label": "letsAccessTheDashes", + "kind": "variable", + "detail": "letsAccessTheDashes", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes" + } + }, + { + "label": "letsAccessTheDashes2", + "kind": "variable", + "detail": "letsAccessTheDashes2", + "deprecated": false, + "preselect": false, + "sortText": "2_letsAccessTheDashes2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "letsAccessTheDashes2" + } + }, + { + "label": "listKeys", + "kind": "function", + "detail": "listKeys()", + "deprecated": false, + "preselect": false, + "sortText": "3_listKeys", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "listKeys($0)" + } + }, + { + "label": "max", + "kind": "function", + "detail": "max()", + "deprecated": false, + "preselect": false, + "sortText": "3_max", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "max($0)" + } + }, + { + "label": "min", + "kind": "function", + "detail": "min()", + "deprecated": false, + "preselect": false, + "sortText": "3_min", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "min($0)" + } + }, + { + "label": "missingTopLevelProperties", + "kind": "interface", + "detail": "missingTopLevelProperties", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelProperties", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelProperties" + } + }, + { + "label": "missingTopLevelPropertiesExceptName", + "kind": "interface", + "detail": "missingTopLevelPropertiesExceptName", + "deprecated": false, + "preselect": false, + "sortText": "2_missingTopLevelPropertiesExceptName", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingTopLevelPropertiesExceptName" + } + }, + { + "label": "missingType", + "kind": "interface", + "detail": "missingType", + "deprecated": false, + "preselect": false, + "sortText": "2_missingType", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "missingType" + } + }, + { + "label": "mock", + "kind": "variable", + "detail": "mock", + "deprecated": false, + "preselect": false, + "sortText": "2_mock", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "mock" + } + }, + { + "label": "nestedDiscriminator", + "kind": "interface", + "detail": "nestedDiscriminator", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminator", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminator" + } + }, + { + "label": "nestedDiscriminatorArrayIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorArrayIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorArrayIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorArrayIndexCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions" + } + }, + { + "label": "nestedDiscriminatorCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions2" + } + }, + { + "label": "nestedDiscriminatorCompletions3", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions3", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions3", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions3" + } + }, + { + "label": "nestedDiscriminatorCompletions4", + "kind": "variable", + "detail": "nestedDiscriminatorCompletions4", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorCompletions4", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorCompletions4" + } + }, + { + "label": "nestedDiscriminatorMissingKey", + "kind": "interface", + "detail": "nestedDiscriminatorMissingKey", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKey", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKey" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions" + } + }, + { + "label": "nestedDiscriminatorMissingKeyCompletions2", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyCompletions2", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyCompletions2", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyCompletions2" + } + }, + { + "label": "nestedDiscriminatorMissingKeyIndexCompletions", + "kind": "variable", + "detail": "nestedDiscriminatorMissingKeyIndexCompletions", + "deprecated": false, + "preselect": false, + "sortText": "2_nestedDiscriminatorMissingKeyIndexCompletions", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "nestedDiscriminatorMissingKeyIndexCompletions" + } + }, + { + "label": "padLeft", + "kind": "function", + "detail": "padLeft()", + "deprecated": false, + "preselect": false, + "sortText": "3_padLeft", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "padLeft($0)" + } + }, + { + "label": "pickZones", + "kind": "function", + "detail": "pickZones()", + "deprecated": false, + "preselect": false, + "sortText": "3_pickZones", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "pickZones($0)" + } + }, + { + "label": "providers", + "kind": "function", + "detail": "providers()", + "deprecated": false, + "preselect": false, + "sortText": "3_providers", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "providers($0)" + } + }, + { + "label": "range", + "kind": "function", + "detail": "range()", + "deprecated": false, + "preselect": false, + "sortText": "3_range", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "range($0)" + } + }, + { + "label": "reference", + "kind": "function", + "detail": "reference()", + "deprecated": false, + "preselect": false, + "sortText": "3_reference", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "reference($0)" + } + }, + { + "label": "replace", + "kind": "function", + "detail": "replace()", + "deprecated": false, + "preselect": false, + "sortText": "3_replace", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "replace($0)" + } + }, + { + "label": "resourceGroup", + "kind": "function", + "detail": "resourceGroup()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceGroup", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceGroup($0)" + } + }, + { + "label": "resourceId", + "kind": "function", + "detail": "resourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_resourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resourceId($0)" + } + }, + { + "label": "resrefpar", + "kind": "field", + "detail": "resrefpar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefpar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefpar" + } + }, + { + "label": "resrefvar", + "kind": "variable", + "detail": "resrefvar", + "deprecated": false, + "preselect": false, + "sortText": "2_resrefvar", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "resrefvar" + } + }, + { + "label": "skip", + "kind": "function", + "detail": "skip()", + "deprecated": false, + "preselect": false, + "sortText": "3_skip", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "skip($0)" + } + }, + { + "label": "split", + "kind": "function", + "detail": "split()", + "deprecated": false, + "preselect": false, + "sortText": "3_split", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "split($0)" + } + }, + { + "label": "startedTypingTypeWithQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithQuotes" + } + }, + { + "label": "startedTypingTypeWithoutQuotes", + "kind": "interface", + "detail": "startedTypingTypeWithoutQuotes", + "deprecated": false, + "preselect": false, + "sortText": "2_startedTypingTypeWithoutQuotes", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startedTypingTypeWithoutQuotes" + } + }, + { + "label": "startsWith", + "kind": "function", + "detail": "startsWith()", + "deprecated": false, + "preselect": false, + "sortText": "3_startsWith", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "startsWith($0)" + } + }, + { + "label": "string", + "kind": "function", + "detail": "string()", + "deprecated": false, + "preselect": false, + "sortText": "3_string", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "string($0)" + } + }, + { + "label": "subscription", + "kind": "function", + "detail": "subscription()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscription", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscription($0)" + } + }, + { + "label": "subscriptionResourceId", + "kind": "function", + "detail": "subscriptionResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_subscriptionResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "subscriptionResourceId($0)" + } + }, + { + "label": "substring", + "kind": "function", + "detail": "substring()", + "deprecated": false, + "preselect": false, + "sortText": "3_substring", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "substring($0)" + } + }, + { + "label": "sys", + "kind": "folder", + "detail": "sys", + "deprecated": false, + "preselect": false, + "sortText": "3_sys", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "sys" + } + }, + { + "label": "take", + "kind": "function", + "detail": "take()", + "deprecated": false, + "preselect": false, + "sortText": "3_take", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "take($0)" + } + }, + { + "label": "tenant", + "kind": "function", + "detail": "tenant()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenant", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenant()$0" + } + }, + { + "label": "tenantResourceId", + "kind": "function", + "detail": "tenantResourceId()", + "deprecated": false, + "preselect": false, + "sortText": "3_tenantResourceId", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "tenantResourceId($0)" + } + }, + { + "label": "toLower", + "kind": "function", + "detail": "toLower()", + "deprecated": false, + "preselect": false, + "sortText": "3_toLower", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toLower($0)" + } + }, + { + "label": "toUpper", + "kind": "function", + "detail": "toUpper()", + "deprecated": false, + "preselect": false, + "sortText": "3_toUpper", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "toUpper($0)" + } + }, + { + "label": "trailingSpace", + "kind": "interface", + "detail": "trailingSpace", + "deprecated": false, + "preselect": false, + "sortText": "2_trailingSpace", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trailingSpace" + } + }, + { + "label": "trim", + "kind": "function", + "detail": "trim()", + "deprecated": false, + "preselect": false, + "sortText": "3_trim", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "trim($0)" + } + }, + { + "label": "unfinishedVnet", + "kind": "interface", + "detail": "unfinishedVnet", + "deprecated": false, + "preselect": false, + "sortText": "2_unfinishedVnet", + "insertTextFormat": "plainText", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "unfinishedVnet" + } + }, + { + "label": "union", + "kind": "function", + "detail": "union()", + "deprecated": false, + "preselect": false, + "sortText": "3_union", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "union($0)" + } + }, + { + "label": "uniqueString", + "kind": "function", + "detail": "uniqueString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uniqueString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uniqueString($0)" + } + }, + { + "label": "uri", + "kind": "function", + "detail": "uri()", + "deprecated": false, + "preselect": false, + "sortText": "3_uri", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uri($0)" + } + }, + { + "label": "uriComponent", + "kind": "function", + "detail": "uriComponent()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponent", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponent($0)" + } + }, + { + "label": "uriComponentToString", + "kind": "function", + "detail": "uriComponentToString()", + "deprecated": false, + "preselect": false, + "sortText": "3_uriComponentToString", + "insertTextFormat": "snippet", + "insertTextMode": "asIs", + "textEdit": { + "range": {}, + "newText": "uriComponentToString($0)" + } + }, + { + "label": "{}", + "kind": "value", + "detail": "{}", + "deprecated": false, + "preselect": true, + "sortText": "1_{}", + "insertTextFormat": "snippet", + "insertTextMode": "adjustIndentation", + "textEdit": { + "range": {}, + "newText": "{\n\t$0\n}" + } + } ] \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.bicep b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.bicep index 553f46f99a2..a7815ffcfeb 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.bicep @@ -18,14 +18,59 @@ resource foo 'ddd'= resource foo 'ddd'={ } +resource foo 'ddd'=if (1 + 1 == 2) { +} + // using string interpolation for the resource type resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= { } +resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= if (true) { +} + // missing required property resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'={ } +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (name == 'value') { +} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ({ 'a': b }.a == 'foo') { +} + +// simulate typing if condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ( + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true) + +// missing condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if { + name: 'foo' +} + +// empty condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if () { + name: 'foo' +} + +// invalid condition type +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (123) { + name: 'foo' +} + +// runtime functions are no allowed in resource conditions +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { + name: 'foo' +} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (listKeys('foo', '2020-05-01').bar == true) { + name: 'foo' +} + // duplicate property at the top level resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= { name: 'foo' diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.diagnostics.bicep b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.diagnostics.bicep index d5702d7c230..bc817a517a6 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.diagnostics.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.diagnostics.bicep @@ -29,7 +29,7 @@ resource trailingSpace resource foo 'ddd'= //@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| //@[13:18) [BCP029 (Error)] The resource type is not valid. Specify a valid resource type of format "/@". |'ddd'| -//@[20:20) [BCP018 (Error)] Expected the "{" character at this location. || +//@[20:20) [BCP118 (Error)] Expected the "{" character or the "if" keyword at this location. || // wrong resource type resource foo 'ddd'={ @@ -37,18 +37,90 @@ resource foo 'ddd'={ //@[13:18) [BCP029 (Error)] The resource type is not valid. Specify a valid resource type of format "/@". |'ddd'| } +resource foo 'ddd'=if (1 + 1 == 2) { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[13:18) [BCP029 (Error)] The resource type is not valid. Specify a valid resource type of format "/@". |'ddd'| +} + // using string interpolation for the resource type resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= { //@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| //@[13:58) [BCP047 (Error)] String interpolation is unsupported for specifying the resource type. |'Microsoft.${provider}/foos@2020-02-02-alpha'| } +resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= if (true) { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[13:58) [BCP047 (Error)] String interpolation is unsupported for specifying the resource type. |'Microsoft.${provider}/foos@2020-02-02-alpha'| +} + // missing required property resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'={ //@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| //@[9:12) [BCP035 (Error)] The specified "resource" declaration is missing the following required properties: "name". |foo| } +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (name == 'value') { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[9:12) [BCP035 (Error)] The specified "resource" declaration is missing the following required properties: "name". |foo| +//@[56:60) [BCP057 (Error)] The name "name" does not exist in the current context. |name| +} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ({ 'a': b }.a == 'foo') { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +} +//@[1:1) [BCP018 (Error)] Expected the ")" character at this location. || + +// simulate typing if condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[54:54) [BCP018 (Error)] Expected the "(" character at this location. || + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ( +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[56:56) [BCP009 (Error)] Expected a literal value, an array, an object, a parenthesized expression, or a function call at this location. || + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[60:60) [BCP018 (Error)] Expected the ")" character at this location. || + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true) +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[61:61) [BCP018 (Error)] Expected the "{" character at this location. || + +// missing condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[55:56) [BCP018 (Error)] Expected the "(" character at this location. |{| + name: 'foo' +} + +// empty condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if () { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[56:57) [BCP009 (Error)] Expected a literal value, an array, an object, a parenthesized expression, or a function call at this location. |)| + name: 'foo' +} + +// invalid condition type +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (123) { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[55:60) [BCP046 (Error)] Expected a value of type "bool". |(123)| + name: 'foo' +} + +// runtime functions are no allowed in resource conditions +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[57:66) [BCP066 (Error)] Function "reference" is not valid at this location. It can only be used in resource declarations. |reference| + name: 'foo' +} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| +//@[57:65) [BCP066 (Error)] Function "listKeys" is not valid at this location. It can only be used in resource declarations. |listKeys| + name: 'foo' +} + // duplicate property at the top level resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= { //@[9:12) [BCP028 (Error)] Identifier "foo" is declared multiple times. Remove or rename the duplicates. |foo| diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.formatted.bicep b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.formatted.bicep index ae3715b7768..f73f4d5a374 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.formatted.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.formatted.bicep @@ -16,12 +16,54 @@ resource foo 'ddd'= // wrong resource type resource foo 'ddd' = {} +resource foo 'ddd' = if (1 + 1 == 2) {} + // using string interpolation for the resource type resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha' = {} +resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha' = if (true) {} + // missing required property resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = {} +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (name == 'value') {} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ({ 'a': b }.a == 'foo') { +} + +// simulate typing if condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ( + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true) + +// missing condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if { + name: 'foo' +} + +// empty condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if () { + name: 'foo' +} + +// invalid condition type +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (123) { + name: 'foo' +} + +// runtime functions are no allowed in resource conditions +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { + name: 'foo' +} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (listKeys('foo', '2020-05-01').bar == true) { + name: 'foo' +} + // duplicate property at the top level resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= { name: 'foo' diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.symbols.bicep b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.symbols.bicep index 2c243095e9b..04512e36502 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.symbols.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.symbols.bicep @@ -25,16 +25,74 @@ resource foo 'ddd'={ //@[9:12) Resource foo. Type: error. Declaration start char: 0, length: 23 } +resource foo 'ddd'=if (1 + 1 == 2) { +//@[9:12) Resource foo. Type: error. Declaration start char: 0, length: 39 +} + // using string interpolation for the resource type resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= { //@[9:12) Resource foo. Type: error. Declaration start char: 0, length: 64 } +resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= if (true) { +//@[9:12) Resource foo. Type: error. Declaration start char: 0, length: 74 +} + // missing required property resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'={ //@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 55 } +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (name == 'value') { +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 77 +} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ({ 'a': b }.a == 'foo') { +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 83 +} + +// simulate typing if condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 54 + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ( +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 56 + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 60 + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true) +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 61 + +// missing condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if { +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 74 + name: 'foo' +} + +// empty condition +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if () { +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 77 + name: 'foo' +} + +// invalid condition type +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (123) { +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 80 + name: 'foo' +} + +// runtime functions are no allowed in resource conditions +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 165 + name: 'foo' +} + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 119 + name: 'foo' +} + // duplicate property at the top level resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= { //@[9:12) Resource foo. Type: Microsoft.Foo/foos@2020-02-02-alpha. Declaration start char: 0, length: 85 diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.syntax.bicep b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.syntax.bicep index d2321d6951e..7f06a04ad74 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.syntax.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.syntax.bicep @@ -17,6 +17,7 @@ resource //@[9:9) SkippedTriviaSyntax //@[9:9) SkippedTriviaSyntax //@[9:9) SkippedTriviaSyntax +//@[9:9) SkippedTriviaSyntax //@[9:11) NewLine |\r\n| resource foo //@[0:12) ResourceDeclarationSyntax @@ -26,6 +27,7 @@ resource foo //@[12:12) SkippedTriviaSyntax //@[12:12) SkippedTriviaSyntax //@[12:12) SkippedTriviaSyntax +//@[12:12) SkippedTriviaSyntax //@[12:14) NewLine |\r\n| resource fo/o //@[0:13) ResourceDeclarationSyntax @@ -37,6 +39,7 @@ resource fo/o //@[12:13) Identifier |o| //@[13:13) SkippedTriviaSyntax //@[13:13) SkippedTriviaSyntax +//@[13:13) SkippedTriviaSyntax //@[13:15) NewLine |\r\n| resource foo 'ddd' //@[0:18) ResourceDeclarationSyntax @@ -47,6 +50,7 @@ resource foo 'ddd' //@[13:18) StringComplete |'ddd'| //@[18:18) SkippedTriviaSyntax //@[18:18) SkippedTriviaSyntax +//@[18:18) SkippedTriviaSyntax //@[18:22) NewLine |\r\n\r\n| // #completionTest(23) -> resourceTypes @@ -59,6 +63,7 @@ resource trailingSpace //@[24:24) SkippedTriviaSyntax //@[24:24) SkippedTriviaSyntax //@[24:24) SkippedTriviaSyntax +//@[24:24) SkippedTriviaSyntax //@[24:28) NewLine |\r\n\r\n| // #completionTest(19,20) -> object @@ -72,6 +77,7 @@ resource foo 'ddd'= //@[13:18) StringComplete |'ddd'| //@[18:19) Assignment |=| //@[20:20) SkippedTriviaSyntax +//@[20:20) SkippedTriviaSyntax //@[20:24) NewLine |\r\n\r\n| // wrong resource type @@ -91,6 +97,36 @@ resource foo 'ddd'={ //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +resource foo 'ddd'=if (1 + 1 == 2) { +//@[0:39) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:18) StringSyntax +//@[13:18) StringComplete |'ddd'| +//@[18:19) Assignment |=| +//@[19:34) IfConditionSyntax +//@[19:21) Identifier |if| +//@[22:34) ParenthesizedExpressionSyntax +//@[22:23) LeftParen |(| +//@[23:33) BinaryOperationSyntax +//@[23:28) BinaryOperationSyntax +//@[23:24) NumericLiteralSyntax +//@[23:24) Number |1| +//@[25:26) Plus |+| +//@[27:28) NumericLiteralSyntax +//@[27:28) Number |1| +//@[29:31) Equals |==| +//@[32:33) NumericLiteralSyntax +//@[32:33) Number |2| +//@[33:34) RightParen |)| +//@[35:39) ObjectSyntax +//@[35:36) LeftBrace |{| +//@[36:38) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + // using string interpolation for the resource type //@[51:53) NewLine |\r\n| resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= { @@ -112,6 +148,32 @@ resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= { //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= if (true) { +//@[0:74) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:58) StringSyntax +//@[13:26) StringLeftPiece |'Microsoft.${| +//@[26:34) VariableAccessSyntax +//@[26:34) IdentifierSyntax +//@[26:34) Identifier |provider| +//@[34:58) StringRightPiece |}/foos@2020-02-02-alpha'| +//@[58:59) Assignment |=| +//@[60:69) IfConditionSyntax +//@[60:62) Identifier |if| +//@[63:69) ParenthesizedExpressionSyntax +//@[63:64) LeftParen |(| +//@[64:68) BooleanLiteralSyntax +//@[64:68) TrueKeyword |true| +//@[68:69) RightParen |)| +//@[70:74) ObjectSyntax +//@[70:71) LeftBrace |{| +//@[71:73) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + // missing required property //@[28:30) NewLine |\r\n| resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'={ @@ -129,6 +191,315 @@ resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'={ //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (name == 'value') { +//@[0:77) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:72) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:72) ParenthesizedExpressionSyntax +//@[55:56) LeftParen |(| +//@[56:71) BinaryOperationSyntax +//@[56:60) VariableAccessSyntax +//@[56:60) IdentifierSyntax +//@[56:60) Identifier |name| +//@[61:63) Equals |==| +//@[64:71) StringSyntax +//@[64:71) StringComplete |'value'| +//@[71:72) RightParen |)| +//@[73:77) ObjectSyntax +//@[73:74) LeftBrace |{| +//@[74:76) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ({ 'a': b }.a == 'foo') { +//@[0:83) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:83) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:83) SkippedTriviaSyntax +//@[55:56) LeftParen |(| +//@[56:57) LeftBrace |{| +//@[58:61) StringComplete |'a'| +//@[61:62) Colon |:| +//@[63:64) Identifier |b| +//@[65:66) RightBrace |}| +//@[66:67) Dot |.| +//@[67:68) Identifier |a| +//@[69:71) Equals |==| +//@[72:77) StringComplete |'foo'| +//@[77:78) RightParen |)| +//@[79:80) LeftBrace |{| +//@[80:82) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:1) SkippedTriviaSyntax +//@[1:5) NewLine |\r\n\r\n| + +// simulate typing if condition +//@[31:33) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if +//@[0:54) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) IfConditionSyntax +//@[52:54) Identifier |if| +//@[54:54) SkippedTriviaSyntax +//@[54:54) SkippedTriviaSyntax +//@[54:58) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ( +//@[0:56) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:56) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:56) SkippedTriviaSyntax +//@[55:56) LeftParen |(| +//@[56:56) SkippedTriviaSyntax +//@[56:60) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true +//@[0:60) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:60) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:60) SkippedTriviaSyntax +//@[55:56) LeftParen |(| +//@[56:60) TrueKeyword |true| +//@[60:60) SkippedTriviaSyntax +//@[60:64) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true) +//@[0:61) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:61) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:61) ParenthesizedExpressionSyntax +//@[55:56) LeftParen |(| +//@[56:60) BooleanLiteralSyntax +//@[56:60) TrueKeyword |true| +//@[60:61) RightParen |)| +//@[61:61) SkippedTriviaSyntax +//@[61:65) NewLine |\r\n\r\n| + +// missing condition +//@[20:22) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if { +//@[0:74) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:55) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:55) SkippedTriviaSyntax +//@[55:74) ObjectSyntax +//@[55:56) LeftBrace |{| +//@[56:58) NewLine |\r\n| + name: 'foo' +//@[2:13) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringSyntax +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +// empty condition +//@[18:20) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if () { +//@[0:77) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:57) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:57) SkippedTriviaSyntax +//@[55:56) LeftParen |(| +//@[56:57) RightParen |)| +//@[58:77) ObjectSyntax +//@[58:59) LeftBrace |{| +//@[59:61) NewLine |\r\n| + name: 'foo' +//@[2:13) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringSyntax +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +// invalid condition type +//@[25:27) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (123) { +//@[0:80) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:60) IfConditionSyntax +//@[52:54) Identifier |if| +//@[55:60) ParenthesizedExpressionSyntax +//@[55:56) LeftParen |(| +//@[56:59) NumericLiteralSyntax +//@[56:59) Number |123| +//@[59:60) RightParen |)| +//@[61:80) ObjectSyntax +//@[61:62) LeftBrace |{| +//@[62:64) NewLine |\r\n| + name: 'foo' +//@[2:13) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringSyntax +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +// runtime functions are no allowed in resource conditions +//@[58:60) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[0:165) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[51:52) Assignment |=| +//@[53:145) IfConditionSyntax +//@[53:55) Identifier |if| +//@[56:145) ParenthesizedExpressionSyntax +//@[56:57) LeftParen |(| +//@[57:144) BinaryOperationSyntax +//@[57:129) PropertyAccessSyntax +//@[57:124) FunctionCallSyntax +//@[57:66) IdentifierSyntax +//@[57:66) Identifier |reference| +//@[66:67) LeftParen |(| +//@[67:110) FunctionArgumentSyntax +//@[67:109) StringSyntax +//@[67:109) StringComplete |'Micorosft.Management/managementGroups/MG'| +//@[109:110) Comma |,| +//@[111:123) FunctionArgumentSyntax +//@[111:123) StringSyntax +//@[111:123) StringComplete |'2020-05-01'| +//@[123:124) RightParen |)| +//@[124:125) Dot |.| +//@[125:129) IdentifierSyntax +//@[125:129) Identifier |name| +//@[130:132) Equals |==| +//@[133:144) StringSyntax +//@[133:144) StringComplete |'something'| +//@[144:145) RightParen |)| +//@[146:165) ObjectSyntax +//@[146:147) LeftBrace |{| +//@[147:149) NewLine |\r\n| + name: 'foo' +//@[2:13) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringSyntax +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[0:119) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:12) IdentifierSyntax +//@[9:12) Identifier |foo| +//@[13:50) StringSyntax +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[51:52) Assignment |=| +//@[53:99) IfConditionSyntax +//@[53:55) Identifier |if| +//@[56:99) ParenthesizedExpressionSyntax +//@[56:57) LeftParen |(| +//@[57:98) BinaryOperationSyntax +//@[57:90) PropertyAccessSyntax +//@[57:86) FunctionCallSyntax +//@[57:65) IdentifierSyntax +//@[57:65) Identifier |listKeys| +//@[65:66) LeftParen |(| +//@[66:72) FunctionArgumentSyntax +//@[66:71) StringSyntax +//@[66:71) StringComplete |'foo'| +//@[71:72) Comma |,| +//@[73:85) FunctionArgumentSyntax +//@[73:85) StringSyntax +//@[73:85) StringComplete |'2020-05-01'| +//@[85:86) RightParen |)| +//@[86:87) Dot |.| +//@[87:90) IdentifierSyntax +//@[87:90) Identifier |bar| +//@[91:93) Equals |==| +//@[94:98) BooleanLiteralSyntax +//@[94:98) TrueKeyword |true| +//@[98:99) RightParen |)| +//@[100:119) ObjectSyntax +//@[100:101) LeftBrace |{| +//@[101:103) NewLine |\r\n| + name: 'foo' +//@[2:13) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringSyntax +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + // duplicate property at the top level //@[38:40) NewLine |\r\n| resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= { @@ -1466,6 +1837,7 @@ resource missingType //@[21:21) SkippedTriviaSyntax //@[21:21) SkippedTriviaSyntax //@[21:21) SkippedTriviaSyntax +//@[21:21) SkippedTriviaSyntax //@[21:25) NewLine |\r\n\r\n| // #completionTest(37,38,39,40,41,42,43,44) -> resourceTypes @@ -1479,6 +1851,7 @@ resource startedTypingTypeWithQuotes 'virma' //@[37:44) StringComplete |'virma'| //@[44:44) SkippedTriviaSyntax //@[44:44) SkippedTriviaSyntax +//@[44:44) SkippedTriviaSyntax //@[44:48) NewLine |\r\n\r\n| // #completionTest(40,41,42,43,44,45) -> resourceTypes @@ -1492,6 +1865,7 @@ resource startedTypingTypeWithoutQuotes virma //@[40:45) Identifier |virma| //@[45:45) SkippedTriviaSyntax //@[45:45) SkippedTriviaSyntax +//@[45:45) SkippedTriviaSyntax //@[45:49) NewLine |\r\n\r\n| resource dashesInPropertyNames 'Microsoft.ContainerService/managedClusters@2020-09-01' = { diff --git a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.tokens.bicep b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.tokens.bicep index ccdfd319df2..0b584e5d090 100644 --- a/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.tokens.bicep +++ b/src/Bicep.Core.Samples/Files/InvalidResources_CRLF/main.tokens.bicep @@ -56,6 +56,25 @@ resource foo 'ddd'={ //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +resource foo 'ddd'=if (1 + 1 == 2) { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:18) StringComplete |'ddd'| +//@[18:19) Assignment |=| +//@[19:21) Identifier |if| +//@[22:23) LeftParen |(| +//@[23:24) Number |1| +//@[25:26) Plus |+| +//@[27:28) Number |1| +//@[29:31) Equals |==| +//@[32:33) Number |2| +//@[33:34) RightParen |)| +//@[35:36) LeftBrace |{| +//@[36:38) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + // using string interpolation for the resource type //@[51:53) NewLine |\r\n| resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= { @@ -71,6 +90,23 @@ resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= { //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +resource foo 'Microsoft.${provider}/foos@2020-02-02-alpha'= if (true) { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:26) StringLeftPiece |'Microsoft.${| +//@[26:34) Identifier |provider| +//@[34:58) StringRightPiece |}/foos@2020-02-02-alpha'| +//@[58:59) Assignment |=| +//@[60:62) Identifier |if| +//@[63:64) LeftParen |(| +//@[64:68) TrueKeyword |true| +//@[68:69) RightParen |)| +//@[70:71) LeftBrace |{| +//@[71:73) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + // missing required property //@[28:30) NewLine |\r\n| resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'={ @@ -84,6 +120,208 @@ resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'={ //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (name == 'value') { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:60) Identifier |name| +//@[61:63) Equals |==| +//@[64:71) StringComplete |'value'| +//@[71:72) RightParen |)| +//@[73:74) LeftBrace |{| +//@[74:76) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ({ 'a': b }.a == 'foo') { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:57) LeftBrace |{| +//@[58:61) StringComplete |'a'| +//@[61:62) Colon |:| +//@[63:64) Identifier |b| +//@[65:66) RightBrace |}| +//@[66:67) Dot |.| +//@[67:68) Identifier |a| +//@[69:71) Equals |==| +//@[72:77) StringComplete |'foo'| +//@[77:78) RightParen |)| +//@[79:80) LeftBrace |{| +//@[80:82) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +// simulate typing if condition +//@[31:33) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[54:58) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if ( +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:60) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:60) TrueKeyword |true| +//@[60:64) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (true) +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:60) TrueKeyword |true| +//@[60:61) RightParen |)| +//@[61:65) NewLine |\r\n\r\n| + +// missing condition +//@[20:22) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftBrace |{| +//@[56:58) NewLine |\r\n| + name: 'foo' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +// empty condition +//@[18:20) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if () { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:57) RightParen |)| +//@[58:59) LeftBrace |{| +//@[59:61) NewLine |\r\n| + name: 'foo' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +// invalid condition type +//@[25:27) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= if (123) { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[50:51) Assignment |=| +//@[52:54) Identifier |if| +//@[55:56) LeftParen |(| +//@[56:59) Number |123| +//@[59:60) RightParen |)| +//@[61:62) LeftBrace |{| +//@[62:64) NewLine |\r\n| + name: 'foo' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +// runtime functions are no allowed in resource conditions +//@[58:60) NewLine |\r\n| +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (reference('Micorosft.Management/managementGroups/MG', '2020-05-01').name == 'something') { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[51:52) Assignment |=| +//@[53:55) Identifier |if| +//@[56:57) LeftParen |(| +//@[57:66) Identifier |reference| +//@[66:67) LeftParen |(| +//@[67:109) StringComplete |'Micorosft.Management/managementGroups/MG'| +//@[109:110) Comma |,| +//@[111:123) StringComplete |'2020-05-01'| +//@[123:124) RightParen |)| +//@[124:125) Dot |.| +//@[125:129) Identifier |name| +//@[130:132) Equals |==| +//@[133:144) StringComplete |'something'| +//@[144:145) RightParen |)| +//@[146:147) LeftBrace |{| +//@[147:149) NewLine |\r\n| + name: 'foo' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +resource foo 'Microsoft.Foo/foos@2020-02-02-alpha' = if (listKeys('foo', '2020-05-01').bar == true) { +//@[0:8) Identifier |resource| +//@[9:12) Identifier |foo| +//@[13:50) StringComplete |'Microsoft.Foo/foos@2020-02-02-alpha'| +//@[51:52) Assignment |=| +//@[53:55) Identifier |if| +//@[56:57) LeftParen |(| +//@[57:65) Identifier |listKeys| +//@[65:66) LeftParen |(| +//@[66:71) StringComplete |'foo'| +//@[71:72) Comma |,| +//@[73:85) StringComplete |'2020-05-01'| +//@[85:86) RightParen |)| +//@[86:87) Dot |.| +//@[87:90) Identifier |bar| +//@[91:93) Equals |==| +//@[94:98) TrueKeyword |true| +//@[98:99) RightParen |)| +//@[100:101) LeftBrace |{| +//@[101:103) NewLine |\r\n| + name: 'foo' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:13) StringComplete |'foo'| +//@[13:15) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + // duplicate property at the top level //@[38:40) NewLine |\r\n| resource foo 'Microsoft.Foo/foos@2020-02-02-alpha'= { diff --git a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.bicep b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.bicep index 286863b2548..41b56e89309 100644 --- a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.bicep +++ b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.bicep @@ -10,5 +10,10 @@ module mySubscriptionMod 'modules/subscription.bicep' = { scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') } +module mySubscriptionModWithCondition 'modules/subscription.bicep' = if (length('foo') == 3) { + name: 'mySubscriptionModWithCondition' + scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') +} + output myManagementGroupOutput string = myManagementGroupMod.outputs.myOutput output mySubscriptionOutput string = mySubscriptionMod.outputs.myOutput \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.diagnostics.bicep b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.diagnostics.bicep index d428b6208a4..41be803283a 100644 --- a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.diagnostics.bicep +++ b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.diagnostics.bicep @@ -10,5 +10,10 @@ module mySubscriptionMod 'modules/subscription.bicep' = { scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') } +module mySubscriptionModWithCondition 'modules/subscription.bicep' = if (length('foo') == 3) { + name: 'mySubscriptionModWithCondition' + scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') +} + output myManagementGroupOutput string = myManagementGroupMod.outputs.myOutput output mySubscriptionOutput string = mySubscriptionMod.outputs.myOutput diff --git a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.formatted.bicep b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.formatted.bicep index d428b6208a4..41be803283a 100644 --- a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.formatted.bicep +++ b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.formatted.bicep @@ -10,5 +10,10 @@ module mySubscriptionMod 'modules/subscription.bicep' = { scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') } +module mySubscriptionModWithCondition 'modules/subscription.bicep' = if (length('foo') == 3) { + name: 'mySubscriptionModWithCondition' + scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') +} + output myManagementGroupOutput string = myManagementGroupMod.outputs.myOutput output mySubscriptionOutput string = mySubscriptionMod.outputs.myOutput diff --git a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.json b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.json index 6adcb3c4e4e..c5516bbf05e 100644 --- a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.json +++ b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.json @@ -1,285 +1,503 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myManagementGroupMod", - "scope": "[tenantResourceId('Microsoft.Management/managementGroups', 'myManagementGroup')]", - "location": "[deployment().location]", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myTenantMod", - "scope": "/", - "location": "[deployment().location]", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [], - "outputs": { - "myOutput": { - "type": "string", - "value": "hello!" - } - } - } - } - } - ], - "outputs": { - "myOutput": { - "type": "string", - "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "mySubscriptionMod", - "subscriptionId": "ee44cd78-68c6-43d9-874e-e684ec8d1191", - "location": "[deployment().location]", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myResourceGroupMod", - "resourceGroup": "myRg", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myTenantMod", - "scope": "/", - "location": "[resourceGroup().location]", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [], - "outputs": { - "myOutput": { - "type": "string", - "value": "hello!" - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myOtherResourceGroup", - "subscriptionId": "db90cfef-a146-4f67-b32f-b263518bd216", - "resourceGroup": "myOtherRg", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [], - "outputs": { - "myOutput": { - "type": "string", - "value": "hello!" - } - } - } - } - } - ], - "outputs": { - "myOutput": { - "type": "string", - "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" - }, - "myOutputResourceGroup": { - "type": "string", - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', 'db90cfef-a146-4f67-b32f-b263518bd216', 'myOtherRg'), 'Microsoft.Resources/deployments', 'myOtherResourceGroup'), '2019-10-01').outputs.myOutput.value]" - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myResourceGroupMod2", - "resourceGroup": "myRg", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myTenantMod", - "scope": "/", - "location": "[resourceGroup().location]", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [], - "outputs": { - "myOutput": { - "type": "string", - "value": "hello!" - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myOtherResourceGroup", - "subscriptionId": "db90cfef-a146-4f67-b32f-b263518bd216", - "resourceGroup": "myOtherRg", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [], - "outputs": { - "myOutput": { - "type": "string", - "value": "hello!" - } - } - } - } - } - ], - "outputs": { - "myOutput": { - "type": "string", - "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" - }, - "myOutputResourceGroup": { - "type": "string", - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', 'db90cfef-a146-4f67-b32f-b263518bd216', 'myOtherRg'), 'Microsoft.Resources/deployments', 'myOtherResourceGroup'), '2019-10-01').outputs.myOutput.value]" - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "myTenantMod", - "scope": "/", - "location": "[deployment().location]", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "functions": [], - "resources": [], - "outputs": { - "myOutput": { - "type": "string", - "value": "hello!" - } - } - } - } - } - ], - "outputs": { - "myOutput": { - "type": "string", - "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" - }, - "myOutputRgMod": { - "type": "string", - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, 'myRg'), 'Microsoft.Resources/deployments', 'myResourceGroupMod'), '2019-10-01').outputs.myOutput.value]" - }, - "myOutputRgMod2": { - "type": "string", - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, 'myRg'), 'Microsoft.Resources/deployments', 'myResourceGroupMod2'), '2019-10-01').outputs.myOutput.value]" - } - } - } - } - } - ], - "outputs": { - "myManagementGroupOutput": { - "type": "string", - "value": "[reference(extensionResourceId(tenantResourceId('Microsoft.Management/managementGroups', 'myManagementGroup'), 'Microsoft.Resources/deployments', 'myManagementGroupMod'), '2019-10-01').outputs.myOutput.value]" - }, - "mySubscriptionOutput": { - "type": "string", - "value": "[reference(subscriptionResourceId('ee44cd78-68c6-43d9-874e-e684ec8d1191', 'Microsoft.Resources/deployments', 'mySubscriptionMod'), '2019-10-01').outputs.myOutput.value]" - } - } +{ + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myManagementGroupMod", + "scope": "[tenantResourceId('Microsoft.Management/managementGroups', 'myManagementGroup')]", + "location": "[deployment().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myTenantMod", + "scope": "/", + "location": "[deployment().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + } + ], + "outputs": { + "myOutput": { + "type": "string", + "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "mySubscriptionMod", + "subscriptionId": "ee44cd78-68c6-43d9-874e-e684ec8d1191", + "location": "[deployment().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myResourceGroupMod", + "resourceGroup": "myRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myTenantMod", + "scope": "/", + "location": "[resourceGroup().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myOtherResourceGroup", + "subscriptionId": "db90cfef-a146-4f67-b32f-b263518bd216", + "resourceGroup": "myOtherRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + } + ], + "outputs": { + "myOutput": { + "type": "string", + "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputResourceGroup": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', 'db90cfef-a146-4f67-b32f-b263518bd216', 'myOtherRg'), 'Microsoft.Resources/deployments', 'myOtherResourceGroup'), '2019-10-01').outputs.myOutput.value]" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myResourceGroupMod2", + "resourceGroup": "myRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myTenantMod", + "scope": "/", + "location": "[resourceGroup().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myOtherResourceGroup", + "subscriptionId": "db90cfef-a146-4f67-b32f-b263518bd216", + "resourceGroup": "myOtherRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + } + ], + "outputs": { + "myOutput": { + "type": "string", + "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputResourceGroup": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', 'db90cfef-a146-4f67-b32f-b263518bd216', 'myOtherRg'), 'Microsoft.Resources/deployments', 'myOtherResourceGroup'), '2019-10-01').outputs.myOutput.value]" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myTenantMod", + "scope": "/", + "location": "[deployment().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + } + ], + "outputs": { + "myOutput": { + "type": "string", + "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputRgMod": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, 'myRg'), 'Microsoft.Resources/deployments', 'myResourceGroupMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputRgMod2": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, 'myRg'), 'Microsoft.Resources/deployments', 'myResourceGroupMod2'), '2019-10-01').outputs.myOutput.value]" + } + } + } + } + }, + { + "condition": "[equals(length('foo'), 3)]", + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "mySubscriptionModWithCondition", + "subscriptionId": "ee44cd78-68c6-43d9-874e-e684ec8d1191", + "location": "[deployment().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myResourceGroupMod", + "resourceGroup": "myRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myTenantMod", + "scope": "/", + "location": "[resourceGroup().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myOtherResourceGroup", + "subscriptionId": "db90cfef-a146-4f67-b32f-b263518bd216", + "resourceGroup": "myOtherRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + } + ], + "outputs": { + "myOutput": { + "type": "string", + "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputResourceGroup": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', 'db90cfef-a146-4f67-b32f-b263518bd216', 'myOtherRg'), 'Microsoft.Resources/deployments', 'myOtherResourceGroup'), '2019-10-01').outputs.myOutput.value]" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myResourceGroupMod2", + "resourceGroup": "myRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myTenantMod", + "scope": "/", + "location": "[resourceGroup().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myOtherResourceGroup", + "subscriptionId": "db90cfef-a146-4f67-b32f-b263518bd216", + "resourceGroup": "myOtherRg", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + } + ], + "outputs": { + "myOutput": { + "type": "string", + "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputResourceGroup": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', 'db90cfef-a146-4f67-b32f-b263518bd216', 'myOtherRg'), 'Microsoft.Resources/deployments', 'myOtherResourceGroup'), '2019-10-01').outputs.myOutput.value]" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "myTenantMod", + "scope": "/", + "location": "[deployment().location]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "functions": [], + "resources": [], + "outputs": { + "myOutput": { + "type": "string", + "value": "hello!" + } + } + } + } + } + ], + "outputs": { + "myOutput": { + "type": "string", + "value": "[reference(tenantResourceId('Microsoft.Resources/deployments', 'myTenantMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputRgMod": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, 'myRg'), 'Microsoft.Resources/deployments', 'myResourceGroupMod'), '2019-10-01').outputs.myOutput.value]" + }, + "myOutputRgMod2": { + "type": "string", + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, 'myRg'), 'Microsoft.Resources/deployments', 'myResourceGroupMod2'), '2019-10-01').outputs.myOutput.value]" + } + } + } + } + } + ], + "outputs": { + "myManagementGroupOutput": { + "type": "string", + "value": "[reference(extensionResourceId(tenantResourceId('Microsoft.Management/managementGroups', 'myManagementGroup'), 'Microsoft.Resources/deployments', 'myManagementGroupMod'), '2019-10-01').outputs.myOutput.value]" + }, + "mySubscriptionOutput": { + "type": "string", + "value": "[reference(subscriptionResourceId('ee44cd78-68c6-43d9-874e-e684ec8d1191', 'Microsoft.Resources/deployments', 'mySubscriptionMod'), '2019-10-01').outputs.myOutput.value]" + } + } } \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.symbols.bicep b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.symbols.bicep index ce686be9f77..237612962d0 100644 --- a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.symbols.bicep +++ b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.symbols.bicep @@ -12,6 +12,12 @@ module mySubscriptionMod 'modules/subscription.bicep' = { scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') } +module mySubscriptionModWithCondition 'modules/subscription.bicep' = if (length('foo') == 3) { +//@[7:37) Module mySubscriptionModWithCondition. Type: module. Declaration start char: 0, length: 199 + name: 'mySubscriptionModWithCondition' + scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') +} + output myManagementGroupOutput string = myManagementGroupMod.outputs.myOutput //@[7:30) Output myManagementGroupOutput. Type: string. Declaration start char: 0, length: 77 output mySubscriptionOutput string = mySubscriptionMod.outputs.myOutput diff --git a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.syntax.bicep b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.syntax.bicep index 2194d107e5d..e1ac41dcb67 100644 --- a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.syntax.bicep +++ b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.syntax.bicep @@ -80,6 +80,60 @@ module mySubscriptionMod 'modules/subscription.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module mySubscriptionModWithCondition 'modules/subscription.bicep' = if (length('foo') == 3) { +//@[0:199) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:37) IdentifierSyntax +//@[7:37) Identifier |mySubscriptionModWithCondition| +//@[38:66) StringSyntax +//@[38:66) StringComplete |'modules/subscription.bicep'| +//@[67:68) Assignment |=| +//@[69:92) IfConditionSyntax +//@[69:71) Identifier |if| +//@[72:92) ParenthesizedExpressionSyntax +//@[72:73) LeftParen |(| +//@[73:91) BinaryOperationSyntax +//@[73:86) FunctionCallSyntax +//@[73:79) IdentifierSyntax +//@[73:79) Identifier |length| +//@[79:80) LeftParen |(| +//@[80:85) FunctionArgumentSyntax +//@[80:85) StringSyntax +//@[80:85) StringComplete |'foo'| +//@[85:86) RightParen |)| +//@[87:89) Equals |==| +//@[90:91) NumericLiteralSyntax +//@[90:91) Number |3| +//@[91:92) RightParen |)| +//@[93:199) ObjectSyntax +//@[93:94) LeftBrace |{| +//@[94:95) NewLine |\n| + name: 'mySubscriptionModWithCondition' +//@[2:40) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:40) StringSyntax +//@[8:40) StringComplete |'mySubscriptionModWithCondition'| +//@[40:41) NewLine |\n| + scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') +//@[2:61) ObjectPropertySyntax +//@[2:7) IdentifierSyntax +//@[2:7) Identifier |scope| +//@[7:8) Colon |:| +//@[9:61) FunctionCallSyntax +//@[9:21) IdentifierSyntax +//@[9:21) Identifier |subscription| +//@[21:22) LeftParen |(| +//@[22:60) FunctionArgumentSyntax +//@[22:60) StringSyntax +//@[22:60) StringComplete |'ee44cd78-68c6-43d9-874e-e684ec8d1191'| +//@[60:61) RightParen |)| +//@[61:62) NewLine |\n| +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + output myManagementGroupOutput string = myManagementGroupMod.outputs.myOutput //@[0:77) OutputDeclarationSyntax //@[0:6) Identifier |output| diff --git a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.tokens.bicep b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.tokens.bicep index ec97e0e5f26..12b0156601d 100644 --- a/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.tokens.bicep +++ b/src/Bicep.Core.Samples/Files/ModulesWithScopes_LF/main.tokens.bicep @@ -52,6 +52,39 @@ module mySubscriptionMod 'modules/subscription.bicep' = { //@[0:1) RightBrace |}| //@[1:3) NewLine |\n\n| +module mySubscriptionModWithCondition 'modules/subscription.bicep' = if (length('foo') == 3) { +//@[0:6) Identifier |module| +//@[7:37) Identifier |mySubscriptionModWithCondition| +//@[38:66) StringComplete |'modules/subscription.bicep'| +//@[67:68) Assignment |=| +//@[69:71) Identifier |if| +//@[72:73) LeftParen |(| +//@[73:79) Identifier |length| +//@[79:80) LeftParen |(| +//@[80:85) StringComplete |'foo'| +//@[85:86) RightParen |)| +//@[87:89) Equals |==| +//@[90:91) Number |3| +//@[91:92) RightParen |)| +//@[93:94) LeftBrace |{| +//@[94:95) NewLine |\n| + name: 'mySubscriptionModWithCondition' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:40) StringComplete |'mySubscriptionModWithCondition'| +//@[40:41) NewLine |\n| + scope: subscription('ee44cd78-68c6-43d9-874e-e684ec8d1191') +//@[2:7) Identifier |scope| +//@[7:8) Colon |:| +//@[9:21) Identifier |subscription| +//@[21:22) LeftParen |(| +//@[22:60) StringComplete |'ee44cd78-68c6-43d9-874e-e684ec8d1191'| +//@[60:61) RightParen |)| +//@[61:62) NewLine |\n| +} +//@[0:1) RightBrace |}| +//@[1:3) NewLine |\n\n| + output myManagementGroupOutput string = myManagementGroupMod.outputs.myOutput //@[0:6) Identifier |output| //@[7:30) Identifier |myManagementGroupOutput| diff --git a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.bicep b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.bicep index 0fa19004c56..e27cfb0fdf5 100644 --- a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.bicep +++ b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.bicep @@ -23,6 +23,13 @@ module modB './child/moduleb.bicep' = { } } +module modBWithCondition './child/moduleb.bicep' = if (1 + 1 == 2) { + name: 'modBWithCondition' + params: { + location: 'East US' + } +} + module optionalWithNoParams1 './child/optionalParams.bicep'= { name: 'optionalWithNoParams1' } diff --git a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.diagnostics.bicep b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.diagnostics.bicep index 6ee9d0dbfeb..e99a2a3ce84 100644 --- a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.diagnostics.bicep +++ b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.diagnostics.bicep @@ -23,6 +23,13 @@ module modB './child/moduleb.bicep' = { } } +module modBWithCondition './child/moduleb.bicep' = if (1 + 1 == 2) { + name: 'modBWithCondition' + params: { + location: 'East US' + } +} + module optionalWithNoParams1 './child/optionalParams.bicep'= { name: 'optionalWithNoParams1' } diff --git a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.formatted.bicep b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.formatted.bicep index abfd4051ff5..2957c8a1472 100644 --- a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.formatted.bicep +++ b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.formatted.bicep @@ -23,6 +23,13 @@ module modB './child/moduleb.bicep' = { } } +module modBWithCondition './child/moduleb.bicep' = if (1 + 1 == 2) { + name: 'modBWithCondition' + params: { + location: 'East US' + } +} + module optionalWithNoParams1 './child/optionalParams.bicep' = { name: 'optionalWithNoParams1' } diff --git a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.json b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.json index 3e52d6090cc..bb870843565 100644 --- a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.json +++ b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.json @@ -1,565 +1,606 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "deployTimeSuffix": { - "type": "string", - "defaultValue": "[newGuid()]" - } - }, - "functions": [], - "resources": [ - { - "type": "Mock.Rp/mockResource", - "apiVersion": "2020-01-01", - "name": "harry", - "properties": { - "modADep": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.stringOutputA.value]", - "modBDep": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modB'), '2019-10-01').outputs.myResourceId.value]" - }, - "dependsOn": [ - "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest')]", - "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modB')]" - ] - }, - { - "type": "Mock.Rp/mockResource", - "apiVersion": "2020-01-01", - "name": "[format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))]", - "properties": { - "modADep": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))), '2019-10-01').outputs.outputObj.value]" - }, - "dependsOn": [ - "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix')))]", - "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency')]" - ] - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "modATest", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "parameters": { - "stringParamB": { - "value": "hello!" - }, - "objParam": { - "value": { - "a": "b" - } - }, - "arrayParam": { - "value": [ - { - "a": "b" - }, - "abc" - ] - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "stringParamA": { - "type": "string", - "defaultValue": "test" - }, - "stringParamB": { - "type": "string" - }, - "objParam": { - "type": "object" - }, - "arrayParam": { - "type": "array" - } - }, - "functions": [], - "resources": [ - { - "type": "Mock.Rp/mockResource", - "apiVersion": "2020-01-01", - "name": "basicblobs", - "location": "[parameters('stringParamA')]" - }, - { - "type": "Mock.Rp/mockResource", - "apiVersion": "2020-01-01", - "name": "myZone", - "location": "[parameters('stringParamB')]" - } - ], - "outputs": { - "stringOutputA": { - "type": "string", - "value": "[parameters('stringParamA')]" - }, - "stringOutputB": { - "type": "string", - "value": "[parameters('stringParamB')]" - }, - "objOutput": { - "type": "object", - "value": "[reference(resourceId('Mock.Rp/mockResource', 'basicblobs'))]" - }, - "arrayOutput": { - "type": "array", - "value": [ - "[resourceId('Mock.Rp/mockResource', 'basicblobs')]", - "[resourceId('Mock.Rp/mockResource', 'myZone')]" - ] - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "modB", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "parameters": { - "location": { - "value": "West US" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - } - }, - "functions": [], - "resources": [ - { - "type": "Mock.Rp/mockResource", - "apiVersion": "2020-01-01", - "name": "mockResource", - "location": "[parameters('location')]" - } - ], - "outputs": { - "myResourceId": { - "type": "string", - "value": "[resourceId('Mock.Rp/mockResource', 'mockResource')]" - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "optionalWithNoParams1", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "optionalString": { - "type": "string", - "defaultValue": "abc" - }, - "optionalInt": { - "type": "int", - "defaultValue": 42 - }, - "optionalObj": { - "type": "object", - "defaultValue": { - "a": "b" - } - }, - "optionalArray": { - "type": "array", - "defaultValue": [ - 1, - 2, - 3 - ] - } - }, - "functions": [], - "resources": [], - "outputs": { - "outputObj": { - "type": "object", - "value": { - "optionalString": "[parameters('optionalString')]", - "optionalInt": "[parameters('optionalInt')]", - "optionalObj": "[parameters('optionalObj')]", - "optionalArray": "[parameters('optionalArray')]" - } - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "optionalWithNoParams2", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "optionalString": { - "type": "string", - "defaultValue": "abc" - }, - "optionalInt": { - "type": "int", - "defaultValue": 42 - }, - "optionalObj": { - "type": "object", - "defaultValue": { - "a": "b" - } - }, - "optionalArray": { - "type": "array", - "defaultValue": [ - 1, - 2, - 3 - ] - } - }, - "functions": [], - "resources": [], - "outputs": { - "outputObj": { - "type": "object", - "value": { - "optionalString": "[parameters('optionalString')]", - "optionalInt": "[parameters('optionalInt')]", - "optionalObj": "[parameters('optionalObj')]", - "optionalArray": "[parameters('optionalArray')]" - } - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "optionalWithNoParams2", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "parameters": { - "optionalString": { - "value": "abc" - }, - "optionalInt": { - "value": 42 - }, - "optionalObj": { - "value": {} - }, - "optionalArray": { - "value": [] - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "optionalString": { - "type": "string", - "defaultValue": "abc" - }, - "optionalInt": { - "type": "int", - "defaultValue": 42 - }, - "optionalObj": { - "type": "object", - "defaultValue": { - "a": "b" - } - }, - "optionalArray": { - "type": "array", - "defaultValue": [ - 1, - 2, - 3 - ] - } - }, - "functions": [], - "resources": [], - "outputs": { - "outputObj": { - "type": "object", - "value": { - "optionalString": "[parameters('optionalString')]", - "optionalInt": "[parameters('optionalInt')]", - "optionalObj": "[parameters('optionalObj')]", - "optionalArray": "[parameters('optionalArray')]" - } - } - } - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "optionalWithAllParamsAndManualDependency", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "parameters": { - "optionalString": { - "value": "abc" - }, - "optionalInt": { - "value": 42 - }, - "optionalObj": { - "value": {} - }, - "optionalArray": { - "value": [] - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "optionalString": { - "type": "string", - "defaultValue": "abc" - }, - "optionalInt": { - "type": "int", - "defaultValue": 42 - }, - "optionalObj": { - "type": "object", - "defaultValue": { - "a": "b" - } - }, - "optionalArray": { - "type": "array", - "defaultValue": [ - 1, - 2, - 3 - ] - } - }, - "functions": [], - "resources": [], - "outputs": { - "outputObj": { - "type": "object", - "value": { - "optionalString": "[parameters('optionalString')]", - "optionalInt": "[parameters('optionalInt')]", - "optionalObj": "[parameters('optionalObj')]", - "optionalArray": "[parameters('optionalArray')]" - } - } - } - } - }, - "dependsOn": [ - "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithNoParams2')]", - "[resourceId('Mock.Rp/mockResource', 'harry')]" - ] - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "optionalWithImplicitDependency", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "parameters": { - "optionalString": { - "value": "[concat(resourceId('Mock.Rp/mockResource', 'harry'), reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name)]" - }, - "optionalInt": { - "value": 42 - }, - "optionalObj": { - "value": {} - }, - "optionalArray": { - "value": [] - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "optionalString": { - "type": "string", - "defaultValue": "abc" - }, - "optionalInt": { - "type": "int", - "defaultValue": 42 - }, - "optionalObj": { - "type": "object", - "defaultValue": { - "a": "b" - } - }, - "optionalArray": { - "type": "array", - "defaultValue": [ - 1, - 2, - 3 - ] - } - }, - "functions": [], - "resources": [], - "outputs": { - "outputObj": { - "type": "object", - "value": { - "optionalString": "[parameters('optionalString')]", - "optionalInt": "[parameters('optionalInt')]", - "optionalObj": "[parameters('optionalObj')]", - "optionalArray": "[parameters('optionalArray')]" - } - } - } - } - }, - "dependsOn": [ - "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency')]", - "[resourceId('Mock.Rp/mockResource', 'harry')]" - ] - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "[format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))]", - "properties": { - "expressionEvaluationOptions": { - "scope": "inner" - }, - "mode": "Incremental", - "parameters": { - "optionalString": { - "value": "[concat(resourceId('Mock.Rp/mockResource', 'harry'), reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name)]" - }, - "optionalInt": { - "value": 42 - }, - "optionalObj": { - "value": {} - }, - "optionalArray": { - "value": [] - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "optionalString": { - "type": "string", - "defaultValue": "abc" - }, - "optionalInt": { - "type": "int", - "defaultValue": 42 - }, - "optionalObj": { - "type": "object", - "defaultValue": { - "a": "b" - } - }, - "optionalArray": { - "type": "array", - "defaultValue": [ - 1, - 2, - 3 - ] - } - }, - "functions": [], - "resources": [], - "outputs": { - "outputObj": { - "type": "object", - "value": { - "optionalString": "[parameters('optionalString')]", - "optionalInt": "[parameters('optionalInt')]", - "optionalObj": "[parameters('optionalObj')]", - "optionalArray": "[parameters('optionalArray')]" - } - } - } - } - }, - "dependsOn": [ - "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency')]", - "[resourceId('Mock.Rp/mockResource', 'harry')]" - ] - } - ], - "outputs": { - "stringOutputA": { - "type": "string", - "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.stringOutputA.value]" - }, - "stringOutputB": { - "type": "string", - "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.stringOutputB.value]" - }, - "objOutput": { - "type": "object", - "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.objOutput.value]" - }, - "arrayOutput": { - "type": "array", - "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.arrayOutput.value]" - }, - "modCalculatedNameOutput": { - "type": "object", - "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))), '2019-10-01').outputs.outputObj.value]" - } - } +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "deployTimeSuffix": { + "type": "string", + "defaultValue": "[newGuid()]" + } + }, + "functions": [], + "resources": [ + { + "type": "Mock.Rp/mockResource", + "apiVersion": "2020-01-01", + "name": "harry", + "properties": { + "modADep": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.stringOutputA.value]", + "modBDep": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modB'), '2019-10-01').outputs.myResourceId.value]" + }, + "dependsOn": [ + "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest')]", + "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modB')]" + ] + }, + { + "type": "Mock.Rp/mockResource", + "apiVersion": "2020-01-01", + "name": "[format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))]", + "properties": { + "modADep": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))), '2019-10-01').outputs.outputObj.value]" + }, + "dependsOn": [ + "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix')))]", + "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency')]" + ] + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "modATest", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "stringParamB": { + "value": "hello!" + }, + "objParam": { + "value": { + "a": "b" + } + }, + "arrayParam": { + "value": [ + { + "a": "b" + }, + "abc" + ] + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "stringParamA": { + "type": "string", + "defaultValue": "test" + }, + "stringParamB": { + "type": "string" + }, + "objParam": { + "type": "object" + }, + "arrayParam": { + "type": "array" + } + }, + "functions": [], + "resources": [ + { + "type": "Mock.Rp/mockResource", + "apiVersion": "2020-01-01", + "name": "basicblobs", + "location": "[parameters('stringParamA')]" + }, + { + "type": "Mock.Rp/mockResource", + "apiVersion": "2020-01-01", + "name": "myZone", + "location": "[parameters('stringParamB')]" + } + ], + "outputs": { + "stringOutputA": { + "type": "string", + "value": "[parameters('stringParamA')]" + }, + "stringOutputB": { + "type": "string", + "value": "[parameters('stringParamB')]" + }, + "objOutput": { + "type": "object", + "value": "[reference(resourceId('Mock.Rp/mockResource', 'basicblobs'))]" + }, + "arrayOutput": { + "type": "array", + "value": [ + "[resourceId('Mock.Rp/mockResource', 'basicblobs')]", + "[resourceId('Mock.Rp/mockResource', 'myZone')]" + ] + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "modB", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "location": { + "value": "West US" + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "location": { + "type": "string" + } + }, + "functions": [], + "resources": [ + { + "type": "Mock.Rp/mockResource", + "apiVersion": "2020-01-01", + "name": "mockResource", + "location": "[parameters('location')]" + } + ], + "outputs": { + "myResourceId": { + "type": "string", + "value": "[resourceId('Mock.Rp/mockResource', 'mockResource')]" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "condition": "[equals(add(1, 1), 2)]", + "name": "modBWithCondition", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "location": { + "value": "East US" + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "location": { + "type": "string" + } + }, + "functions": [], + "resources": [ + { + "type": "Mock.Rp/mockResource", + "apiVersion": "2020-01-01", + "name": "mockResource", + "location": "[parameters('location')]" + } + ], + "outputs": { + "myResourceId": { + "type": "string", + "value": "[resourceId('Mock.Rp/mockResource', 'mockResource')]" + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "optionalWithNoParams1", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "optionalString": { + "type": "string", + "defaultValue": "abc" + }, + "optionalInt": { + "type": "int", + "defaultValue": 42 + }, + "optionalObj": { + "type": "object", + "defaultValue": { + "a": "b" + } + }, + "optionalArray": { + "type": "array", + "defaultValue": [ + 1, + 2, + 3 + ] + } + }, + "functions": [], + "resources": [], + "outputs": { + "outputObj": { + "type": "object", + "value": { + "optionalString": "[parameters('optionalString')]", + "optionalInt": "[parameters('optionalInt')]", + "optionalObj": "[parameters('optionalObj')]", + "optionalArray": "[parameters('optionalArray')]" + } + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "optionalWithNoParams2", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": {}, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "optionalString": { + "type": "string", + "defaultValue": "abc" + }, + "optionalInt": { + "type": "int", + "defaultValue": 42 + }, + "optionalObj": { + "type": "object", + "defaultValue": { + "a": "b" + } + }, + "optionalArray": { + "type": "array", + "defaultValue": [ + 1, + 2, + 3 + ] + } + }, + "functions": [], + "resources": [], + "outputs": { + "outputObj": { + "type": "object", + "value": { + "optionalString": "[parameters('optionalString')]", + "optionalInt": "[parameters('optionalInt')]", + "optionalObj": "[parameters('optionalObj')]", + "optionalArray": "[parameters('optionalArray')]" + } + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "optionalWithNoParams2", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "optionalString": { + "value": "abc" + }, + "optionalInt": { + "value": 42 + }, + "optionalObj": { + "value": {} + }, + "optionalArray": { + "value": [] + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "optionalString": { + "type": "string", + "defaultValue": "abc" + }, + "optionalInt": { + "type": "int", + "defaultValue": 42 + }, + "optionalObj": { + "type": "object", + "defaultValue": { + "a": "b" + } + }, + "optionalArray": { + "type": "array", + "defaultValue": [ + 1, + 2, + 3 + ] + } + }, + "functions": [], + "resources": [], + "outputs": { + "outputObj": { + "type": "object", + "value": { + "optionalString": "[parameters('optionalString')]", + "optionalInt": "[parameters('optionalInt')]", + "optionalObj": "[parameters('optionalObj')]", + "optionalArray": "[parameters('optionalArray')]" + } + } + } + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "optionalWithAllParamsAndManualDependency", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "optionalString": { + "value": "abc" + }, + "optionalInt": { + "value": 42 + }, + "optionalObj": { + "value": {} + }, + "optionalArray": { + "value": [] + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "optionalString": { + "type": "string", + "defaultValue": "abc" + }, + "optionalInt": { + "type": "int", + "defaultValue": 42 + }, + "optionalObj": { + "type": "object", + "defaultValue": { + "a": "b" + } + }, + "optionalArray": { + "type": "array", + "defaultValue": [ + 1, + 2, + 3 + ] + } + }, + "functions": [], + "resources": [], + "outputs": { + "outputObj": { + "type": "object", + "value": { + "optionalString": "[parameters('optionalString')]", + "optionalInt": "[parameters('optionalInt')]", + "optionalObj": "[parameters('optionalObj')]", + "optionalArray": "[parameters('optionalArray')]" + } + } + } + } + }, + "dependsOn": [ + "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithNoParams2')]", + "[resourceId('Mock.Rp/mockResource', 'harry')]" + ] + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "optionalWithImplicitDependency", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "optionalString": { + "value": "[concat(resourceId('Mock.Rp/mockResource', 'harry'), reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name)]" + }, + "optionalInt": { + "value": 42 + }, + "optionalObj": { + "value": {} + }, + "optionalArray": { + "value": [] + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "optionalString": { + "type": "string", + "defaultValue": "abc" + }, + "optionalInt": { + "type": "int", + "defaultValue": 42 + }, + "optionalObj": { + "type": "object", + "defaultValue": { + "a": "b" + } + }, + "optionalArray": { + "type": "array", + "defaultValue": [ + 1, + 2, + 3 + ] + } + }, + "functions": [], + "resources": [], + "outputs": { + "outputObj": { + "type": "object", + "value": { + "optionalString": "[parameters('optionalString')]", + "optionalInt": "[parameters('optionalInt')]", + "optionalObj": "[parameters('optionalObj')]", + "optionalArray": "[parameters('optionalArray')]" + } + } + } + } + }, + "dependsOn": [ + "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency')]", + "[resourceId('Mock.Rp/mockResource', 'harry')]" + ] + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "[format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))]", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "optionalString": { + "value": "[concat(resourceId('Mock.Rp/mockResource', 'harry'), reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name)]" + }, + "optionalInt": { + "value": 42 + }, + "optionalObj": { + "value": {} + }, + "optionalArray": { + "value": [] + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "optionalString": { + "type": "string", + "defaultValue": "abc" + }, + "optionalInt": { + "type": "int", + "defaultValue": 42 + }, + "optionalObj": { + "type": "object", + "defaultValue": { + "a": "b" + } + }, + "optionalArray": { + "type": "array", + "defaultValue": [ + 1, + 2, + 3 + ] + } + }, + "functions": [], + "resources": [], + "outputs": { + "outputObj": { + "type": "object", + "value": { + "optionalString": "[parameters('optionalString')]", + "optionalInt": "[parameters('optionalInt')]", + "optionalObj": "[parameters('optionalObj')]", + "optionalArray": "[parameters('optionalArray')]" + } + } + } + } + }, + "dependsOn": [ + "[extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency')]", + "[resourceId('Mock.Rp/mockResource', 'harry')]" + ] + } + ], + "outputs": { + "stringOutputA": { + "type": "string", + "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.stringOutputA.value]" + }, + "stringOutputB": { + "type": "string", + "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.stringOutputB.value]" + }, + "objOutput": { + "type": "object", + "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.objOutput.value]" + }, + "arrayOutput": { + "type": "array", + "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'modATest'), '2019-10-01').outputs.arrayOutput.value]" + }, + "modCalculatedNameOutput": { + "type": "object", + "value": "[reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', format('{0}{1}', reference(extensionResourceId(resourceGroup().id, 'Microsoft.Resources/deployments', 'optionalWithAllParamsAndManualDependency'), '2019-10-01').outputs.name, parameters('deployTimeSuffix'))), '2019-10-01').outputs.outputObj.value]" + } + } } \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.symbols.bicep b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.symbols.bicep index 98463710e94..9e292d17db5 100644 --- a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.symbols.bicep +++ b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.symbols.bicep @@ -26,6 +26,14 @@ module modB './child/moduleb.bicep' = { } } +module modBWithCondition './child/moduleb.bicep' = if (1 + 1 == 2) { +//@[7:24) Module modBWithCondition. Type: module. Declaration start char: 0, length: 143 + name: 'modBWithCondition' + params: { + location: 'East US' + } +} + module optionalWithNoParams1 './child/optionalParams.bicep'= { //@[7:28) Module optionalWithNoParams1. Type: module. Declaration start char: 0, length: 98 name: 'optionalWithNoParams1' diff --git a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.syntax.bicep b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.syntax.bicep index a8f16929314..d4c9939becc 100644 --- a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.syntax.bicep +++ b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.syntax.bicep @@ -149,6 +149,63 @@ module modB './child/moduleb.bicep' = { //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +module modBWithCondition './child/moduleb.bicep' = if (1 + 1 == 2) { +//@[0:143) ModuleDeclarationSyntax +//@[0:6) Identifier |module| +//@[7:24) IdentifierSyntax +//@[7:24) Identifier |modBWithCondition| +//@[25:48) StringSyntax +//@[25:48) StringComplete |'./child/moduleb.bicep'| +//@[49:50) Assignment |=| +//@[51:66) IfConditionSyntax +//@[51:53) Identifier |if| +//@[54:66) ParenthesizedExpressionSyntax +//@[54:55) LeftParen |(| +//@[55:65) BinaryOperationSyntax +//@[55:60) BinaryOperationSyntax +//@[55:56) NumericLiteralSyntax +//@[55:56) Number |1| +//@[57:58) Plus |+| +//@[59:60) NumericLiteralSyntax +//@[59:60) Number |1| +//@[61:63) Equals |==| +//@[64:65) NumericLiteralSyntax +//@[64:65) Number |2| +//@[65:66) RightParen |)| +//@[67:143) ObjectSyntax +//@[67:68) LeftBrace |{| +//@[68:70) NewLine |\r\n| + name: 'modBWithCondition' +//@[2:27) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:27) StringSyntax +//@[8:27) StringComplete |'modBWithCondition'| +//@[27:29) NewLine |\r\n| + params: { +//@[2:41) ObjectPropertySyntax +//@[2:8) IdentifierSyntax +//@[2:8) Identifier |params| +//@[8:9) Colon |:| +//@[10:41) ObjectSyntax +//@[10:11) LeftBrace |{| +//@[11:13) NewLine |\r\n| + location: 'East US' +//@[4:23) ObjectPropertySyntax +//@[4:12) IdentifierSyntax +//@[4:12) Identifier |location| +//@[12:13) Colon |:| +//@[14:23) StringSyntax +//@[14:23) StringComplete |'East US'| +//@[23:25) NewLine |\r\n| + } +//@[2:3) RightBrace |}| +//@[3:5) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + module optionalWithNoParams1 './child/optionalParams.bicep'= { //@[0:98) ModuleDeclarationSyntax //@[0:6) Identifier |module| diff --git a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.tokens.bicep b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.tokens.bicep index ed14e17893d..a221cef0a0a 100644 --- a/src/Bicep.Core.Samples/Files/Modules_CRLF/main.tokens.bicep +++ b/src/Bicep.Core.Samples/Files/Modules_CRLF/main.tokens.bicep @@ -101,6 +101,43 @@ module modB './child/moduleb.bicep' = { //@[0:1) RightBrace |}| //@[1:5) NewLine |\r\n\r\n| +module modBWithCondition './child/moduleb.bicep' = if (1 + 1 == 2) { +//@[0:6) Identifier |module| +//@[7:24) Identifier |modBWithCondition| +//@[25:48) StringComplete |'./child/moduleb.bicep'| +//@[49:50) Assignment |=| +//@[51:53) Identifier |if| +//@[54:55) LeftParen |(| +//@[55:56) Number |1| +//@[57:58) Plus |+| +//@[59:60) Number |1| +//@[61:63) Equals |==| +//@[64:65) Number |2| +//@[65:66) RightParen |)| +//@[67:68) LeftBrace |{| +//@[68:70) NewLine |\r\n| + name: 'modBWithCondition' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:27) StringComplete |'modBWithCondition'| +//@[27:29) NewLine |\r\n| + params: { +//@[2:8) Identifier |params| +//@[8:9) Colon |:| +//@[10:11) LeftBrace |{| +//@[11:13) NewLine |\r\n| + location: 'East US' +//@[4:12) Identifier |location| +//@[12:13) Colon |:| +//@[14:23) StringComplete |'East US'| +//@[23:25) NewLine |\r\n| + } +//@[2:3) RightBrace |}| +//@[3:5) NewLine |\r\n| +} +//@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + module optionalWithNoParams1 './child/optionalParams.bicep'= { //@[0:6) Identifier |module| //@[7:28) Identifier |optionalWithNoParams1| diff --git a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.bicep b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.bicep index bf90aec5ad8..49aeb184526 100644 --- a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.bicep +++ b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.bicep @@ -215,4 +215,17 @@ resource resourceWithEscaping 'My.Rp/mockResource@2020-01-01' = { // both key and value should be escaped in template output '[resourceGroup().location]': '[resourceGroup().location]' } +} + +param shouldDeployVm bool = true +resource vmWithCondition 'Microsoft.Compute/virtualMachines@2020-06-01' = if (shouldDeployVm) { + name: 'vmName' + location: 'westus' + properties: { + osProfile: { + windowsConfiguration: { + enableAutomaticUpdates: true + } + } + } } \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.diagnostics.bicep b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.diagnostics.bicep index 212e83c9bc9..dee75dfe00a 100644 --- a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.diagnostics.bicep +++ b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.diagnostics.bicep @@ -216,3 +216,16 @@ resource resourceWithEscaping 'My.Rp/mockResource@2020-01-01' = { '[resourceGroup().location]': '[resourceGroup().location]' } } + +param shouldDeployVm bool = true +resource vmWithCondition 'Microsoft.Compute/virtualMachines@2020-06-01' = if (shouldDeployVm) { + name: 'vmName' + location: 'westus' + properties: { + osProfile: { + windowsConfiguration: { + enableAutomaticUpdates: true + } + } + } +} diff --git a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.formatted.bicep b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.formatted.bicep index ebe5fcde719..87abbf1d4d1 100644 --- a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.formatted.bicep +++ b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.formatted.bicep @@ -215,3 +215,16 @@ resource resourceWithEscaping 'My.Rp/mockResource@2020-01-01' = { '[resourceGroup().location]': '[resourceGroup().location]' } } + +param shouldDeployVm bool = true +resource vmWithCondition 'Microsoft.Compute/virtualMachines@2020-06-01' = if (shouldDeployVm) { + name: 'vmName' + location: 'westus' + properties: { + osProfile: { + windowsConfiguration: { + enableAutomaticUpdates: true + } + } + } +} diff --git a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.json b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.json index 1c826500d99..416bee73f36 100644 --- a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.json +++ b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.json @@ -1,254 +1,272 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "applicationName": { - "type": "string", - "defaultValue": "[format('to-do-app{0}', uniqueString(resourceGroup().id))]" - }, - "appServicePlanTier": { - "type": "string" - }, - "appServicePlanInstances": { - "type": "int" - }, - "webSiteName": { - "type": "string" - }, - "cosmosDb": { - "type": "object" - } - }, - "functions": [], - "variables": { - "hostingPlanName": "[parameters('applicationName')]", - "location": "[resourceGroup().location]", - "cosmosDbResourceId": "[resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('cosmosDb').account)]", - "_siteApiVersion": "2019-08-01", - "_siteType": "Microsoft.Web/sites", - "resourceCRef": { - "id": "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]" - }, - "setResourceCRef": true, - "myInterpKey": "abc" - }, - "resources": [ - { - "type": "Microsoft.Storage/storageAccounts", - "apiVersion": "2019-06-01", - "name": "basicblobs", - "location": "westus", - "kind": "BlobStorage", - "sku": { - "name": "Standard_GRS" - } - }, - { - "type": "Microsoft.Network/dnszones", - "apiVersion": "2018-05-01", - "name": "myZone", - "location": "global" - }, - { - "type": "Microsoft.Storage/storageAccounts", - "apiVersion": "2017-10-01", - "name": "myencryptedone", - "location": "eastus2", - "properties": { - "supportsHttpsTrafficOnly": true, - "accessTier": "Hot", - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": true - }, - "file": { - "enabled": true - } - } - } - }, - "kind": "StorageV2", - "sku": { - "name": "Standard_LRS" - } - }, - { - "type": "Microsoft.Storage/storageAccounts", - "apiVersion": "2017-10-01", - "name": "myencryptedone", - "location": "eastus2", - "properties": { - "supportsHttpsTrafficOnly": "[not(false())]", - "accessTier": "[if(true(), 'Hot', 'Cold')]", - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": "[or(true(), false())]" - }, - "file": { - "enabled": true - } - } - } - }, - "kind": "StorageV2", - "sku": { - "name": "Standard_LRS" - }, - "dependsOn": [ - "[resourceId('Microsoft.Storage/storageAccounts', 'myencryptedone')]" - ] - }, - { - "type": "Microsoft.Web/serverFarms", - "apiVersion": "2019-08-01", - "name": "[variables('hostingPlanName')]", - "location": "[variables('location')]", - "sku": { - "name": "[parameters('appServicePlanTier')]", - "capacity": "[parameters('appServicePlanInstances')]" - }, - "properties": { - "name": "[variables('hostingPlanName')]" - } - }, - { - "type": "Microsoft.Web/sites", - "apiVersion": "2019-08-01", - "name": "[parameters('webSiteName')]", - "location": "[variables('location')]", - "properties": { - "siteConfig": { - "appSettings": [ - { - "name": "CosmosDb:Account", - "value": "[reference(variables('cosmosDbResourceId')).documentEndpoint]" - }, - { - "name": "CosmosDb:Key", - "value": "[listKeys(variables('cosmosDbResourceId'), '2020-04-01').primaryMasterKey]" - }, - { - "name": "CosmosDb:DatabaseName", - "value": "[parameters('cosmosDb').databaseName]" - }, - { - "name": "CosmosDb:ContainerName", - "value": "[parameters('cosmosDb').containerName]" - } - ] - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2019-10-01", - "name": "nestedTemplate1", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - }, - { - "type": "Microsoft.Foo/foos", - "apiVersion": "2019-10-01", - "name": "nestedTemplate1", - "properties": { - "otherId": "[resourceId('Microsoft.Resources/deployments', 'nestedTemplate1')]", - "otherName": "nestedTemplate1", - "otherVersion": "2019-10-01", - "otherType": "Microsoft.Resources/deployments", - "otherThings": "[reference(resourceId('Microsoft.Resources/deployments', 'nestedTemplate1')).mode]" - }, - "dependsOn": [ - "[resourceId('Microsoft.Resources/deployments', 'nestedTemplate1')]" - ] - }, - { - "type": "My.Rp/typeA", - "apiVersion": "2020-01-01", - "name": "resourceA" - }, - { - "type": "My.Rp/typeA/typeB", - "apiVersion": "2020-01-01", - "name": "[format('{0}/myName', 'resourceA')]", - "dependsOn": [ - "[resourceId('My.Rp/typeA', 'resourceA')]" - ] - }, - { - "type": "My.Rp/typeA/typeB", - "apiVersion": "2020-01-01", - "name": "[format('{0}/myName', 'resourceA')]", - "properties": { - "aId": "[resourceId('My.Rp/typeA', 'resourceA')]", - "aType": "My.Rp/typeA", - "aName": "resourceA", - "aApiVersion": "2020-01-01", - "bProperties": "[reference(resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1]))]" - }, - "dependsOn": [ - "[resourceId('My.Rp/typeA', 'resourceA')]", - "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]" - ] - }, - { - "type": "My.Rp/typeD", - "apiVersion": "2020-01-01", - "name": "constant", - "properties": { - "runtime": [ - { - "bId": "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]", - "bType": "My.Rp/typeA/typeB", - "bName": "[format('{0}/myName', 'resourceA')]", - "bApiVersion": "2020-01-01", - "aKind": "[reference(resourceId('My.Rp/typeA', 'resourceA'), '2020-01-01', 'full').kind]" - } - ], - "repro316": "[if(variables('setResourceCRef'), variables('resourceCRef'), null())]" - }, - "dependsOn": [ - "[resourceId('My.Rp/typeA', 'resourceA')]", - "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]", - "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]" - ] - }, - { - "type": "My.Rp/interp", - "apiVersion": "2020-01-01", - "name": "interpTest", - "properties": { - "[variables('myInterpKey')]": 1, - "[format('abc{0}def', variables('myInterpKey'))]": 2, - "[format('{0}abc{1}', variables('myInterpKey'), variables('myInterpKey'))]": 3 - } - }, - { - "type": "My.Rp/mockResource", - "apiVersion": "2020-01-01", - "name": "test", - "properties": { - "[[resourceGroup().location]": "[[resourceGroup().location]" - } - } - ], - "outputs": { - "siteApiVersion": { - "type": "string", - "value": "2019-08-01" - }, - "siteType": { - "type": "string", - "value": "Microsoft.Web/sites" - } - } +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "applicationName": { + "type": "string", + "defaultValue": "[format('to-do-app{0}', uniqueString(resourceGroup().id))]" + }, + "appServicePlanTier": { + "type": "string" + }, + "appServicePlanInstances": { + "type": "int" + }, + "webSiteName": { + "type": "string" + }, + "cosmosDb": { + "type": "object" + }, + "shouldDeployVm": { + "type": "bool", + "defaultValue": true + } + }, + "functions": [], + "variables": { + "hostingPlanName": "[parameters('applicationName')]", + "location": "[resourceGroup().location]", + "cosmosDbResourceId": "[resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('cosmosDb').account)]", + "_siteApiVersion": "2019-08-01", + "_siteType": "Microsoft.Web/sites", + "resourceCRef": { + "id": "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]" + }, + "setResourceCRef": true, + "myInterpKey": "abc" + }, + "resources": [ + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "2019-06-01", + "name": "basicblobs", + "location": "westus", + "kind": "BlobStorage", + "sku": { + "name": "Standard_GRS" + } + }, + { + "type": "Microsoft.Network/dnszones", + "apiVersion": "2018-05-01", + "name": "myZone", + "location": "global" + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "2017-10-01", + "name": "myencryptedone", + "location": "eastus2", + "properties": { + "supportsHttpsTrafficOnly": true, + "accessTier": "Hot", + "encryption": { + "keySource": "Microsoft.Storage", + "services": { + "blob": { + "enabled": true + }, + "file": { + "enabled": true + } + } + } + }, + "kind": "StorageV2", + "sku": { + "name": "Standard_LRS" + } + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "2017-10-01", + "name": "myencryptedone", + "location": "eastus2", + "properties": { + "supportsHttpsTrafficOnly": "[not(false())]", + "accessTier": "[if(true(), 'Hot', 'Cold')]", + "encryption": { + "keySource": "Microsoft.Storage", + "services": { + "blob": { + "enabled": "[or(true(), false())]" + }, + "file": { + "enabled": true + } + } + } + }, + "kind": "StorageV2", + "sku": { + "name": "Standard_LRS" + }, + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts', 'myencryptedone')]" + ] + }, + { + "type": "Microsoft.Web/serverFarms", + "apiVersion": "2019-08-01", + "name": "[variables('hostingPlanName')]", + "location": "[variables('location')]", + "sku": { + "name": "[parameters('appServicePlanTier')]", + "capacity": "[parameters('appServicePlanInstances')]" + }, + "properties": { + "name": "[variables('hostingPlanName')]" + } + }, + { + "type": "Microsoft.Web/sites", + "apiVersion": "2019-08-01", + "name": "[parameters('webSiteName')]", + "location": "[variables('location')]", + "properties": { + "siteConfig": { + "appSettings": [ + { + "name": "CosmosDb:Account", + "value": "[reference(variables('cosmosDbResourceId')).documentEndpoint]" + }, + { + "name": "CosmosDb:Key", + "value": "[listKeys(variables('cosmosDbResourceId'), '2020-04-01').primaryMasterKey]" + }, + { + "name": "CosmosDb:DatabaseName", + "value": "[parameters('cosmosDb').databaseName]" + }, + { + "name": "CosmosDb:ContainerName", + "value": "[parameters('cosmosDb').containerName]" + } + ] + } + } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2019-10-01", + "name": "nestedTemplate1", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + } + }, + { + "type": "Microsoft.Foo/foos", + "apiVersion": "2019-10-01", + "name": "nestedTemplate1", + "properties": { + "otherId": "[resourceId('Microsoft.Resources/deployments', 'nestedTemplate1')]", + "otherName": "nestedTemplate1", + "otherVersion": "2019-10-01", + "otherType": "Microsoft.Resources/deployments", + "otherThings": "[reference(resourceId('Microsoft.Resources/deployments', 'nestedTemplate1')).mode]" + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', 'nestedTemplate1')]" + ] + }, + { + "type": "My.Rp/typeA", + "apiVersion": "2020-01-01", + "name": "resourceA" + }, + { + "type": "My.Rp/typeA/typeB", + "apiVersion": "2020-01-01", + "name": "[format('{0}/myName', 'resourceA')]", + "dependsOn": [ + "[resourceId('My.Rp/typeA', 'resourceA')]" + ] + }, + { + "type": "My.Rp/typeA/typeB", + "apiVersion": "2020-01-01", + "name": "[format('{0}/myName', 'resourceA')]", + "properties": { + "aId": "[resourceId('My.Rp/typeA', 'resourceA')]", + "aType": "My.Rp/typeA", + "aName": "resourceA", + "aApiVersion": "2020-01-01", + "bProperties": "[reference(resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1]))]" + }, + "dependsOn": [ + "[resourceId('My.Rp/typeA', 'resourceA')]", + "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]" + ] + }, + { + "type": "My.Rp/typeD", + "apiVersion": "2020-01-01", + "name": "constant", + "properties": { + "runtime": [ + { + "bId": "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]", + "bType": "My.Rp/typeA/typeB", + "bName": "[format('{0}/myName', 'resourceA')]", + "bApiVersion": "2020-01-01", + "aKind": "[reference(resourceId('My.Rp/typeA', 'resourceA'), '2020-01-01', 'full').kind]" + } + ], + "repro316": "[if(variables('setResourceCRef'), variables('resourceCRef'), null())]" + }, + "dependsOn": [ + "[resourceId('My.Rp/typeA', 'resourceA')]", + "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]", + "[resourceId('My.Rp/typeA/typeB', split(format('{0}/myName', 'resourceA'), '/')[0], split(format('{0}/myName', 'resourceA'), '/')[1])]" + ] + }, + { + "type": "My.Rp/interp", + "apiVersion": "2020-01-01", + "name": "interpTest", + "properties": { + "[variables('myInterpKey')]": 1, + "[format('abc{0}def', variables('myInterpKey'))]": 2, + "[format('{0}abc{1}', variables('myInterpKey'), variables('myInterpKey'))]": 3 + } + }, + { + "type": "My.Rp/mockResource", + "apiVersion": "2020-01-01", + "name": "test", + "properties": { + "[[resourceGroup().location]": "[[resourceGroup().location]" + } + }, + { + "type": "Microsoft.Compute/virtualMachines", + "apiVersion": "2020-06-01", + "condition": "[parameters('shouldDeployVm')]", + "name": "vmName", + "location": "westus", + "properties": { + "osProfile": { + "windowsConfiguration": { + "enableAutomaticUpdates": true + } + } + } + } + ], + "outputs": { + "siteApiVersion": { + "type": "string", + "value": "2019-08-01" + }, + "siteType": { + "type": "string", + "value": "Microsoft.Web/sites" + } + } } \ No newline at end of file diff --git a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.symbols.bicep b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.symbols.bicep index 2a22a9ce43d..6c0814516ea 100644 --- a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.symbols.bicep +++ b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.symbols.bicep @@ -249,3 +249,18 @@ resource resourceWithEscaping 'My.Rp/mockResource@2020-01-01' = { '[resourceGroup().location]': '[resourceGroup().location]' } } + +param shouldDeployVm bool = true +//@[6:20) Parameter shouldDeployVm. Type: bool. Declaration start char: 0, length: 32 +resource vmWithCondition 'Microsoft.Compute/virtualMachines@2020-06-01' = if (shouldDeployVm) { +//@[9:24) Resource vmWithCondition. Type: Microsoft.Compute/virtualMachines@2020-06-01. Declaration start char: 0, length: 263 + name: 'vmName' + location: 'westus' + properties: { + osProfile: { + windowsConfiguration: { + enableAutomaticUpdates: true + } + } + } +} diff --git a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.syntax.bicep b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.syntax.bicep index 21b1b009b30..db7d67469c5 100644 --- a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.syntax.bicep +++ b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.syntax.bicep @@ -1590,4 +1590,96 @@ resource resourceWithEscaping 'My.Rp/mockResource@2020-01-01' = { //@[3:5) NewLine |\r\n| } //@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +param shouldDeployVm bool = true +//@[0:32) ParameterDeclarationSyntax +//@[0:5) Identifier |param| +//@[6:20) IdentifierSyntax +//@[6:20) Identifier |shouldDeployVm| +//@[21:25) TypeSyntax +//@[21:25) Identifier |bool| +//@[26:32) ParameterDefaultValueSyntax +//@[26:27) Assignment |=| +//@[28:32) BooleanLiteralSyntax +//@[28:32) TrueKeyword |true| +//@[32:34) NewLine |\r\n| +resource vmWithCondition 'Microsoft.Compute/virtualMachines@2020-06-01' = if (shouldDeployVm) { +//@[0:263) ResourceDeclarationSyntax +//@[0:8) Identifier |resource| +//@[9:24) IdentifierSyntax +//@[9:24) Identifier |vmWithCondition| +//@[25:71) StringSyntax +//@[25:71) StringComplete |'Microsoft.Compute/virtualMachines@2020-06-01'| +//@[72:73) Assignment |=| +//@[74:93) IfConditionSyntax +//@[74:76) Identifier |if| +//@[77:93) ParenthesizedExpressionSyntax +//@[77:78) LeftParen |(| +//@[78:92) VariableAccessSyntax +//@[78:92) IdentifierSyntax +//@[78:92) Identifier |shouldDeployVm| +//@[92:93) RightParen |)| +//@[94:263) ObjectSyntax +//@[94:95) LeftBrace |{| +//@[95:97) NewLine |\r\n| + name: 'vmName' +//@[2:16) ObjectPropertySyntax +//@[2:6) IdentifierSyntax +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:16) StringSyntax +//@[8:16) StringComplete |'vmName'| +//@[16:18) NewLine |\r\n| + location: 'westus' +//@[2:20) ObjectPropertySyntax +//@[2:10) IdentifierSyntax +//@[2:10) Identifier |location| +//@[10:11) Colon |:| +//@[12:20) StringSyntax +//@[12:20) StringComplete |'westus'| +//@[20:22) NewLine |\r\n| + properties: { +//@[2:123) ObjectPropertySyntax +//@[2:12) IdentifierSyntax +//@[2:12) Identifier |properties| +//@[12:13) Colon |:| +//@[14:123) ObjectSyntax +//@[14:15) LeftBrace |{| +//@[15:17) NewLine |\r\n| + osProfile: { +//@[4:101) ObjectPropertySyntax +//@[4:13) IdentifierSyntax +//@[4:13) Identifier |osProfile| +//@[13:14) Colon |:| +//@[15:101) ObjectSyntax +//@[15:16) LeftBrace |{| +//@[16:18) NewLine |\r\n| + windowsConfiguration: { +//@[6:76) ObjectPropertySyntax +//@[6:26) IdentifierSyntax +//@[6:26) Identifier |windowsConfiguration| +//@[26:27) Colon |:| +//@[28:76) ObjectSyntax +//@[28:29) LeftBrace |{| +//@[29:31) NewLine |\r\n| + enableAutomaticUpdates: true +//@[8:36) ObjectPropertySyntax +//@[8:30) IdentifierSyntax +//@[8:30) Identifier |enableAutomaticUpdates| +//@[30:31) Colon |:| +//@[32:36) BooleanLiteralSyntax +//@[32:36) TrueKeyword |true| +//@[36:38) NewLine |\r\n| + } +//@[6:7) RightBrace |}| +//@[7:9) NewLine |\r\n| + } +//@[4:5) RightBrace |}| +//@[5:7) NewLine |\r\n| + } +//@[2:3) RightBrace |}| +//@[3:5) NewLine |\r\n| +} +//@[0:1) RightBrace |}| //@[1:1) EndOfFile || diff --git a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.tokens.bicep b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.tokens.bicep index 424c10a89e7..a12c2753bc8 100644 --- a/src/Bicep.Core.Samples/Files/Resources_CRLF/main.tokens.bicep +++ b/src/Bicep.Core.Samples/Files/Resources_CRLF/main.tokens.bicep @@ -1017,4 +1017,65 @@ resource resourceWithEscaping 'My.Rp/mockResource@2020-01-01' = { //@[3:5) NewLine |\r\n| } //@[0:1) RightBrace |}| +//@[1:5) NewLine |\r\n\r\n| + +param shouldDeployVm bool = true +//@[0:5) Identifier |param| +//@[6:20) Identifier |shouldDeployVm| +//@[21:25) Identifier |bool| +//@[26:27) Assignment |=| +//@[28:32) TrueKeyword |true| +//@[32:34) NewLine |\r\n| +resource vmWithCondition 'Microsoft.Compute/virtualMachines@2020-06-01' = if (shouldDeployVm) { +//@[0:8) Identifier |resource| +//@[9:24) Identifier |vmWithCondition| +//@[25:71) StringComplete |'Microsoft.Compute/virtualMachines@2020-06-01'| +//@[72:73) Assignment |=| +//@[74:76) Identifier |if| +//@[77:78) LeftParen |(| +//@[78:92) Identifier |shouldDeployVm| +//@[92:93) RightParen |)| +//@[94:95) LeftBrace |{| +//@[95:97) NewLine |\r\n| + name: 'vmName' +//@[2:6) Identifier |name| +//@[6:7) Colon |:| +//@[8:16) StringComplete |'vmName'| +//@[16:18) NewLine |\r\n| + location: 'westus' +//@[2:10) Identifier |location| +//@[10:11) Colon |:| +//@[12:20) StringComplete |'westus'| +//@[20:22) NewLine |\r\n| + properties: { +//@[2:12) Identifier |properties| +//@[12:13) Colon |:| +//@[14:15) LeftBrace |{| +//@[15:17) NewLine |\r\n| + osProfile: { +//@[4:13) Identifier |osProfile| +//@[13:14) Colon |:| +//@[15:16) LeftBrace |{| +//@[16:18) NewLine |\r\n| + windowsConfiguration: { +//@[6:26) Identifier |windowsConfiguration| +//@[26:27) Colon |:| +//@[28:29) LeftBrace |{| +//@[29:31) NewLine |\r\n| + enableAutomaticUpdates: true +//@[8:30) Identifier |enableAutomaticUpdates| +//@[30:31) Colon |:| +//@[32:36) TrueKeyword |true| +//@[36:38) NewLine |\r\n| + } +//@[6:7) RightBrace |}| +//@[7:9) NewLine |\r\n| + } +//@[4:5) RightBrace |}| +//@[5:7) NewLine |\r\n| + } +//@[2:3) RightBrace |}| +//@[3:5) NewLine |\r\n| +} +//@[0:1) RightBrace |}| //@[1:1) EndOfFile || diff --git a/src/Bicep.Core/Diagnostics/DiagnosticBuilder.cs b/src/Bicep.Core/Diagnostics/DiagnosticBuilder.cs index eb1a3a1bb8e..0d99cc2de60 100644 --- a/src/Bicep.Core/Diagnostics/DiagnosticBuilder.cs +++ b/src/Bicep.Core/Diagnostics/DiagnosticBuilder.cs @@ -1,16 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +using System; using System.Collections.Generic; +using System.Linq; using System.Text; +using Bicep.Core.CodeAction; using Bicep.Core.Extensions; using Bicep.Core.Parsing; -using Bicep.Core.TypeSystem; using Bicep.Core.Resources; -using Bicep.Core.CodeAction; -using System.Linq; -using System; using Bicep.Core.Semantics; +using Bicep.Core.TypeSystem; namespace Bicep.Core.Diagnostics { @@ -680,6 +680,10 @@ public ErrorDiagnostic ArgumentCountMismatch(int argumentCount, int mininumArgum "An empty indexer is not allowed. Specify a valid expression." ); + public ErrorDiagnostic ExpectBodyStartOrIf() => new ErrorDiagnostic( + TextSpan, + "BCP118", + "Expected the \"{\" character or the \"if\" keyword at this location."); } public static DiagnosticBuilderInternal ForPosition(TextSpan span) diff --git a/src/Bicep.Core/Emit/ExpressionConverter.cs b/src/Bicep.Core/Emit/ExpressionConverter.cs index 89318177b0f..0f5242eb8e7 100644 --- a/src/Bicep.Core/Emit/ExpressionConverter.cs +++ b/src/Bicep.Core/Emit/ExpressionConverter.cs @@ -158,27 +158,27 @@ public LanguageExpression ConvertExpression(SyntaxBase expression) private LanguageExpression GetResourceNameExpression(ResourceDeclarationSyntax resourceSyntax) { - if (!(resourceSyntax.Body is ObjectSyntax objectSyntax)) + if (resourceSyntax.Body is not ObjectSyntax objectSyntax) { // this condition should have already been validated by the type checker throw new ArgumentException($"Expected resource syntax to have type {typeof(ObjectSyntax)}, but found {resourceSyntax.Body.GetType()}"); } - + // this condition should have already been validated by the type checker - var namePropertySyntax = objectSyntax.SafeGetPropertyByName("name") ?? throw new ArgumentException($"Expected resource syntax body to contain property 'name'"); + var namePropertySyntax = objectSyntax.SafeGetPropertyByName("name") ?? throw new ArgumentException("Expected resource syntax body to contain property 'name'"); return ConvertExpression(namePropertySyntax.Value); } private LanguageExpression GetModuleNameExpression(ModuleDeclarationSyntax moduleSyntax) { - if (!(moduleSyntax.Body is ObjectSyntax objectSyntax)) + if (moduleSyntax.Body is not ObjectSyntax objectSyntax) { // this condition should have already been validated by the type checker throw new ArgumentException($"Expected module syntax to have type {typeof(ObjectSyntax)}, but found {moduleSyntax.Body.GetType()}"); } - + // this condition should have already been validated by the type checker - var namePropertySyntax = objectSyntax.SafeGetPropertyByName("name") ?? throw new ArgumentException($"Expected module syntax body to contain property 'name'"); + var namePropertySyntax = objectSyntax.SafeGetPropertyByName("name") ?? throw new ArgumentException("Expected module syntax body to contain property 'name'"); return ConvertExpression(namePropertySyntax.Value); } diff --git a/src/Bicep.Core/Emit/TemplateWriter.cs b/src/Bicep.Core/Emit/TemplateWriter.cs index 828f51b0850..70b117aaab0 100644 --- a/src/Bicep.Core/Emit/TemplateWriter.cs +++ b/src/Bicep.Core/Emit/TemplateWriter.cs @@ -2,13 +2,11 @@ // Licensed under the MIT License. using System; -using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Azure.Deployments.Expression.Expressions; using Bicep.Core.Extensions; using Bicep.Core.Semantics; -using Bicep.Core.Semantics.Namespaces; using Bicep.Core.Syntax; using Bicep.Core.TypeSystem; using Newtonsoft.Json; @@ -224,9 +222,14 @@ private void EmitResource(ResourceSymbol resourceSymbol) var typeReference = EmitHelpers.GetTypeReference(resourceSymbol); + if (resourceSymbol.DeclaringResource.IfCondition is IfConditionSyntax ifCondition) + { + this.emitter.EmitProperty("condition", ifCondition.ConditionExpression); + } + this.emitter.EmitProperty("type", typeReference.FullyQualifiedType); this.emitter.EmitProperty("apiVersion", typeReference.ApiVersion); - this.emitter.EmitObjectProperties((ObjectSyntax) resourceSymbol.Body, ResourcePropertiesToOmit); + this.emitter.EmitObjectProperties((ObjectSyntax)resourceSymbol.DeclaringResource.Body, ResourcePropertiesToOmit); // dependsOn is currently not allowed as a top-level resource property in bicep // we will need to revisit this and probably merge the two if we decide to allow it @@ -263,7 +266,7 @@ private void EmitModuleParameters(ModuleSymbol moduleSymbol) writer.WriteStartObject(); this.emitter.EmitProperty("value", propertySyntax.Value); writer.WriteEndObject(); - } + } } writer.WriteEndObject(); @@ -273,14 +276,18 @@ private void EmitModule(ModuleSymbol moduleSymbol) { writer.WriteStartObject(); + if (moduleSymbol.DeclaringModule.IfCondition is IfConditionSyntax ifCondition) + { + this.emitter.EmitProperty("condition", ifCondition.ConditionExpression); + } + this.emitter.EmitProperty("type", NestedDeploymentResourceType); this.emitter.EmitProperty("apiVersion", NestedDeploymentResourceApiVersion); // emit all properties apart from 'params'. In practice, this currrently only allows 'name', but we may choose to allow other top-level resource properties in future. // params requires special handling (see below). - var moduleBody = (ObjectSyntax) moduleSymbol.DeclaringModule.Body; + this.emitter.EmitObjectProperties((ObjectSyntax)moduleSymbol.DeclaringModule.Body, ModulePropertiesToOmit); - this.emitter.EmitObjectProperties(moduleBody, ModulePropertiesToOmit); var scopeData = context.ModuleScopeData[moduleSymbol]; ScopeHelper.EmitModuleScopeProperties(scopeData, emitter); diff --git a/src/Bicep.Core/LanguageConstants.cs b/src/Bicep.Core/LanguageConstants.cs index 85f65ac7e20..2dd3faba0a5 100644 --- a/src/Bicep.Core/LanguageConstants.cs +++ b/src/Bicep.Core/LanguageConstants.cs @@ -25,6 +25,8 @@ public static class LanguageConstants public const string ResourceKeyword = "resource"; public const string ModuleKeyword = "module"; + public const string IfKeyword = "if"; + public const string TargetScopeTypeTenant = "tenant"; public const string TargetScopeTypeManagementGroup = "managementGroup"; public const string TargetScopeTypeSubscription = "subscription"; @@ -32,6 +34,10 @@ public static class LanguageConstants public static ImmutableSortedSet DeclarationKeywords = new[] {ParameterKeyword, VariableKeyword, ResourceKeyword, OutputKeyword, ModuleKeyword}.ToImmutableSortedSet(StringComparer.Ordinal); + public static ImmutableSortedSet ContextualKeywords = DeclarationKeywords + .Add(TargetScopeKeyword) + .Add(IfKeyword); + public const string TrueKeyword = "true"; public const string FalseKeyword = "false"; public const string NullKeyword = "null"; diff --git a/src/Bicep.Core/Parsing/Parser.cs b/src/Bicep.Core/Parsing/Parser.cs index 45715b9a65f..9b3275acf54 100644 --- a/src/Bicep.Core/Parsing/Parser.cs +++ b/src/Bicep.Core/Parsing/Parser.cs @@ -6,9 +6,9 @@ using System.Globalization; using System.Linq; using Bicep.Core.Diagnostics; +using Bicep.Core.Extensions; using Bicep.Core.Navigation; using Bicep.Core.Syntax; -using Bicep.Core.Extensions; namespace Bicep.Core.Parsing { @@ -16,8 +16,8 @@ public class Parser { private readonly TokenReader reader; - private readonly ImmutableArray lexerDiagnostics; - + private readonly ImmutableArray lexerDiagnostics; + public Parser(string text) { // treating the lexer as an implementation detail of the parser @@ -32,8 +32,8 @@ public Parser(string text) public ProgramSyntax Program() { - var declarationsOrTokens = new List(); - + var declarationsOrTokens = new List(); + while (!this.IsAtEnd()) { // this produces either a declaration node, skipped tokens node or just a token @@ -85,9 +85,9 @@ public SyntaxBase Declaration() => TokenType.NewLine); private static RecoveryFlags GetSuppressionFlag(SyntaxBase precedingNode) - { - // local function - RecoveryFlags ConvertFlags(bool suppress) => suppress ? RecoveryFlags.SuppressDiagnostics : RecoveryFlags.None; + { + // local function + static RecoveryFlags ConvertFlags(bool suppress) => suppress ? RecoveryFlags.SuppressDiagnostics : RecoveryFlags.None; /* * When we have an incomplete declarations like "param\n", @@ -190,9 +190,27 @@ private SyntaxBase ResourceDeclaration() TokenType.Assignment, TokenType.NewLine); var assignment = this.WithRecovery(this.Assignment, GetSuppressionFlag(type), TokenType.LeftBrace, TokenType.NewLine); - var body = this.WithRecovery(this.Object, GetSuppressionFlag(assignment), TokenType.NewLine); + var ifCondition = this.WithRecoveryNullable(() => + { + var current = reader.Peek(); + return current.Type switch + { + TokenType.Identifier when current.Text == LanguageConstants.IfKeyword => this.IfCondition(), + TokenType.LeftBrace => null, + _ => throw new ExpectedTokenException(current, b => b.ExpectBodyStartOrIf()) + }; + }, + GetSuppressionFlag(assignment), + TokenType.LeftBrace, + TokenType.NewLine); + + RecoveryFlags suppressionFlag = ifCondition is IfConditionSyntax ifConditionSyntax && ifConditionSyntax.ConditionExpression is SkippedTriviaSyntax + ? RecoveryFlags.SuppressDiagnostics + : GetSuppressionFlag(ifCondition ?? assignment); + + var body = this.WithRecovery(this.Object, suppressionFlag, TokenType.NewLine); - return new ResourceDeclarationSyntax(keyword, name, type, assignment, body); + return new ResourceDeclarationSyntax(keyword, name, type, assignment, ifCondition, body); } private SyntaxBase ModuleDeclaration() @@ -207,9 +225,27 @@ private SyntaxBase ModuleDeclaration() TokenType.Assignment, TokenType.NewLine); var assignment = this.WithRecovery(this.Assignment, GetSuppressionFlag(path), TokenType.LeftBrace, TokenType.NewLine); - var body = this.WithRecovery(this.Object, GetSuppressionFlag(assignment), TokenType.NewLine); + var ifCondition = this.WithRecoveryNullable(() => + { + var current = reader.Peek(); + return current.Type switch + { + TokenType.Identifier when current.Text == LanguageConstants.IfKeyword => this.IfCondition(), + TokenType.LeftBrace => null, + _ => throw new ExpectedTokenException(current, b => b.ExpectBodyStartOrIf()) + }; + }, + GetSuppressionFlag(assignment), + TokenType.LeftBrace, + TokenType.NewLine); - return new ModuleDeclarationSyntax(keyword, name, path, assignment, body); + RecoveryFlags suppressionFlag = ifCondition is IfConditionSyntax ifConditionSyntax && ifConditionSyntax.ConditionExpression is SkippedTriviaSyntax + ? RecoveryFlags.SuppressDiagnostics + : GetSuppressionFlag(ifCondition ?? assignment); + + var body = this.WithRecovery(this.Object, suppressionFlag, TokenType.NewLine); + + return new ModuleDeclarationSyntax(keyword, name, path, assignment, ifCondition, body); } private Token? NewLineOrEof() @@ -418,8 +454,8 @@ private SyntaxBase FunctionCallOrVariableAccess(bool allowComplexLiterals) /// Method that gets a function call identifier, its arguments plus open and close parens /// private (IdentifierSyntax Identifier, Token OpenParen, IEnumerable ArgumentNodes, Token CloseParen) FunctionCallAccess(IdentifierSyntax functionName, bool allowComplexLiterals) - { - var openParen = this.Expect(TokenType.LeftParen, b => b.ExpectedCharacter("(")); + { + var openParen = this.Expect(TokenType.LeftParen, b => b.ExpectedCharacter("(")); var argumentNodes = FunctionCallArguments(allowComplexLiterals); @@ -597,7 +633,7 @@ private SyntaxBase InterpolableString() // Things start to get hairy to build the string if we return an uneven number of tokens and expressions. // Rather than trying to add two expression nodes, combine them. - var combined = new [] { interpExpression, skippedSyntax }; + var combined = new[] { interpExpression, skippedSyntax }; interpExpression = new SkippedTriviaSyntax(TextSpan.Between(combined.First(), combined.Last()), combined, Enumerable.Empty()); } @@ -722,17 +758,18 @@ private SyntaxBase Array() // if newline token is returned, we must not expect another (could be beginning of a new item) if (itemOrToken is ArrayItemSyntax) { - if (Check(TokenType.Comma)) { + if (Check(TokenType.Comma)) + { var token = this.reader.Read(); var skippedSyntax = new SkippedTriviaSyntax( - token.Span, - token.AsEnumerable(), + token.Span, + token.AsEnumerable(), DiagnosticBuilder.ForPosition(token.Span).UnexpectedCommaSeparator().AsEnumerable() ); itemsOrTokens.Add(skippedSyntax); - } - - // items must be followed by newlines + } + + // items must be followed by newlines var newLine = this.WithRecoveryNullable(this.NewLineOrEof, RecoveryFlags.ConsumeTerminator, TokenType.NewLine); if (newLine != null) { @@ -784,11 +821,12 @@ private ObjectSyntax Object() // if newline token is returned, we must not expect another (could be beginning of a new property) if (propertyOrToken is ObjectPropertySyntax) { - if (Check(TokenType.Comma)) { + if (Check(TokenType.Comma)) + { var token = this.reader.Read(); var skippedSyntax = new SkippedTriviaSyntax( - token.Span, - token.AsEnumerable(), + token.Span, + token.AsEnumerable(), DiagnosticBuilder.ForPosition(token.Span).UnexpectedCommaSeparator().AsEnumerable() ); propertiesOrTokens.Add(skippedSyntax); @@ -839,6 +877,14 @@ private SyntaxBase ObjectProperty() }, RecoveryFlags.None, TokenType.NewLine); } + private SyntaxBase IfCondition() + { + var keyword = this.ExpectKeyword(LanguageConstants.IfKeyword); + var conditionExpression = this.WithRecovery(() => this.ParenthesizedExpression(true), RecoveryFlags.None, TokenType.LeftBrace, TokenType.NewLine); + + return new IfConditionSyntax(keyword, conditionExpression); + } + private SyntaxBase WithRecovery(Func syntaxFunc, RecoveryFlags flags, params TokenType[] terminatingTypes) where TSyntax : SyntaxBase { diff --git a/src/Bicep.Core/PrettyPrint/DocumentBuildVisitor.cs b/src/Bicep.Core/PrettyPrint/DocumentBuildVisitor.cs index dd1dc2a4ca3..b1cbb1e0042 100644 --- a/src/Bicep.Core/PrettyPrint/DocumentBuildVisitor.cs +++ b/src/Bicep.Core/PrettyPrint/DocumentBuildVisitor.cs @@ -28,7 +28,7 @@ public class DocumentBuildVisitor : SyntaxVisitor private static readonly ILinkedDocument DoubleLine = new NestDocument(0, Line); private static readonly ImmutableDictionary CommonTextCache = - LanguageConstants.DeclarationKeywords + LanguageConstants.ContextualKeywords .Concat(LanguageConstants.Keywords.Keys) .Concat(new[] { "(", ")", "[", "]", "{", "}", "=", ":", "+", "-", "*", "/", "!" }) .Concat(new[] { "name", "properties", "string", "bool", "int", "array", "object" }) diff --git a/src/Bicep.Core/Semantics/DeclarationVisitor.cs b/src/Bicep.Core/Semantics/DeclarationVisitor.cs index 8d6d5775325..74cc2e1d7fb 100644 --- a/src/Bicep.Core/Semantics/DeclarationVisitor.cs +++ b/src/Bicep.Core/Semantics/DeclarationVisitor.cs @@ -37,7 +37,7 @@ public override void VisitResourceDeclarationSyntax(ResourceDeclarationSyntax sy { base.VisitResourceDeclarationSyntax(syntax); - var symbol = new ResourceSymbol(this.context, syntax.Name.IdentifierName, syntax, syntax.Body); + var symbol = new ResourceSymbol(this.context, syntax.Name.IdentifierName, syntax); this.declaredSymbols.Add(symbol); } diff --git a/src/Bicep.Core/Semantics/NameBindingVisitor.cs b/src/Bicep.Core/Semantics/NameBindingVisitor.cs index 7e3a074b06a..4ce6b522680 100644 --- a/src/Bicep.Core/Semantics/NameBindingVisitor.cs +++ b/src/Bicep.Core/Semantics/NameBindingVisitor.cs @@ -52,15 +52,27 @@ public override void VisitVariableAccessSyntax(VariableAccessSyntax syntax) public override void VisitResourceDeclarationSyntax(ResourceDeclarationSyntax syntax) { + this.Visit(syntax.Keyword); + this.Visit(syntax.Name); + this.Visit(syntax.Type); + this.Visit(syntax.Assignment); + allowedFlags = FunctionFlags.Default; + this.Visit(syntax.IfCondition); allowedFlags = FunctionFlags.RequiresInlining; - base.VisitResourceDeclarationSyntax(syntax); + this.Visit(syntax.Body); allowedFlags = FunctionFlags.Default; } public override void VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax) { + this.Visit(syntax.Keyword); + this.Visit(syntax.Name); + this.Visit(syntax.Path); + this.Visit(syntax.Assignment); + allowedFlags = FunctionFlags.Default; + this.Visit(syntax.IfCondition); allowedFlags = FunctionFlags.RequiresInlining; - base.VisitModuleDeclarationSyntax(syntax); + this.Visit(syntax.Body); allowedFlags = FunctionFlags.Default; } diff --git a/src/Bicep.Core/Semantics/ResourceSymbol.cs b/src/Bicep.Core/Semantics/ResourceSymbol.cs index 5e8a97d8796..7118ae9b4dd 100644 --- a/src/Bicep.Core/Semantics/ResourceSymbol.cs +++ b/src/Bicep.Core/Semantics/ResourceSymbol.cs @@ -1,23 +1,19 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Generic; -using Bicep.Core.Diagnostics; using Bicep.Core.Syntax; -using Bicep.Core.TypeSystem; namespace Bicep.Core.Semantics { public class ResourceSymbol : DeclaredSymbol { - public ResourceSymbol(ISymbolContext context, string name, ResourceDeclarationSyntax declaringSyntax, SyntaxBase body) + public ResourceSymbol(ISymbolContext context, string name, ResourceDeclarationSyntax declaringSyntax) : base(context, name, declaringSyntax, declaringSyntax.Name) { - this.Body = body; } public ResourceDeclarationSyntax DeclaringResource => (ResourceDeclarationSyntax) this.DeclaringSyntax; - public SyntaxBase Body { get; } public override void Accept(SymbolVisitor visitor) => visitor.VisitResourceSymbol(this); diff --git a/src/Bicep.Core/Semantics/SymbolValidator.cs b/src/Bicep.Core/Semantics/SymbolValidator.cs index 6a58a8389a9..6c1e594b52e 100644 --- a/src/Bicep.Core/Semantics/SymbolValidator.cs +++ b/src/Bicep.Core/Semantics/SymbolValidator.cs @@ -12,7 +12,7 @@ namespace Bicep.Core.Semantics { - public class SymbolValidator + public static class SymbolValidator { private delegate IEnumerable GetNameSuggestions(); private delegate ErrorDiagnostic GetMissingNameError(DiagnosticBuilder.DiagnosticBuilderInternal builder, string? suggestedName); diff --git a/src/Bicep.Core/Syntax/ISyntaxVisitor.cs b/src/Bicep.Core/Syntax/ISyntaxVisitor.cs index d03efea8322..8938333017d 100644 --- a/src/Bicep.Core/Syntax/ISyntaxVisitor.cs +++ b/src/Bicep.Core/Syntax/ISyntaxVisitor.cs @@ -67,5 +67,7 @@ public interface ISyntaxVisitor void VisitVariableAccessSyntax(VariableAccessSyntax syntax); void VisitVariableDeclarationSyntax(VariableDeclarationSyntax syntax); + + void VisitIfConditionSyntax(IfConditionSyntax syntax); } } diff --git a/src/Bicep.Core/Syntax/IfConditionSyntax.cs b/src/Bicep.Core/Syntax/IfConditionSyntax.cs new file mode 100644 index 00000000000..37271555695 --- /dev/null +++ b/src/Bicep.Core/Syntax/IfConditionSyntax.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +using Bicep.Core.Parsing; + +namespace Bicep.Core.Syntax +{ + public class IfConditionSyntax : SyntaxBase + { + public IfConditionSyntax(Token keyword, SyntaxBase conditionExpression) + { + AssertKeyword(keyword, nameof(keyword), LanguageConstants.IfKeyword); + AssertSyntaxType(conditionExpression, nameof(conditionExpression), typeof(ParenthesizedExpressionSyntax), typeof(SkippedTriviaSyntax)); + + this.Keyword = keyword; + this.ConditionExpression = conditionExpression; + } + + public Token Keyword { get; } + + public SyntaxBase ConditionExpression { get; } + + public override TextSpan Span => TextSpan.Between(this.Keyword, this.ConditionExpression); + + public override void Accept(ISyntaxVisitor visitor) => visitor.VisitIfConditionSyntax(this); + } +} diff --git a/src/Bicep.Core/Syntax/ModuleDeclarationSyntax.cs b/src/Bicep.Core/Syntax/ModuleDeclarationSyntax.cs index 5f664a9977c..0e5844f8b74 100644 --- a/src/Bicep.Core/Syntax/ModuleDeclarationSyntax.cs +++ b/src/Bicep.Core/Syntax/ModuleDeclarationSyntax.cs @@ -11,7 +11,7 @@ namespace Bicep.Core.Syntax { public class ModuleDeclarationSyntax : SyntaxBase, INamedDeclarationSyntax { - public ModuleDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBase path, SyntaxBase assignment, SyntaxBase body) + public ModuleDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBase path, SyntaxBase assignment, SyntaxBase? ifExpression, SyntaxBase body) { AssertKeyword(keyword, nameof(keyword), LanguageConstants.ModuleKeyword); AssertSyntaxType(name, nameof(name), typeof(IdentifierSyntax)); @@ -19,12 +19,14 @@ public ModuleDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBase AssertTokenType(keyword, nameof(keyword), TokenType.Identifier); AssertSyntaxType(assignment, nameof(assignment), typeof(Token), typeof(SkippedTriviaSyntax)); AssertTokenType(assignment as Token, nameof(assignment), TokenType.Assignment); + AssertSyntaxType(ifExpression, nameof(ifExpression), typeof(SkippedTriviaSyntax), typeof(IfConditionSyntax)); AssertSyntaxType(body, nameof(body), typeof(SkippedTriviaSyntax), typeof(ObjectSyntax)); this.Keyword = keyword; this.Name = name; this.Path = path; this.Assignment = assignment; + this.IfCondition = ifExpression; this.Body = body; } @@ -36,6 +38,8 @@ public ModuleDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBase public SyntaxBase Assignment { get; } + public SyntaxBase? IfCondition { get; } + public SyntaxBase Body { get; } public override void Accept(ISyntaxVisitor visitor) => visitor.VisitModuleDeclarationSyntax(this); diff --git a/src/Bicep.Core/Syntax/ResourceDeclarationSyntax.cs b/src/Bicep.Core/Syntax/ResourceDeclarationSyntax.cs index f86347b454d..3dde2c9a8ed 100644 --- a/src/Bicep.Core/Syntax/ResourceDeclarationSyntax.cs +++ b/src/Bicep.Core/Syntax/ResourceDeclarationSyntax.cs @@ -11,7 +11,7 @@ namespace Bicep.Core.Syntax { public class ResourceDeclarationSyntax : SyntaxBase, INamedDeclarationSyntax { - public ResourceDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBase type, SyntaxBase assignment, SyntaxBase body) + public ResourceDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBase type, SyntaxBase assignment, SyntaxBase? ifCondition, SyntaxBase body) { AssertKeyword(keyword, nameof(keyword), LanguageConstants.ResourceKeyword); AssertSyntaxType(name, nameof(name), typeof(IdentifierSyntax)); @@ -19,12 +19,14 @@ public ResourceDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBas AssertTokenType(keyword, nameof(keyword), TokenType.Identifier); AssertSyntaxType(assignment, nameof(assignment), typeof(Token), typeof(SkippedTriviaSyntax)); AssertTokenType(assignment as Token, nameof(assignment), TokenType.Assignment); + AssertSyntaxType(ifCondition, nameof(ifCondition), typeof(SkippedTriviaSyntax), typeof(IfConditionSyntax)); AssertSyntaxType(body, nameof(body), typeof(SkippedTriviaSyntax), typeof(ObjectSyntax)); this.Keyword = keyword; this.Name = name; this.Type = type; this.Assignment = assignment; + this.IfCondition = ifCondition; this.Body = body; } @@ -36,6 +38,8 @@ public ResourceDeclarationSyntax(Token keyword, IdentifierSyntax name, SyntaxBas public SyntaxBase Assignment { get; } + public SyntaxBase? IfCondition { get; } + public SyntaxBase Body { get; } public override void Accept(ISyntaxVisitor visitor) => visitor.VisitResourceDeclarationSyntax(this); diff --git a/src/Bicep.Core/Syntax/SyntaxRewriteVisitor.cs b/src/Bicep.Core/Syntax/SyntaxRewriteVisitor.cs index 5b1a15e13c1..91ad6e1f11a 100644 --- a/src/Bicep.Core/Syntax/SyntaxRewriteVisitor.cs +++ b/src/Bicep.Core/Syntax/SyntaxRewriteVisitor.cs @@ -163,6 +163,7 @@ protected virtual ResourceDeclarationSyntax ReplaceResourceDeclarationSyntax(Res hasChanges |= Rewrite(syntax.Name, out var name); hasChanges |= Rewrite(syntax.Type, out var type); hasChanges |= Rewrite(syntax.Assignment, out var assignment); + hasChanges |= RewriteNullable(syntax.IfCondition, out var ifExpression); hasChanges |= Rewrite(syntax.Body, out var body); if (!hasChanges) @@ -170,7 +171,7 @@ protected virtual ResourceDeclarationSyntax ReplaceResourceDeclarationSyntax(Res return syntax; } - return new ResourceDeclarationSyntax(keyword, name, type, assignment, body); + return new ResourceDeclarationSyntax(keyword, name, type, assignment, ifExpression, body); } void ISyntaxVisitor.VisitResourceDeclarationSyntax(ResourceDeclarationSyntax syntax) => ReplaceCurrent(syntax, ReplaceResourceDeclarationSyntax); @@ -180,6 +181,7 @@ protected virtual ModuleDeclarationSyntax ReplaceModuleDeclarationSyntax(ModuleD hasChanges |= Rewrite(syntax.Name, out var name); hasChanges |= Rewrite(syntax.Path, out var path); hasChanges |= Rewrite(syntax.Assignment, out var assignment); + hasChanges |= RewriteNullable(syntax.IfCondition, out var ifExpression); hasChanges |= Rewrite(syntax.Body, out var body); if (!hasChanges) @@ -187,7 +189,7 @@ protected virtual ModuleDeclarationSyntax ReplaceModuleDeclarationSyntax(ModuleD return syntax; } - return new ModuleDeclarationSyntax(keyword, name, path, assignment, body); + return new ModuleDeclarationSyntax(keyword, name, path, assignment, ifExpression, body); } void ISyntaxVisitor.VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax) => ReplaceCurrent(syntax, ReplaceModuleDeclarationSyntax); @@ -530,6 +532,20 @@ protected virtual VariableAccessSyntax ReplaceVariableAccessSyntax(VariableAcces return new VariableAccessSyntax(name); } - void ISyntaxVisitor.VisitVariableAccessSyntax(VariableAccessSyntax syntax) => ReplaceCurrent(syntax, ReplaceVariableAccessSyntax); + void ISyntaxVisitor.VisitVariableAccessSyntax(VariableAccessSyntax syntax) => ReplaceCurrent(syntax, ReplaceVariableAccessSyntax); + + protected virtual IfConditionSyntax ReplaceIfExpressionSyntax(IfConditionSyntax syntax) + { + var hasChanges = Rewrite(syntax.Keyword, out var keyword); + hasChanges |= Rewrite(syntax.ConditionExpression, out var conditionExpression); + + if (!hasChanges) + { + return syntax; + } + + return new IfConditionSyntax(keyword, conditionExpression); + } + void ISyntaxVisitor.VisitIfConditionSyntax(IfConditionSyntax syntax) => ReplaceCurrent(syntax, ReplaceIfExpressionSyntax); } } diff --git a/src/Bicep.Core/Syntax/SyntaxVisitor.cs b/src/Bicep.Core/Syntax/SyntaxVisitor.cs index ce57cd0be17..465aa7bbcd7 100644 --- a/src/Bicep.Core/Syntax/SyntaxVisitor.cs +++ b/src/Bicep.Core/Syntax/SyntaxVisitor.cs @@ -85,6 +85,7 @@ public virtual void VisitResourceDeclarationSyntax(ResourceDeclarationSyntax syn this.Visit(syntax.Name); this.Visit(syntax.Type); this.Visit(syntax.Assignment); + this.Visit(syntax.IfCondition); this.Visit(syntax.Body); } @@ -94,6 +95,7 @@ public virtual void VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax) this.Visit(syntax.Name); this.Visit(syntax.Path); this.Visit(syntax.Assignment); + this.Visit(syntax.IfCondition); this.Visit(syntax.Body); } @@ -181,6 +183,12 @@ public virtual void VisitArrayItemSyntax(ArrayItemSyntax syntax) this.Visit(syntax.Value); } + public virtual void VisitIfConditionSyntax(IfConditionSyntax syntax) + { + this.Visit(syntax.Keyword); + this.Visit(syntax.ConditionExpression); + } + public virtual void VisitTernaryOperationSyntax(TernaryOperationSyntax syntax) { this.Visit(syntax.ConditionExpression); diff --git a/src/Bicep.Core/TypeSystem/DeclaredTypeManager.cs b/src/Bicep.Core/TypeSystem/DeclaredTypeManager.cs index 5cfede768b8..ff05bd8a018 100644 --- a/src/Bicep.Core/TypeSystem/DeclaredTypeManager.cs +++ b/src/Bicep.Core/TypeSystem/DeclaredTypeManager.cs @@ -128,7 +128,7 @@ private DeclaredTypeAssignment GetModuleType(ModuleDeclarationSyntax syntax) // because all variable access nodes are normally bound to something, this should always return true // (if not, the following code handles that gracefully) var symbol = this.binder.GetSymbolInfo(syntax); - + switch (symbol) { case ResourceSymbol resourceSymbol when IsCycleFree(resourceSymbol): @@ -258,6 +258,7 @@ private DeclaredTypeAssignment GetModuleType(ModuleDeclarationSyntax syntax) : new DeclaredTypeAssignment(typeRef, syntax, flags); var parent = this.binder.GetParent(syntax); + if (parent == null) { return null; diff --git a/src/Bicep.Core/TypeSystem/TypeAssignmentVisitor.cs b/src/Bicep.Core/TypeSystem/TypeAssignmentVisitor.cs index cce35c931a6..9d61beb4767 100644 --- a/src/Bicep.Core/TypeSystem/TypeAssignmentVisitor.cs +++ b/src/Bicep.Core/TypeSystem/TypeAssignmentVisitor.cs @@ -134,7 +134,12 @@ public override void VisitResourceDeclarationSyntax(ResourceDeclarationSyntax sy { diagnostics.Write(DiagnosticBuilder.ForPosition(syntax.Type).ResourceTypesUnavailable(resourceType.TypeReference)); } - + + if (syntax.IfCondition is IfConditionSyntax ifConditionSyntax) + { + diagnostics.WriteMultiple(this.ValidateIfCondition(ifConditionSyntax)); + } + return TypeValidator.NarrowTypeAndCollectDiagnostics(typeManager, syntax.Body, declaredType, diagnostics); }); @@ -157,6 +162,11 @@ public override void VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax { diagnostics.Write(DiagnosticBuilder.ForPosition(syntax.Path).ReferencedModuleHasErrors()); } + + if (syntax.IfCondition is IfConditionSyntax ifConditionSyntax) + { + diagnostics.WriteMultiple(this.ValidateIfCondition(ifConditionSyntax)); + } return TypeValidator.NarrowTypeAndCollectDiagnostics(typeManager, syntax.Body, declaredType, diagnostics); }); @@ -966,6 +976,23 @@ private IEnumerable ValidateIdentifierAccess(ParameterDeclarationSyn }, accumulated => accumulated); } + + private IEnumerable ValidateIfCondition(IfConditionSyntax syntax) + { + var conditionType = typeManager.GetTypeInfo(syntax.ConditionExpression); + + if (conditionType is ErrorType) + { + return conditionType.GetDiagnostics(); + } + + if (!TypeValidator.AreTypesAssignable(conditionType, LanguageConstants.Bool)) + { + return DiagnosticBuilder.ForPosition(syntax.ConditionExpression).ValueTypeMismatch(LanguageConstants.Bool).AsEnumerable(); + } + + return Enumerable.Empty(); + } private static TypeSymbol UnwrapType(TypeSymbol baseType) => baseType switch diff --git a/src/Bicep.Decompiler/Rewriters/DependsOnRemovalRewriter.cs b/src/Bicep.Decompiler/Rewriters/DependsOnRemovalRewriter.cs index a688ecb95db..dbf93824e9c 100644 --- a/src/Bicep.Decompiler/Rewriters/DependsOnRemovalRewriter.cs +++ b/src/Bicep.Decompiler/Rewriters/DependsOnRemovalRewriter.cs @@ -115,6 +115,7 @@ protected override ResourceDeclarationSyntax ReplaceResourceDeclarationSyntax(Re syntax.Name, syntax.Type, syntax.Assignment, + syntax.IfCondition, replacementBody); } @@ -131,6 +132,7 @@ protected override ModuleDeclarationSyntax ReplaceModuleDeclarationSyntax(Module syntax.Name, syntax.Path, syntax.Assignment, + syntax.IfCondition, replacementBody); } } diff --git a/src/Bicep.Decompiler/Rewriters/ParentChildResourceNameRewriter.cs b/src/Bicep.Decompiler/Rewriters/ParentChildResourceNameRewriter.cs index 07b1a340c8d..0d083459f1b 100644 --- a/src/Bicep.Decompiler/Rewriters/ParentChildResourceNameRewriter.cs +++ b/src/Bicep.Decompiler/Rewriters/ParentChildResourceNameRewriter.cs @@ -109,6 +109,7 @@ protected override ResourceDeclarationSyntax ReplaceResourceDeclarationSyntax(Re syntax.Name, syntax.Type, syntax.Assignment, + syntax.IfCondition, replacementBody); } diff --git a/src/Bicep.Decompiler/TemplateConverter.cs b/src/Bicep.Decompiler/TemplateConverter.cs index 57f98b7ecbf..419123a8bd7 100644 --- a/src/Bicep.Decompiler/TemplateConverter.cs +++ b/src/Bicep.Decompiler/TemplateConverter.cs @@ -807,6 +807,8 @@ private SyntaxBase ParseModule(JObject resource, string typeString, string nameS SyntaxHelpers.CreateIdentifier(identifier), SyntaxHelpers.CreateStringLiteral(filePath), SyntaxHelpers.CreateToken(TokenType.Assignment, "="), + // TODO: implement decompiling condtional deployments. + null, SyntaxHelpers.CreateObject(properties)); } @@ -815,12 +817,14 @@ private SyntaxBase ParseModule(JObject resource, string typeString, string nameS { throw new ConversionFailedException($"Unable to find {resource["name"]}.properties.templateLink.uri for linked template.", resource); } - + return new ModuleDeclarationSyntax( SyntaxHelpers.CreateToken(TokenType.Identifier, "module"), SyntaxHelpers.CreateIdentifier(identifier), GetModuleFilePath(resource, templateLinkString), SyntaxHelpers.CreateToken(TokenType.Assignment, "="), + // TODO: implement decompiling condtional deployments. + null, SyntaxHelpers.CreateObject(properties)); } @@ -903,6 +907,8 @@ public SyntaxBase ParseResource(JObject template, JToken value) SyntaxHelpers.CreateIdentifier(identifier), ParseString($"{typeString}@{apiVersionString}"), SyntaxHelpers.CreateToken(TokenType.Assignment, "="), + // TODO: implement decompiling conditional resources. + null, SyntaxHelpers.CreateObject(topLevelProperties)); } diff --git a/src/Bicep.LangServer/SemanticTokenVisitor.cs b/src/Bicep.LangServer/SemanticTokenVisitor.cs index 31df32ef0d1..97989a33b6e 100644 --- a/src/Bicep.LangServer/SemanticTokenVisitor.cs +++ b/src/Bicep.LangServer/SemanticTokenVisitor.cs @@ -6,7 +6,6 @@ using Bicep.Core; using Bicep.Core.Parsing; using Bicep.Core.Syntax; -using Bicep.LanguageServer.CompilationManager; using Bicep.LanguageServer.Extensions; using OmniSharp.Extensions.LanguageServer.Protocol.Document.Proposals; using OmniSharp.Extensions.LanguageServer.Protocol.Models.Proposals; @@ -173,6 +172,12 @@ public override void VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax base.VisitModuleDeclarationSyntax(syntax); } + public override void VisitIfConditionSyntax(IfConditionSyntax syntax) + { + AddTokenType(syntax.Keyword, SemanticTokenType.Keyword); + base.VisitIfConditionSyntax(syntax); + } + public override void VisitSkippedTriviaSyntax(SkippedTriviaSyntax syntax) { base.VisitSkippedTriviaSyntax(syntax); diff --git a/src/Bicep.Wasm/LanguageHelpers/SemanticTokenVisitor.cs b/src/Bicep.Wasm/LanguageHelpers/SemanticTokenVisitor.cs index ec4658fc856..053a722371d 100644 --- a/src/Bicep.Wasm/LanguageHelpers/SemanticTokenVisitor.cs +++ b/src/Bicep.Wasm/LanguageHelpers/SemanticTokenVisitor.cs @@ -169,6 +169,12 @@ public override void VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax base.VisitModuleDeclarationSyntax(syntax); } + public override void VisitIfConditionSyntax(IfConditionSyntax syntax) + { + AddTokenType(syntax.Keyword, SemanticTokenType.Keyword); + base.VisitIfConditionSyntax(syntax); + } + public override void VisitSkippedTriviaSyntax(SkippedTriviaSyntax syntax) { base.VisitSkippedTriviaSyntax(syntax);