|
1 | 1 | /*--------------------------------------------------------------------------------------------- |
2 | | - * Copyright (c) Microsoft Corporation. All rights reserved. |
3 | | - * Licensed under the MIT License. See License.txt in the project root for license information. |
4 | | - *--------------------------------------------------------------------------------------------*/ |
| 2 | +* Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +* Licensed under the MIT License. See License.txt in the project root for license information. |
| 4 | +*--------------------------------------------------------------------------------------------*/ |
5 | 5 |
|
| 6 | +import {debounceTime} from 'rxjs/operators'; |
6 | 7 | import { vscode } from '../vscodeAdapter'; |
7 | 8 | import { BaseEvent, OmnisharpServerOnError, OmnisharpServerMsBuildProjectDiagnostics } from "../omnisharp/loggingEvents"; |
8 | | -import { Scheduler } from 'rxjs/Scheduler'; |
9 | | -import { Subject } from 'rxjs/Subject'; |
10 | | -import 'rxjs/add/operator/debounceTime'; |
| 9 | +import { Scheduler , Subject } from 'rxjs'; |
| 10 | + |
11 | 11 | import showWarningMessage from './utils/ShowWarningMessage'; |
12 | 12 |
|
13 | 13 | export class WarningMessageObserver { |
14 | 14 | private warningMessageDebouncer: Subject<BaseEvent>; |
15 | 15 |
|
16 | 16 | constructor(private vscode: vscode, private disableMsBuildDiagnosticWarning: () => boolean, scheduler?: Scheduler) { |
17 | 17 | this.warningMessageDebouncer = new Subject<BaseEvent>(); |
18 | | - this.warningMessageDebouncer.debounceTime(1500, scheduler).subscribe(async event => { |
| 18 | + this.warningMessageDebouncer.pipe(debounceTime(1500, scheduler)).subscribe(async event => { |
19 | 19 | let message = "Some projects have trouble loading. Please review the output for more details."; |
20 | 20 | await showWarningMessage(this.vscode, message, { title: "Show Output", command: 'o.showOutput' }); |
21 | 21 | }); |
|
0 commit comments