Shanedell commented on code in PR #117:
URL: https://github.com/apache/daffodil-vscode/pull/117#discussion_r883864028
##########
package.json:
##########
@@ -63,24 +75,42 @@
"webpack-cli": "^3.3.12"
},
"main": "./dist/ext/extension.js",
- "browser": "./dist/web/extension.js",
"activationEvents": [
+ "onLanguage:dfdl",
"onDebugResolve:dfdl",
"onDebugDynamicConfigurations:dfdl",
"onCommand:extension.dfdl-debug.getProgramName",
"onCommand:extension.dfdl-debug.getDataName",
"onCommand:extension.dfdl-debug.runEditorContents",
"onCommand:extension.dfdl-debug.debugEditorContents",
- "onCommand:launch.config"
+ "onCommand:launch.config",
+ "onCommand:data.edit",
+ "onCommand:omega_edit.version",
+ "onCommand:toggle.experimental"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
- "snippets": [
+ "languages": [
{
- "language": "xml",
- "path": "./snippets/dfdl.json"
+ "id": "dfdl",
+ "aliases": [
+ "dfdl",
+ "dfdl"
+ ],
+ "extensions": [
+ ".xsd",
+ ".xml"
Review Comment:
Yes that would be best. When we were testing we only allowed for `.dfdl.xsd`
however in some schemas they were using just `.xsd` so the language extension
wouldn't be enabled as well as breakpoints could not be added to these files
causing issues. So create a standard `.dfdl.xsd` and `dfdl.xml` (should infoset
have this extension?) would be good.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]