当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript winjs.base.TPromise类代码示例

本文整理汇总了TypeScript中vs/base/common/winjs.base.TPromise的典型用法代码示例。如果您正苦于以下问题:TypeScript base.TPromise类的具体用法?TypeScript base.TPromise怎么用?TypeScript base.TPromise使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了base.TPromise类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1:

		}, (err) => {
			this._proxy.$setError(err);

			return TPromise.wrapError(err);
		});
开发者ID:AjuanM,项目名称:vscode,代码行数:5,代码来源:extHostQuickOpen.ts

示例2: stage

	public stage(filePath: string, content: string): TPromise<IRawStatus> {
		return this.raw.then(raw => raw.stage(filePath, content));
	}
开发者ID:BMGburger,项目名称:vscode,代码行数:3,代码来源:rawGitService.ts

示例3: checkout

	public checkout(treeish?: string, filePaths?: string[]): TPromise<IRawStatus> {
		return this.raw.then(raw => raw.checkout(treeish, filePaths));
	}
开发者ID:BMGburger,项目名称:vscode,代码行数:3,代码来源:rawGitService.ts

示例4: serviceState

	public serviceState(): TPromise<RawServiceState> {
		return this.raw.then(raw => raw.serviceState());
	}
开发者ID:BMGburger,项目名称:vscode,代码行数:3,代码来源:rawGitService.ts

示例5: init

	public init(): TPromise<IRawStatus> {
		return this.raw.then(raw => raw.init());
	}
开发者ID:BMGburger,项目名称:vscode,代码行数:3,代码来源:rawGitService.ts

示例6: setInput

	/**
	 * Note: Clients should not call this method, the workbench calls this
	 * method. Calling it otherwise may result in unexpected behavior.
	 *
	 * Sets the given input with the options to the part. An editor has to deal with the
	 * situation that the same input is being set with different options.
	 */
	public setInput(input: EditorInput, options?: EditorOptions): TPromise<void> {
		this._input = input;
		this._options = options;

		return TPromise.wrap<void>(null);
	}
开发者ID:AlexxNica,项目名称:sqlopsstudio,代码行数:13,代码来源:baseEditor.ts

示例7:

			}, (err) => {
				actionInstance.dispose();
				return TPromise.wrapError(err);
			});
开发者ID:BlackstarSoon,项目名称:vscode,代码行数:4,代码来源:actionRegistry.ts

示例8: executeCommand

		executeCommand(id: string, ...args: any[]): TPromise<any> {
			lastCommand = { id, args };
			return TPromise.as(undefined);
		}
开发者ID:StateFarmIns,项目名称:vscode,代码行数:4,代码来源:openerService.test.ts

示例9:

		instantiationService.stub(IExtensionService, {}, 'whenInstalledExtensionsRegistered', () => TPromise.as(null));
开发者ID:burhandodhy,项目名称:azuredatastudio,代码行数:1,代码来源:keybindingsEditorModel.test.ts

示例10:

			getActions: () => TPromise.as(this.actions),
开发者ID:asotog,项目名称:vscode,代码行数:1,代码来源:dropdown.ts


注:本文中的vs/base/common/winjs.base.TPromise类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。