Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual studio code JSON navigator doesn't work for ARM template after installed the ARM template extension. #1599

Open
qingshanJBHIFI opened this issue Jun 22, 2023 · 1 comment

Comments

@qingshanJBHIFI
Copy link

qingshanJBHIFI commented Jun 22, 2023

Based on the vs code doc, Ctrl+Shift+O is used to navigate between properties. But it is not working for ARM template after I installed the extension msazurermtools.azurerm-vscode-tools.
When I pressed Ctrl+Shift+O, it shows The active text editor does not provide symbol information. .
In the OUTLINE section on left navigation panel, it shows No symbols found in document ***.template.json.

After I disable the extension, the JSON navigator works again.

@StephenWeatherford StephenWeatherford added this to the v0.15.11 (July) milestone Jul 10, 2023
@StephenWeatherford StephenWeatherford modified the milestones: v0.15.11 (August), v0.15.13 Jul 25, 2024
@StephenWeatherford StephenWeatherford modified the milestones: v0.15.13, v0.15.14 Nov 8, 2024
@StephenWeatherford
Copy link
Contributor

@qingshanJBHIFI This extension is currently in maintenance mode, and we don't have the resources to fix this issue. However, I can offer a work-around:

First, go to VSCode settings (CTRL+,), and uncheck this setting:

Image

Now when you open an ARM template file, you should be able to change between using the JSON editor and the "Azure Resource Manager Template". See this in the bottom right of the command bar:
Image

Click on "ARM Resource Manager Template" and instead select JSON or JSON with Comments. Now you'll be able to access the file symbols. To use features related to ARM templates specifically (as opposed to JSON-only features), you'll need to switch back to ARM Resource Manager Template.

I realize this isn't perfect, but perhaps it will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants