simplify signature of getExtension

上级 dccb6596
......@@ -13470,15 +13470,7 @@ declare module 'vscode' {
* @param extensionId An extension identifier.
* @return An extension or `undefined`.
*/
export function getExtension(extensionId: string): Extension<any> | undefined;
/**
* Get an extension by its full identifier in the form of: `publisher.name`.
*
* @param extensionId An extension identifier.
* @return An extension or `undefined`.
*/
export function getExtension<T>(extensionId: string): Extension<T> | undefined;
export function getExtension<T = any>(extensionId: string): Extension<T> | undefined;
/**
* All extensions currently known to the system.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册