Skip to content

Snippet definitions missing 'description' #16

@abulka

Description

@abulka

This extension's snippet definitions

~/.vscode/extensions/waseemdev.flutter-xml-layout-0.0.31/snippets/dart.json
~/.vscode/extensions/waseemdev.flutter-xml-layout-0.0.31/snippets/xml.json

are missing the required description field in the JSON, which can break some snippet scanners. It should at least be defined and set to an empty string. For example

{
	"fxml_widget": {
		"prefix": "fxml_widget",
		"body": [
			"<${1:My}Page controller=\"${1:My}Controller\">",
			"  <Scaffold>",
			"    <appBar>",
			"      <AppBar>",
			"        <title>",
			"          <Text text=\"'${2:PageTitle}'\" />",
			"        </title>",
			"      </AppBar>",
			"    </appBar>",
			"    <body>",
			"      <Container>",
			"      </Container>",
			"    </body>",
			"  </Scaffold>",
			"</${1:My}Page>"
		]
	}
}

should be

{
	"fxml_widget": {
		"prefix": "fxml_widget",
		"body": [
			"<${1:My}Page controller=\"${1:My}Controller\">",
			"  <Scaffold>",
			"    <appBar>",
			"      <AppBar>",
			"        <title>",
			"          <Text text=\"'${2:PageTitle}'\" />",
			"        </title>",
			"      </AppBar>",
			"    </appBar>",
			"    <body>",
			"      <Container>",
			"      </Container>",
			"    </body>",
			"  </Scaffold>",
			"</${1:My}Page>"
		],
               "description": ""
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions