vscode-flutter.xml-layout icon indicating copy to clipboard operation
vscode-flutter.xml-layout copied to clipboard

Snippet definitions missing 'description'

Open abulka opened this issue 4 years ago • 0 comments

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": ""
	}
}

abulka avatar Jul 19 '21 23:07 abulka