This repo contains core client SDK file and TypeScript declare files needed for developing Visual Studio Online Extensions.
VSS.SDK.js enables an extension to communicate to host to perform operations like initializing, notifying extension is loaded or getting context about the current page on the host.
npm install vss-sdk
bower install vss-sdk
Next step is initializing the extension using two options below:
// InitializeVSS;// Register callback to get called when initial handshake completedVSS;
// Initialize with explicitNotifyLoaded set to trueVSS;// Perform some async operation here;
Full API reference of VSS.SDK.js can be found at Core Client SDK page.
tsd install jquery knockout q --save