TPromise => Promise
This commit is contained in:
parent
f13c8d1eab
commit
5e12e53497
4 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ export interface IFileService {
|
|||
/**
|
||||
* Tries to activate a provider with the given scheme.
|
||||
*/
|
||||
activateProvider(scheme: string): TPromise<void>;
|
||||
activateProvider(scheme: string): Thenable<void>;
|
||||
|
||||
/**
|
||||
* Checks if this file service can handle the given resource.
|
||||
|
|
|
@ -208,8 +208,8 @@ export class FileService extends Disposable implements IFileService {
|
|||
throw new Error('not implemented');
|
||||
}
|
||||
|
||||
activateProvider(scheme: string): TPromise<void> {
|
||||
return TPromise.wrapError(new Error('not implemented'));
|
||||
activateProvider(scheme: string): Thenable<void> {
|
||||
return Promise.reject(new Error('not implemented'));
|
||||
}
|
||||
|
||||
canHandleResource(resource: uri): boolean {
|
||||
|
|
|
@ -206,7 +206,7 @@ export class RemoteFileService extends FileService {
|
|||
};
|
||||
}
|
||||
|
||||
activateProvider(scheme: string): TPromise<void> {
|
||||
activateProvider(scheme: string): Thenable<void> {
|
||||
return this._extensionService.activateByEvent('onFileSystem:' + scheme);
|
||||
}
|
||||
|
||||
|
|
|
@ -883,7 +883,7 @@ export class TestFileService implements IFileService {
|
|||
}
|
||||
|
||||
activateProvider(_scheme: string) {
|
||||
return TPromise.as(null);
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
|
||||
canHandleResource(resource: URI): boolean {
|
||||
|
|
Loading…
Reference in a new issue