question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Insert Snippet" from command panel does not work when language mode is Azure Resource Manager Template

See original GitHub issue
  1. Open an azuredeploy.json with a valid template, so that the language is set to Azure Resource Manager Template (or manually set the language mode)
  2. CTRL-SHIFT-P -> “Insert Snippet”

The list of available snippets is blank: image

Reproduce on 0.11 and 0.12. 0.10 seems to be working correctly (shown below): image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
StephenWeatherfordcommented, Sep 4, 2020

If the description wasn’t being filtered by at all, I’m confused as to how arm-vm-windows-diagnostics was prompted by “extension” in 0.12 🤔.

I already had the name in the filter text, just not the description. Name is “Windows VM Diagnostics Extension”

I tried adding the name to the label directly, but it’s too busy. We’ll close for now, given the fix for description, and see if anyone else comments on it. Thanks again!

0reactions
tobz1000commented, Sep 4, 2020

BTW, have you seen the “Insert Item…” context menu?

I hadn’t! Good to know about it as another option.

1a) Add a “browse…” to the completions list which would bring up a dialog similar to that from VS Code

If this opened a larger snippet-like panel, I would welcome it - but I suppose others might feel it’s superfluous.

1b) Show the snippet description instead of the prefix I hesitated to do that since some users might be used to the previous prefixes, but I’m inclined to change it (I could still add the prefixes to the filter search)

I agree that it would be best to keep the short names visible for the same reason - and additionally, it allows people to learn shortcuts for resources etc. that they frequently use.

Personally not convinced this one makes a difference. You can type “virtualne” or even “vn” and intellisense finds “virtual network”.

You’re probably right, I just have to get used to not typing spaces for fuzzy search.

I’ve added the description to the filter text so this should work in the next version.

If the description wasn’t being filtered by at all, I’m confused as to how arm-vm-windows-diagnostics was prompted by “extension” in 0.12 🤔.

Regardless, that sounds great; thanks for helping me out, I trust whatever you decide is best. Feel free to close now, or leave it open if you plan to make an additional related change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quickstart: Troubleshoot ARM template JSON deployments
This quickstart describes how to troubleshoot Azure Resource Manager template (ARM template) JSON deployment errors.
Read more >
Troubleshoot common Azure deployment errors
Error code Mitigation More inform... AccountNameInvalid Follow naming guidelines for storage accounts. Resolve erro... AccountPropertyCannotBeSet Check available storage account properties. storageAcco... AnotherOperationInProgress Wait for concurrent operation...
Read more >
Deploy to App Service using Azure Pipelines - Microsoft Learn
Learn how to deploy your code to Azure App Service from a CI/CD pipeline with Azure Pipelines.
Read more >
Tutorial - add parameters to template - Azure Resource Manager
You need to have Visual Studio Code installed and working with the Azure Resource Manager Tools extension, and either Azure PowerShell or Azure ......
Read more >
Tasks in Visual Studio Code
Integrate with External Tools via Tasks. Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found