mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
SCM - add proposed API to specify source control provider icons (#256762)
This commit is contained in:
@@ -1273,11 +1273,11 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
return extHostSCM.getLastInputBox(extension)!; // Strict null override - Deprecated api
|
||||
},
|
||||
createSourceControl(id: string, label: string, rootUri?: vscode.Uri, parent?: vscode.SourceControl): vscode.SourceControl {
|
||||
if (parent) {
|
||||
createSourceControl(id: string, label: string, rootUri?: vscode.Uri, iconPath?: vscode.IconPath, parent?: vscode.SourceControl): vscode.SourceControl {
|
||||
if (iconPath || parent) {
|
||||
checkProposedApiEnabled(extension, 'scmProviderOptions');
|
||||
}
|
||||
return extHostSCM.createSourceControl(extension, id, label, rootUri, parent);
|
||||
return extHostSCM.createSourceControl(extension, id, label, rootUri, iconPath, parent);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user