From 65bf7cb8553c9a1eb40a53242767c0a255572055 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Fri, 30 Dec 2016 17:18:27 +0100 Subject: [PATCH] make comments docco friendly --- contentprovider-sample/src/provider.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/contentprovider-sample/src/provider.ts b/contentprovider-sample/src/provider.ts index b85fb273..49160d9c 100644 --- a/contentprovider-sample/src/provider.ts +++ b/contentprovider-sample/src/provider.ts @@ -17,8 +17,8 @@ export default class Provider implements vscode.TextDocumentContentProvider, vsc constructor() { - // Listen to the following events: - // * closeTextDocument - which means we must clear the corresponding model object - `ReferencesDocument` + // Listen to the `closeTextDocument`-event which means we must + // clear the corresponding model object - `ReferencesDocument` this._subscriptions = vscode.workspace.onDidCloseTextDocument(doc => this._documents.delete(doc.uri.toString())); } @@ -29,19 +29,15 @@ export default class Provider implements vscode.TextDocumentContentProvider, vsc this._onDidChange.dispose(); } - /** - * Expose an event to signal changes of _virtual_ documents - * to the editor - */ + // Expose an event to signal changes of _virtual_ documents + // to the editor get onDidChange() { return this._onDidChange.event; } - /** - * Provider method that takes an uri of the `references`-scheme and - * resolves its content by (1) running the reference search command - * and (2) formatting the results - */ + // Provider method that takes an uri of the `references`-scheme and + // resolves its content by (1) running the reference search command + // and (2) formatting the results provideTextDocumentContent(uri: vscode.Uri): string | Thenable { // already loaded?