From 125148e7fd69a2a4648aa8b8776780ecd4d838be Mon Sep 17 00:00:00 2001 From: Igor Rafael de Sousa Date: Sat, 29 Oct 2016 00:57:05 -0400 Subject: [PATCH] Removed call to Observable.cache This method was removed from RxJS-5.0.0 release (ReactiveX/rxjs#2012). Maybe some caching alternative could be implemented later. For now, it needs to be removed to make the library usable again (OmniSharp/omnisharp-atom#880). --- lib/helpers/runtime.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/helpers/runtime.ts b/lib/helpers/runtime.ts index 4099f06..aa75800 100644 --- a/lib/helpers/runtime.ts +++ b/lib/helpers/runtime.ts @@ -257,9 +257,8 @@ export const isSupportedRuntime = memoize(function (ctx: RuntimeContext) { .map(x => ({ runtime: Runtime.ClrOrMono, path: [x.path].concat(PATH).join(delimiter) })) .take(1) .defaultIfEmpty({ runtime: Runtime.CoreClr, path: process.env.PATH }); - }) + }); //.do(ct => console.log(`Supported runtime for "${Runtime[ct.runtime]}" was: ${Runtime[ct.runtime]}`)) - .cache(1); }, function ({platform, arch, runtime, version}: RuntimeContext) { return `${arch}-${platform}:${Runtime[runtime]}:${version}`; }); function findOmnisharpExecuable(runtimeId: string, location: string): Observable {