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

The editor doesn't navigate to the definition of the parameter name after pressing F12 in the main.json file #1566

Open
v-xinda opened this issue Mar 16, 2023 · 1 comment

Comments

@v-xinda
Copy link

v-xinda commented Mar 16, 2023

OS: Win10
Build Version: 20230312.2

Repro Steps:

  1. Create a child template with the following contents.
		{
		"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
		"contentVersion": "1.0.0.0",
		"parameters": {
		"int": {
		"type": "string",
		"metadata": {
		"description": "description"
		}
		},
		"intOptional": {
		"type": "int",
		"defaultValue": 123
		},
		"string": {
		"type": "string",
		"metadata": {
		"description": "description"
		}
		},
		"stringOptional": {
		"type": "string",
		"metadata": {
		"description": "description"
		},
		"defaultValue": "hello"
		}
		},
		"functions": [],
		"variables": {},
		"resources": [],
		"outputs": {}
		}

  1. Create a main template with the following contents.
		{
		"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
		"contentVersion": "1.0.0.0",
		"functions": [],
		"variables": {},
		"resources": [
		{
		"name": "linkedDeployment1",
		"type": "Microsoft.Resources/deployments",
		"apiVersion": "2020-06-01",
		"properties": {
		"mode": "Incremental",
		"templateLink": {
		"relativePath": "childTemplate.json",
		"contentVersion": "1.0.0.0"
		},
		"parameters": {
		}
		}
		}
		], 
		"outputs": {}
} 
  1. Add the parameters file to the main template.
  2. Click a parameter -> Press "F12".
  3. Check whether the editor navigates to the definition of the parameter name.

Expect:
The editor navigates to the definition of the parameter name.

Actual:
The editor doesn't navigate to the definition of the parameter name.
Screenshot 2023-03-16 at 17 31 12

@StephenWeatherford
Copy link
Contributor

Not a regression. Looks like it should be pointing to the child.json URI but is pointing to main.json.

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