mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
SCM - proposed API to represent parent/child relationship (#256242)
* Add plumbing for parent/child relationship * Fix selected and view height * More clean-up * More fixes related to view height * Dispose submodules and worktrees * Add onDidDisposeParent event
This commit is contained in:
@@ -1270,8 +1270,11 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
|
||||
return extHostSCM.getLastInputBox(extension)!; // Strict null override - Deprecated api
|
||||
},
|
||||
createSourceControl(id: string, label: string, rootUri?: vscode.Uri) {
|
||||
return extHostSCM.createSourceControl(extension, id, label, rootUri);
|
||||
createSourceControl(id: string, label: string, rootUri?: vscode.Uri, parent?: vscode.SourceControl): vscode.SourceControl {
|
||||
if (parent) {
|
||||
checkProposedApiEnabled(extension, 'scmProviderOptions');
|
||||
}
|
||||
return extHostSCM.createSourceControl(extension, id, label, rootUri, parent);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user