use nicer syntax for optional methods, #11203

This commit is contained in:
Johannes Rieken
2016-09-02 15:39:42 +02:00
parent a0a62b918b
commit 98d4bd4bdb
+3 -3
View File
@@ -1434,7 +1434,7 @@ declare namespace vscode {
* @return A human readable string which is presented as diagnostic message.
* Return `undefined`, `null`, or the empty string when 'value' is valid.
*/
validateInput?: (value: string) => string;
validateInput?(value: string): string;
}
/**
@@ -1843,7 +1843,7 @@ declare namespace vscode {
* @return The resolved symbol or a thenable that resolves to that. When no result is returned,
* the given `symbol` is used.
*/
resolveWorkspaceSymbol?: (symbol: SymbolInformation, token: CancellationToken) => SymbolInformation | Thenable<SymbolInformation>;
resolveWorkspaceSymbol?(symbol: SymbolInformation, token: CancellationToken): SymbolInformation | Thenable<SymbolInformation>;
}
/**
@@ -2445,7 +2445,7 @@ declare namespace vscode {
* @param link The link that is to be resolved.
* @param token A cancellation token.
*/
resolveDocumentLink?: (link: DocumentLink, token: CancellationToken) => DocumentLink | Thenable<DocumentLink>;
resolveDocumentLink?(link: DocumentLink, token: CancellationToken): DocumentLink | Thenable<DocumentLink>;
}
/**