mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
🎨 fix scm api based on @jrieken's recommendations
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import { Emitter } from 'vs/base/common/event';
|
||||
import { Emitter, mapEvent } from 'vs/base/common/event';
|
||||
import { TrieMap } from 'vs/base/common/map';
|
||||
import { score } from 'vs/editor/common/modes/languageSelector';
|
||||
import * as Platform from 'vs/base/common/platform';
|
||||
@@ -451,6 +451,11 @@ export function createApiFactory(initData: IInitData, threadService: IThreadServ
|
||||
return extHostSCM.onDidChangeActiveProvider;
|
||||
}
|
||||
|
||||
@proposed(extension)
|
||||
get onDidAcceptInputValue() {
|
||||
return mapEvent(extHostSCM.inputBox.onDidAccept, () => extHostSCM.inputBox);
|
||||
}
|
||||
|
||||
@proposed(extension)
|
||||
get inputBox() {
|
||||
return extHostSCM.inputBox;
|
||||
|
||||
Reference in New Issue
Block a user