initial proposed SCM api

This commit is contained in:
Joao Moreno
2016-11-22 11:02:08 +01:00
parent 3407c06a91
commit f4ae41f9b3
2 changed files with 33 additions and 0 deletions

View File

@@ -358,6 +358,13 @@ export function createApiFactory(initData: IInitData, threadService: IThreadServ
}
};
// namespace: scm
const scm: typeof vscode.scm = {
createSCMProvider: (id, delegate): vscode.SCMProvider => {
throw new Error('JOAO not implemented');
}
};
return {
version: pkg.version,
// namespaces
@@ -367,6 +374,7 @@ export function createApiFactory(initData: IInitData, threadService: IThreadServ
languages,
window,
workspace,
scm,
// types
CancellationTokenSource: CancellationTokenSource,
CodeLens: extHostTypes.CodeLens,