@microsoft/powerquery-language-services 0.11.10 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/lib/powerquery-language-services/inspection/autocomplete/autocompleteItem/autocompleteItemUtils.d.ts +1 -0
  2. package/lib/powerquery-language-services/inspection/autocomplete/autocompleteItem/autocompleteItemUtils.js +25 -0
  3. package/lib/powerquery-language-services/inspection/autocomplete/autocompleteItem/autocompleteItemUtils.js.map +1 -1
  4. package/lib/powerquery-language-services/inspection/scope/scope.d.ts +37 -1
  5. package/lib/powerquery-language-services/inspection/scope/scope.js +100 -1
  6. package/lib/powerquery-language-services/inspection/scope/scope.js.map +1 -1
  7. package/lib/powerquery-language-services/inspection/scope/scopeInspection.js +3 -3
  8. package/lib/powerquery-language-services/inspection/scope/scopeInspection.js.map +1 -1
  9. package/lib/powerquery-language-services/inspection/task.d.ts +1 -1
  10. package/lib/powerquery-language-services/inspection/task.js +2 -2
  11. package/lib/powerquery-language-services/inspection/task.js.map +1 -1
  12. package/lib/powerquery-language-services/inspection/type/inspectType/common.js +4 -3
  13. package/lib/powerquery-language-services/inspection/type/inspectType/common.js.map +1 -1
  14. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeItemAccessExpression.d.ts +4 -0
  15. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeItemAccessExpression.js +94 -0
  16. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeItemAccessExpression.js.map +1 -0
  17. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeNullCoalescingExpression.js +2 -1
  18. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeNullCoalescingExpression.js.map +1 -1
  19. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeRangeExpression.js +1 -7
  20. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeRangeExpression.js.map +1 -1
  21. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeState/inspectTypeStateUtils.js +2 -0
  22. package/lib/powerquery-language-services/inspection/type/inspectType/inspectTypeState/inspectTypeStateUtils.js.map +1 -1
  23. package/lib/powerquery-language-services/inspection/type/task.js +7 -9
  24. package/lib/powerquery-language-services/inspection/type/task.js.map +1 -1
  25. package/lib/powerquery-language-services/inspectionUtils.d.ts +1 -1
  26. package/lib/powerquery-language-services/inspectionUtils.js +10 -4
  27. package/lib/powerquery-language-services/inspectionUtils.js.map +1 -1
  28. package/lib/powerquery-language-services/library/libraryDefinitionUtils.js +4 -1
  29. package/lib/powerquery-language-services/library/libraryDefinitionUtils.js.map +1 -1
  30. package/lib/powerquery-language-services/library/librarySymbolUtils.d.ts +4 -3
  31. package/lib/powerquery-language-services/library/librarySymbolUtils.js +34 -8
  32. package/lib/powerquery-language-services/library/librarySymbolUtils.js.map +1 -1
  33. package/lib/powerquery-language-services/library/libraryUtils.js +4 -1
  34. package/lib/powerquery-language-services/library/libraryUtils.js.map +1 -1
  35. package/lib/powerquery-language-services/localization/localization.d.ts +4 -0
  36. package/lib/powerquery-language-services/localization/localization.js +4 -0
  37. package/lib/powerquery-language-services/localization/localization.js.map +1 -1
  38. package/lib/powerquery-language-services/localization/templates/templates.bg-BG.json +5 -1
  39. package/lib/powerquery-language-services/localization/templates/templates.ca-ES.json +5 -1
  40. package/lib/powerquery-language-services/localization/templates/templates.cs-CZ.json +5 -1
  41. package/lib/powerquery-language-services/localization/templates/templates.da-DK.json +5 -1
  42. package/lib/powerquery-language-services/localization/templates/templates.de-DE.json +5 -1
  43. package/lib/powerquery-language-services/localization/templates/templates.el-GR.json +5 -1
  44. package/lib/powerquery-language-services/localization/templates/templates.es-ES.json +5 -1
  45. package/lib/powerquery-language-services/localization/templates/templates.et-EE.json +5 -1
  46. package/lib/powerquery-language-services/localization/templates/templates.eu-ES.json +5 -1
  47. package/lib/powerquery-language-services/localization/templates/templates.fi-FI.json +5 -1
  48. package/lib/powerquery-language-services/localization/templates/templates.fr-FR.json +5 -1
  49. package/lib/powerquery-language-services/localization/templates/templates.gl-ES.json +5 -1
  50. package/lib/powerquery-language-services/localization/templates/templates.hi-IN.json +5 -1
  51. package/lib/powerquery-language-services/localization/templates/templates.hr-HR.json +5 -1
  52. package/lib/powerquery-language-services/localization/templates/templates.hu-HU.json +5 -1
  53. package/lib/powerquery-language-services/localization/templates/templates.id-ID.json +5 -1
  54. package/lib/powerquery-language-services/localization/templates/templates.it-IT.json +5 -1
  55. package/lib/powerquery-language-services/localization/templates/templates.ja-JP.json +5 -1
  56. package/lib/powerquery-language-services/localization/templates/templates.json +9 -1
  57. package/lib/powerquery-language-services/localization/templates/templates.kk-KZ.json +5 -1
  58. package/lib/powerquery-language-services/localization/templates/templates.ko-KR.json +5 -1
  59. package/lib/powerquery-language-services/localization/templates/templates.lt-LT.json +5 -1
  60. package/lib/powerquery-language-services/localization/templates/templates.lv-LV.json +5 -1
  61. package/lib/powerquery-language-services/localization/templates/templates.ms-MY.json +5 -1
  62. package/lib/powerquery-language-services/localization/templates/templates.nb-NO.json +5 -1
  63. package/lib/powerquery-language-services/localization/templates/templates.nl-NL.json +5 -1
  64. package/lib/powerquery-language-services/localization/templates/templates.pl-PL.json +5 -1
  65. package/lib/powerquery-language-services/localization/templates/templates.pt-BR.json +5 -1
  66. package/lib/powerquery-language-services/localization/templates/templates.pt-PT.json +5 -1
  67. package/lib/powerquery-language-services/localization/templates/templates.ro-RO.json +5 -1
  68. package/lib/powerquery-language-services/localization/templates/templates.ru-RU.json +5 -1
  69. package/lib/powerquery-language-services/localization/templates/templates.sk-SK.json +5 -1
  70. package/lib/powerquery-language-services/localization/templates/templates.sl-SI.json +5 -1
  71. package/lib/powerquery-language-services/localization/templates/templates.sr-Cyrl-RS.json +5 -1
  72. package/lib/powerquery-language-services/localization/templates/templates.sr-Latn-RS.json +5 -1
  73. package/lib/powerquery-language-services/localization/templates/templates.sv-SE.json +5 -1
  74. package/lib/powerquery-language-services/localization/templates/templates.th-TH.json +5 -1
  75. package/lib/powerquery-language-services/localization/templates/templates.tr-TR.json +5 -1
  76. package/lib/powerquery-language-services/localization/templates/templates.uk-UA.json +5 -1
  77. package/lib/powerquery-language-services/localization/templates/templates.vi-VN.json +5 -1
  78. package/lib/powerquery-language-services/localization/templates/templates.zh-CN.json +5 -1
  79. package/lib/powerquery-language-services/localization/templates/templates.zh-TW.json +5 -1
  80. package/lib/powerquery-language-services/localization/templates.d.ts +4 -0
  81. package/lib/powerquery-language-services/localization/templates.js +1 -1
  82. package/lib/powerquery-language-services/localization/templates.js.map +1 -1
  83. package/lib/powerquery-language-services/providers/languageCompletionItemProvider.d.ts +2 -0
  84. package/lib/powerquery-language-services/providers/languageCompletionItemProvider.js +16 -1
  85. package/lib/powerquery-language-services/providers/languageCompletionItemProvider.js.map +1 -1
  86. package/lib/powerquery-language-services/providers/localDocumentProvider/localDocumentProvider.d.ts +1 -1
  87. package/lib/powerquery-language-services/providers/localDocumentProvider/localDocumentProvider.js +4 -5
  88. package/lib/powerquery-language-services/providers/localDocumentProvider/localDocumentProvider.js.map +1 -1
  89. package/lib/powerquery-language-services/validate/validateUnknownIdentifiers.js +11 -4
  90. package/lib/powerquery-language-services/validate/validateUnknownIdentifiers.js.map +1 -1
  91. package/package.json +4 -8
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}' s'attendait à ce que l'argument pour '{argName}' soit '{expected}', mais a obtenu '{actual}' à la place.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Désolé... L’argument du paramètre '{argName}' devait être '{expected}', mais nous avons obtenu '{actual}' à la place.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Impossible de trouver le nom '{identifier}'. Vouliez-vous dire '{suggestion}' ?"
11
+ "error_validation_unknownIdentifier_suggestion": "Impossible de trouver le nom '{identifier}'. Vouliez-vous dire '{suggestion}' ?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "“{funcName}” esperaba que o argumento para “{argName}” fose “{expected}”, mais recibiu “{actual}”.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Esperábase que o argumento para “{argName}” fose “{expected}”, mais recibiu “{actual}”.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Non se pode atopar o nome '{identificador}', querías dicir '{suxestión}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Non se pode atopar o nome '{identificador}', querías dicir '{suxestión}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}' ने '{argName}' के लिए '{expected}' तर्क की अपेक्षा की थी, लेकिन उसकी बजाय '{actual}' मिला.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "{argName} के लिए {expected} तर्क की अपेक्षा थी, लेकिन उसके बजाय {actual} मिला.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "'{identifier}' नाम नहीं मिला, क्या आपका मतलब '{suggestion}' था?"
11
+ "error_validation_unknownIdentifier_suggestion": "'{identifier}' नाम नहीं मिला, क्या आपका मतलब '{suggestion}' था?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}' je očekivao da će argument za '{argName}' biti '{expected}', ali je umjesto toga dobio '{actual}'.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Očekivao da će argument za '{argName}' biti '{expected}', ali je umjesto dobio '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Nije moguće pronaći naziv '{identifier}', jeste li mislili '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Nije moguće pronaći naziv '{identifier}', jeste li mislili '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "A(z) {funcName} a(z) {expected} argumentumot várta ehhez: {argName}, de helyette {actual} argumentumot kapott.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "A rendszer várta ehhez: {argName} az argumentumot, így: {expected}, de ehelyett ezt: {actual} kapta.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "A(z) „{identifier}“ név nem található. Erre gondolt: „{suggestion}“?"
11
+ "error_validation_unknownIdentifier_suggestion": "A(z) „{identifier}“ név nem található. Erre gondolt: „{suggestion}“?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}' mengharapkan argumen untuk '{argName}' adalah '{expected}', namun mendapatkan '{actual}' sebagai gantinya.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Argumen yang diharapkan untuk '{argName}' adalah '{expected}', namun yang didapatkan adalah '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Tidak dapat menemukan nama '{identifier}', apakah maksud Anda '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Tidak dapat menemukan nama '{identifier}', apakah maksud Anda '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "' {funcName} prevedeva che l'argomento per ' {argName}' fosse ' {expected}', ma è stato ottenuto ' {actual}'.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "L'argomento per ' {argName}' prevedeva che fosse ' {expected}', ma è stato ottenuto ' {actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Impossibile trovare il nome '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Il nome '{identifier}' non è stato trovato. Si intendeva '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Il nome '{identifier}' non è stato trovato. Si intendeva '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName} は '{argName}' の引数が '{expected}' であることを期待していましたが、代わりに '{actual}' を取得しました。",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "'{argName}' の引数が '{expected}' であることを期待していましたが、代わりに '{actual}' を取得しました。",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "名前 '{identifier}' が見つかりません。'{suggestion}' のことですか?"
11
+ "error_validation_unknownIdentifier_suggestion": "名前 '{identifier}' が見つかりません。'{suggestion}' のことですか?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -16,5 +16,13 @@
16
16
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
17
17
  "_error_validation_unknownIdentifier_noSuggestion.comment": "An error when an unknown variable is referenced. Expected to be user facing.",
18
18
  "error_validation_unknownIdentifier_suggestion": "Cannot find the name '{identifier}', did you mean '{suggestion}'?",
19
- "_error_validation_unknownIdentifier_suggestion.comment": "An error when an unknown variable is referenced, but a similarly named variable is in scope. Expected to be user facing."
19
+ "_error_validation_unknownIdentifier_suggestion.comment": "An error when an unknown variable is referenced, but a similarly named variable is in scope. Expected to be user facing.",
20
+ "parameterDocumentation_default": "Default: `{value}`",
21
+ "_parameterDocumentation_default.comment": "Label shown in parameter documentation indicating the default value. The {value} placeholder is the actual default. Expected to be user facing.",
22
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
23
+ "_parameterDocumentation_allowedValues.comment": "Label shown in parameter documentation listing the allowed values. The {values} placeholder is a comma-separated list. Expected to be user facing.",
24
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
25
+ "_parameterDocumentation_sampleValues.comment": "Label shown in parameter documentation listing sample values. The {values} placeholder is a comma-separated list. Expected to be user facing.",
26
+ "parameterDocumentation_type": "Type: `{type}`",
27
+ "_parameterDocumentation_type.comment": "Label shown in parameter documentation indicating the type. The {type} placeholder is the type name. Expected to be user facing."
20
28
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "\"{funcName}\" функциясы үшін \"{argName}\" аргументінің мәні \"{expected}\" болып күтілген, бірақ \"{actual}\" мәні болып шыққан.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "'{argName}' параметрінің аргументі '{expected}' болып күтілген, бірақ аргументі '{actual}' болып шыққан.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "«{identifier}» деген атауды табу мүмкін емес.",
11
- "error_validation_unknownIdentifier_suggestion": "\"{identifier}\" атауын табу мүмкін емес. Сіз \"{suggestion}\" деп енгізгіңіз келді ме?"
11
+ "error_validation_unknownIdentifier_suggestion": "\"{identifier}\" атауын табу мүмкін емес. Сіз \"{suggestion}\" деп енгізгіңіз келді ме?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}'에서는 '{argName}'에 대한 인수를 '{expected}'(으)로 예상했지만 대신 '{actual}'을(를) 받았습니다.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "'{argName}'에 대한 인수가 '{expected}'일 것으로 예상되었지만 대신 '{actual}'이(가) 수신되었습니다.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "이름 '{identifier}'을(를) 찾을 수 없습니다. '{suggestion}'을(를) 의미했나요?"
11
+ "error_validation_unknownIdentifier_suggestion": "이름 '{identifier}'을(를) 찾을 수 없습니다. '{suggestion}'을(를) 의미했나요?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "„{funcName}“ numatomas „{argName}“ argumentas turėtų būti „{expected}“, tačiau gautas „{actual}“.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Tikėtasi, kad argumentas, skirtas „{argName}“, bus „{expected}“, tačiau gautas „{actual}“.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Nepavyksta rasti pavadinimo „{identifier}“.",
11
- "error_validation_unknownIdentifier_suggestion": "Nepavyko rasti pavadinimo „{identifier}“. Ar turėjote omenyje „{suggestion}“?"
11
+ "error_validation_unknownIdentifier_suggestion": "Nepavyko rasti pavadinimo „{identifier}“. Ar turėjote omenyje „{suggestion}“?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Funkcijā {funcName} bija paredzēts, ka būs arguments {argName} ar vērtību {expected}, bet tā vietā bija {actual}.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Bija paredzēts, ka būs arguments {argName} ar vērtību {expected}, bet tā vietā bija {actual}.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Nevar atrast nosaukumu \"{identifier}\". Vai domājāt \"{suggestion}\"?"
11
+ "error_validation_unknownIdentifier_suggestion": "Nevar atrast nosaukumu \"{identifier}\". Vai domājāt \"{suggestion}\"?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}' menjangkakan argumen untuk '{argName}' ialah '{expected}', tetapi sebaliknya mendapat '{actual}'.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Menjangkakan argumen untuk '{argName}' ialah '{expected}', tetapi sebaliknya mendapat '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Tidak menemui nama '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Tidak menemui nama '{identifier}', adakah anda maksudkan '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Tidak menemui nama '{identifier}', adakah anda maksudkan '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "{funcName} forventet at argumentet for {argName} var {expected}, men fikk {actual} i stedet.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Forventet at argumentet {argName} skulle være {expected}, men fikk {actual} i stedet.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Finner ikke navnet {identifier}.",
11
- "error_validation_unknownIdentifier_suggestion": "Finner ikke navnet '{identifier}'. Mente du '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Finner ikke navnet '{identifier}'. Mente du '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName} verwachtte dat het argument voor '{argName}' '{expected}' zou zijn, maar kreeg in plaats daarvan '{actual}'.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Verwachtte dat het argument voor '{argName}' '{expected}' zou zijn, maar kreeg in plaats daarvan '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Kan de naam {identifier} niet vinden. Bedoelt u {suggestion}?"
11
+ "error_validation_unknownIdentifier_suggestion": "Kan de naam {identifier} niet vinden. Bedoelt u {suggestion}?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Element „{funcName}” oczekiwał, że argument „{argName}” będzie miał wartość „{expected}”, ale zamiast tego uzyskano wartość „{actual}”.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Oczekiwano argumentu „{argName}” na „{expected}”, ale zamiast tego otrzymano „{actual}”.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Nie można odnaleźć nazwy „{identifier}“. Czy chodziło Ci o „{suggestion}“?"
11
+ "error_validation_unknownIdentifier_suggestion": "Nie można odnaleźć nazwy „{identifier}“. Czy chodziło Ci o „{suggestion}“?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}' esperava que o argumento para '{argName}' fosse '{expected}', mas obteve '{actual}' em vez disso.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Esperava que o argumento para '{argName}' fosse '{expected}', mas, em vez disso, obteve '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Não é possível localizar o nome '{identifier}', você quis dizer '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Não é possível localizar o nome '{identifier}', você quis dizer '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Esperava-se que o argumento de \"{funcName}\" \"{argName}\" fosse \"{expected}\", mas foi \"{actual}\".",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Esperava que o argumento para '{argName}' fosse '{expectativo}', mas em vez disso obteve '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Não é possível encontrar o nome \"{identifier}\", queria dizer \"{suggestion}\"?"
11
+ "error_validation_unknownIdentifier_suggestion": "Não é possível encontrar o nome \"{identifier}\", queria dizer \"{suggestion}\"?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "„{funcName}” se aștepta ca argumentul pentru „{argName}” să fie „{expected}”, dar a primit în schimb „{actual}”.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Se aștepta ca argumentul pentru „{argName}” să fie „{expected}”, dar s-a primit în schimb „{actual}”.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Nu se poate găsi numele „{identifier}”, ați vrut să vă referiți la „{suggestion}”?"
11
+ "error_validation_unknownIdentifier_suggestion": "Nu se poate găsi numele „{identifier}”, ați vrut să vă referiți la „{suggestion}”?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Для функции \"{funcName}' ожидалось значение \"{expected}\" аргумента \"{argName}\", но было получено значение \"{actual}\".",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Ожидалось, что аргументом для \"{argName}\" будет \"{expected}\", однако вместо этого получен аргумент \"{actual}\".",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Не удается найти имя \"{identifier}\". Вы имели в виду \"{suggestion}\"?"
11
+ "error_validation_unknownIdentifier_suggestion": "Не удается найти имя \"{identifier}\". Вы имели в виду \"{suggestion}\"?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Funkcia '{funcName}' očakávala, že argument '{argName}' bude '{expected}', ale namiesto toho sa vrátila hodnota '{actual}'.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Očakávalo sa, že argument '{argName}' bude '{expected}', ale namiesto toho sa vrátila hodnota '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Nepodarilo sa nájsť názov {identifier}.",
11
- "error_validation_unknownIdentifier_suggestion": "Nepodarilo sa nájsť názov {identifier}, mali ste na mysli {suggestion}?"
11
+ "error_validation_unknownIdentifier_suggestion": "Nepodarilo sa nájsť názov {identifier}, mali ste na mysli {suggestion}?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Za funkcijo »{funcName}« je bil za argument »{argName}« pričakovan parameter »{expected}«, vendar je bil namesto tega uporabljen parameter »{actual}«.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Za argument »{argName}« je bil pričakovan parameter »{expected}«, vendar je bil namesto tega uporabljen parameter »{actual}«.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Imena '{identifier}' ni mogoče najti.",
11
- "error_validation_unknownIdentifier_suggestion": "Imena '{identifier}' ni mogoče najti. Ali ste mislili '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Imena '{identifier}' ni mogoče najti. Ali ste mislili '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Функција '{funcName}' очекује аргумент за '{argName}' који треба да буде '{expected}', али је уместо дога добијен '{actual}'.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Очекивани аргумент за '{argName}' који треба да буде '{expected}', али је уместо тога добијен '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Није могуће пронаћи име '{identifier}', да ли сте мислили на '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Није могуће пронаћи име '{identifier}', да ли сте мислили на '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Funkcija '{funcName}' očekuje argument za '{argName}' koji treba da bude '{expected}', ali je umesto doga dobijen '{actual}'.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Očekivani argument za '{argName}' koji treba da bude '{expected}', ali je umesto toga dobijen '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Nije moguće pronaći ime „{identifier}“.",
11
- "error_validation_unknownIdentifier_suggestion": "Nije moguće pronaći ime „{identifier}“, da li ste mislili na „{suggestion}“?"
11
+ "error_validation_unknownIdentifier_suggestion": "Nije moguće pronaći ime „{identifier}“, da li ste mislili na „{suggestion}“?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "{funcName} förväntade att argumentet för {argName} ska vara {expected}, men ha {actual} i stället.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Förväntade att argumentet för {argName} ska vara {expected}, men ha {actual} i stället.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Det gick inte att hitta namnet {identifier}, menar du {suggestion}?"
11
+ "error_validation_unknownIdentifier_suggestion": "Det gick inte att hitta namnet {identifier}, menar du {suggestion}?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}' ต้องการอาร์กิวเมนต์สําหรับ '{argName}' เป็น '{expected}' แต่ได้รับ '{actual}' แทน",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "ต้องการอาร์กิวเมนต์สำหรับ '{argName}‘ เป็น '{expected}' แต่ได้ '{actual}' แทน",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "ไม่พบชื่อ '{identifier}' คุณหมายถึง '{suggestion}' ใช่หรือไม่"
11
+ "error_validation_unknownIdentifier_suggestion": "ไม่พบชื่อ '{identifier}' คุณหมายถึง '{suggestion}' ใช่หรือไม่",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName}, '{argName}' bağımsız değişkeninin '{expected}' olmasını bekliyordu, ancak bunun yerine '{actual}' alındı.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "'{argName}' bağımsız değişkeninin' {expected}' olması bekleniyordu, ancak bunun yerine '{actual}' alındı.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "'{identifier}' adı bulunamıyor.",
11
- "error_validation_unknownIdentifier_suggestion": "'{identifier}' adı bulunamıyor. Şunu mu demek istediniz: '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "'{identifier}' adı bulunamıyor. Şunu mu demek istediniz: '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "Функція «{funcName}» очікувала, що аргумент для «{argName}» матиме значення «{expected}», але натомість він має значення «{actual}».",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Очікувалося, що аргумент для \"{argName}\" матиме значення \"{expected}\", але натомість він має значення \"{actual}\".",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Не вдалося знайти ім’я '{identifier}'. Можливо, ви мали на увазі '{suggestion}'?"
11
+ "error_validation_unknownIdentifier_suggestion": "Не вдалося знайти ім’я '{identifier}'. Можливо, ви мали на увазі '{suggestion}'?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "“{funcName}” dự kiến đối số cho “{argName}” sẽ là “{expected}” nhưng thay vào đó lại là “{actual}”.",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "Dự kiến tham đối cho '{argName}' sẽ là '{expected}' nhưng thay vào đó lại là '{actual}'.",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "Không thể tìm thấy tên '{identifier}', ý bạn là '{suggestion}' phải không?"
11
+ "error_validation_unknownIdentifier_suggestion": "Không thể tìm thấy tên '{identifier}', ý bạn là '{suggestion}' phải không?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "“{funcName}” 需要 “{argName}” 的参数为 “{expected}”,但实际获得的却是 “{actual}”。",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "\"{argName}\" 的参数应为 \"{expected}\",但实际获得的却是 \"{actual}\"。",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "找不到名称“{identifier}”。",
11
- "error_validation_unknownIdentifier_suggestion": "找不到名称“{identifier}”,你是否指的是“{suggestion}”?"
11
+ "error_validation_unknownIdentifier_suggestion": "找不到名称“{identifier}”,你是否指的是“{suggestion}”?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -8,5 +8,9 @@
8
8
  "error_validation_invokeExpression_typeMismatch_named": "'{funcName} 預期 '{argName}' 的引數為 '{expected}',但卻得到 '{actual}'。",
9
9
  "error_validation_invokeExpression_typeMismatch_unnamed": "預期 '{argName}' 的引數為 '{expected}',但卻得到 '{actual}'。",
10
10
  "error_validation_unknownIdentifier_noSuggestion": "Cannot find the name '{identifier}'.",
11
- "error_validation_unknownIdentifier_suggestion": "找不到名稱 '{identifier}',您指的是 '{suggestion}' 嗎?"
11
+ "error_validation_unknownIdentifier_suggestion": "找不到名稱 '{identifier}',您指的是 '{suggestion}' 嗎?",
12
+ "parameterDocumentation_default": "Default: `{value}`",
13
+ "parameterDocumentation_allowedValues": "Allowed values: {values}",
14
+ "parameterDocumentation_sampleValues": "Sample values: {values}",
15
+ "parameterDocumentation_type": "Type: `{type}`"
12
16
  }
@@ -51,5 +51,9 @@ export interface ILocalizationTemplates {
51
51
  readonly error_validation_invokeExpression_numArgs: string;
52
52
  readonly error_validation_unknownIdentifier_noSuggestion: string;
53
53
  readonly error_validation_unknownIdentifier_suggestion: string;
54
+ readonly parameterDocumentation_default: string;
55
+ readonly parameterDocumentation_allowedValues: string;
56
+ readonly parameterDocumentation_sampleValues: string;
57
+ readonly parameterDocumentation_type: string;
54
58
  }
55
59
  export declare const DefaultTemplates: ILocalizationTemplates;
@@ -121,7 +121,7 @@ const zh_TW = __importStar(require("./templates/templates.zh-TW.json"));
121
121
  exports.zh_TW = zh_TW;
122
122
  exports.TemplatesByLocale = new Map([
123
123
  [PQP.Locale.bg_BG.toLowerCase(), bg_BG],
124
- [PQP.Locale.ca_EZ.toLowerCase(), ca_ES],
124
+ [PQP.Locale.ca_ES.toLowerCase(), ca_ES],
125
125
  [PQP.Locale.cs_CZ.toLowerCase(), cs_CZ],
126
126
  [PQP.Locale.da_DK.toLowerCase(), da_DK],
127
127
  [PQP.Locale.de_DE.toLowerCase(), de_DE],
@@ -1 +1 @@
1
- {"version":3,"file":"templates.js","sourceRoot":"","sources":["../../../src/powerquery-language-services/localization/templates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;AAEpD,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,kEAAoD;AA4ChD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;AA4CtD,sBAAK;AA3CT,wEAA0D;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,EAAE,EAAE,KAAK,CAAC;IACvC,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,CAAC;CAC1C,CAAC,CAAC;AAiBU,QAAA,gBAAgB,GAA2B,KAAK,CAAC"}
@@ -3,10 +3,12 @@ import { AutocompleteItemProviderContext, IAutocompleteItemProvider } from "./co
3
3
  import { Inspection } from "..";
4
4
  export declare class LanguageAutocompleteItemProvider implements IAutocompleteItemProvider {
5
5
  private static readonly ExcludedKeywords;
6
+ private static readonly SnippetKeywords;
6
7
  protected readonly locale: string;
7
8
  constructor(locale: string);
8
9
  getAutocompleteItems(context: AutocompleteItemProviderContext): Promise<Result<Inspection.AutocompleteItem[] | undefined, CommonError.CommonError>>;
9
10
  private getKeywords;
11
+ private getSnippets;
10
12
  private getLanguageConstants;
11
13
  private getPrimitiveTypes;
12
14
  }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.LanguageAutocompleteItemProvider = void 0;
6
6
  const powerquery_parser_1 = require("@microsoft/powerquery-parser");
7
7
  const keyword_1 = require("@microsoft/powerquery-parser/lib/powerquery-parser/language/keyword/keyword");
8
+ const autocompleteItem_1 = require("../inspection/autocomplete/autocompleteItem");
8
9
  const trace_1 = require("../trace");
9
10
  class LanguageAutocompleteItemProvider {
10
11
  // Power Query defines constructor functions (ex. #table()) as keywords, but we want
@@ -22,6 +23,13 @@ class LanguageAutocompleteItemProvider {
22
23
  keyword_1.KeywordKind.HashTable,
23
24
  keyword_1.KeywordKind.HashTime,
24
25
  ];
26
+ // Keywords that have corresponding snippet completions
27
+ static SnippetKeywords = new Set([
28
+ keyword_1.KeywordKind.Let,
29
+ keyword_1.KeywordKind.If,
30
+ keyword_1.KeywordKind.Try,
31
+ keyword_1.KeywordKind.Each,
32
+ ]);
25
33
  locale;
26
34
  constructor(locale) {
27
35
  this.locale = locale;
@@ -32,8 +40,10 @@ class LanguageAutocompleteItemProvider {
32
40
  const trace = context.traceManager.entry(trace_1.ProviderTraceConstant.LanguageCompletionProvider, this.getAutocompleteItems.name, context.initialCorrelationId);
33
41
  context.cancellationToken?.throwIfCancelled();
34
42
  const autocomplete = context.autocomplete;
43
+ const keywords = this.getKeywords(autocomplete.triedKeyword, context.cancellationToken);
35
44
  const autocompleteItems = [
36
- ...this.getKeywords(autocomplete.triedKeyword, context.cancellationToken),
45
+ ...keywords,
46
+ ...this.getSnippets(keywords),
37
47
  ...this.getLanguageConstants(autocomplete.triedLanguageConstant, context.cancellationToken),
38
48
  ...this.getPrimitiveTypes(autocomplete.triedPrimitiveType, context.cancellationToken),
39
49
  ];
@@ -48,6 +58,11 @@ class LanguageAutocompleteItemProvider {
48
58
  }
49
59
  return triedKeywordAutocomplete.value.filter((autocompleteItem) => LanguageAutocompleteItemProvider.ExcludedKeywords.includes(autocompleteItem.label) === false);
50
60
  }
61
+ // Include snippet completions when relevant keywords (let, if, try, each) are in the keyword results.
62
+ getSnippets(keywords) {
63
+ const hasSnippetKeyword = keywords.some((item) => LanguageAutocompleteItemProvider.SnippetKeywords.has(item.label));
64
+ return hasSnippetKeyword ? autocompleteItem_1.AutocompleteItemUtils.createSnippetItems() : [];
65
+ }
51
66
  getLanguageConstants(triedLanguageConstantAutocomplete, cancellationToken) {
52
67
  cancellationToken?.throwIfCancelled();
53
68
  return powerquery_parser_1.ResultUtils.isOk(triedLanguageConstantAutocomplete) ? triedLanguageConstantAutocomplete.value : [];
@@ -1 +1 @@
1
- {"version":3,"file":"languageCompletionItemProvider.js","sourceRoot":"","sources":["../../../src/powerquery-language-services/providers/languageCompletionItemProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,oEAAoG;AACpG,yGAA0G;AAK1G,oCAAiD;AAEjD,MAAa,gCAAgC;IACzC,oFAAoF;IACpF,qDAAqD;IAC7C,MAAM,CAAU,gBAAgB,GAA0B;QAC9D,qBAAW,CAAC,UAAU;QACtB,qBAAW,CAAC,QAAQ;QACp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E,CAAC;QAEtC,IAAI,+BAAW,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,CAAC;YAChD,OAAO,EAAE,CAAC;QACd,CAAC;QAED,OAAO,wBAAwB,CAAC,KAAK,CAAC,MAAM,CACxC,CAAC,gBAA6C,EAAE,EAAE,CAC9C,gCAAgC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,KAAK,CACnG,CAAC;IACN,CAAC;IAEO,oBAAoB,CACxB,iCAA+E,EAC/E,iBAAiD;QAEjD,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;QAEtC,OAAO,+BAAW,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC,iCAAiC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9G,CAAC;IAEO,iBAAiB,CACrB,8BAAyE,EACzE,iBAAiD;QAEjD,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;QAEtC,OAAO,+BAAW,CAAC,IAAI,CAAC,8BAA8B,CAAC,IAAI,8BAA8B,CAAC,KAAK;YAC3F,CAAC,CAAC,8BAA8B,CAAC,KAAK;YACtC,CAAC,CAAC,EAAE,CAAC;IACb,CAAC;;AApFL,4EAqFC"}
1
+ {"version":3,"file":"languageCompletionItemProvider.js","sourceRoot":"","sources":["../../../src/powerquery-language-services/providers/languageCompletionItemProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,oEAAoG;AACpG,yGAA0G;AAI1G,kFAAoF;AAEpF,oCAAiD;AAEjD,MAAa,gCAAgC;IACzC,oFAAoF;IACpF,qDAAqD;IAC7C,MAAM,CAAU,gBAAgB,GAA0B;QAC9D,qBAAW,CAAC,UAAU;QACtB,qBAAW,CAAC,QAAQ;QACpB,qBAAW,CAAC,YAAY;QACxB,qBAAW,CAAC,gBAAgB;QAC5B,qBAAW,CAAC,YAAY;QACxB,qBAAW,CAAC,YAAY;QACxB,qBAAW,CA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,4EA8GC"}
@@ -16,6 +16,6 @@ export declare class LocalDocumentProvider implements ILocalDocumentProvider {
16
16
  getPartialSemanticTokens(context: SemanticTokenProviderContext): Promise<Result<PartialSemanticToken[] | undefined, CommonError.CommonError>>;
17
17
  getSignatureHelp(context: SignatureProviderContext): Promise<Result<SignatureHelp | undefined, CommonError.CommonError>>;
18
18
  protected getHoverForIdentifierPairedExpression(context: HoverProviderContext, correlationId: number): Promise<Hover | undefined>;
19
- protected getHoverForScopeItem(context: HoverProviderContext, nodeScope: Inspection.NodeScope, scopeType: Inspection.ScopeTypeByKey, correlationId: number): Hover | undefined;
19
+ protected getHoverForScopeItem(context: HoverProviderContext, nodeScope: Inspection.NodeScope, scopeType: Inspection.ScopeTypeByKey, correlationId: number): Promise<Hover | undefined>;
20
20
  private getAutocompleteItemsFromFieldAccess;
21
21
  }
@@ -58,13 +58,12 @@ class LocalDocumentProvider {
58
58
  this.locale = locale;
59
59
  }
60
60
  getAutocompleteItems(context) {
61
- // eslint-disable-next-line require-await
62
61
  return powerquery_parser_1.ResultUtils.ensureResultAsync(async () => {
63
62
  const trace = context.traceManager.entry(trace_1.ProviderTraceConstant.LocalDocumentSymbolProvider, this.getAutocompleteItems.name, context.initialCorrelationId);
64
63
  context.cancellationToken?.throwIfCancelled();
65
64
  const autocompleteItems = [
66
65
  ...this.getAutocompleteItemsFromFieldAccess(context.autocomplete),
67
- ].concat(InspectionUtils.getAutocompleteItemsFromScope(context));
66
+ ].concat(await InspectionUtils.getAutocompleteItemsFromScope(context));
68
67
  trace.exit();
69
68
  return autocompleteItems;
70
69
  }, this.locale);
@@ -123,7 +122,7 @@ class LocalDocumentProvider {
123
122
  trace.exit({ inspectionError: true });
124
123
  return undefined;
125
124
  }
126
- hover = this.getHoverForScopeItem(context, triedNodeScope.value, triedScopeType.value, trace.id);
125
+ hover = await this.getHoverForScopeItem(context, triedNodeScope.value, triedScopeType.value, trace.id);
127
126
  trace.exit();
128
127
  return hover ?? undefined;
129
128
  }, this.locale);
@@ -247,14 +246,14 @@ class LocalDocumentProvider {
247
246
  trace.exit();
248
247
  return result;
249
248
  }
250
- getHoverForScopeItem(context, nodeScope, scopeType, correlationId) {
249
+ async getHoverForScopeItem(context, nodeScope, scopeType, correlationId) {
251
250
  const identifierLiteral = context.identifier.literal;
252
251
  const scopeItem = nodeScope.scopeItemByKey.get(identifierLiteral);
253
252
  if (scopeItem === undefined || scopeItem.kind === __1.Inspection.ScopeItemKind.Undefined) {
254
253
  return undefined;
255
254
  }
256
255
  const scopeItemText = InspectionUtils.getScopeItemKindText(scopeItem.kind);
257
- const scopeItemType = scopeType.get(identifierLiteral);
256
+ const scopeItemType = await scopeType.resolveType(identifierLiteral);
258
257
  const scopeItemTypeText = scopeItemType !== undefined
259
258
  ? language_1.TypeUtils.nameOf(scopeItemType, context.traceManager, correlationId)
260
259
  : "unknown";