We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create a command to automatically add imports like:
import JSONModel = sap.ui.model.json.JSONModel;
to the sap.ui.define
Command can be called via autocomplete, too.
The text was updated successfully, but these errors were encountered:
is it like done here? https://marketplace.visualstudio.com/items?itemName=tapsiturbi-publisher.openui5-require
Sorry, something went wrong.
Yes, but not for typescript. Or have you tried it out? Does it work with that extension?
This:
sap.ui.define([ ], function() { Controller.extend("app.controller.pages.FirstPage"); }); namespace app.controller.pages { import Controller = sap.ui.core.mvc.Controller; export class FirstPage extends Controller { onInit() { console.log("Initializing FirstPage Controller"); console.log("Testchange"); } } }
Should become this:
sap.ui.define([ "sap/ui/core/mvc/Controller" ], function(Controller: sap.ui.core.mvc.Controller) { Controller.extend("app.controller.pages.FirstPage"); }); namespace app.controller.pages { import Controller = sap.ui.core.mvc.Controller; export class FirstPage extends Controller { onInit() { console.log("Initializing FirstPage Controller"); console.log("Testchange"); } } }
Based on import bla = blub
import bla = blub
I am not sure, if this extension does the trick for typescript.
No branches or pull requests
Create a command to automatically add imports like:
import JSONModel = sap.ui.model.json.JSONModel;
to the sap.ui.define
Command can be called via autocomplete, too.
The text was updated successfully, but these errors were encountered: