Skip to content

Commit

Permalink
added examples to API
Browse files Browse the repository at this point in the history
  • Loading branch information
a2975667 committed Jul 19, 2020
1 parent ff705bf commit 4abec54
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export interface XMLFileAssociation {
/**
* Interface for APIs exposed from the extension.
*
* @remarks
* A sample code to use these APIs are as following:
* const ext = await vscode.extensions.getExtension('redhat.vscode-xml').activate();
* ext.addXMLCatalogs(...);
* ext.removeXMLCatalogs(...);
* ext.addXMLFileAssociations(...);
* ext.removeXMLFileAssociations(...);
*/
export interface XMLExtensionApi {
/**
Expand Down

0 comments on commit 4abec54

Please sign in to comment.