Skip to content

Commit

Permalink
fix: exclude BusySignalProvider | FindReferencesProvider from Provide…
Browse files Browse the repository at this point in the history
…rRegistry
  • Loading branch information
aminya committed Oct 4, 2020
1 parent 31bec4b commit c8a9e11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-commons-atom/ProviderRegistry.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Disposable, TextEditor } from "atom"
import { Provider as ProviderTypes } from "../types-packages/main.d"
import { Provider as ProviderTypes, BusySignalProvider, FindReferencesProvider } from "../types-packages/main.d"

export class ProviderRegistry<Provider extends ProviderTypes> {
export class ProviderRegistry<Provider extends Exclude<ProviderTypes, BusySignalProvider | FindReferencesProvider>> {
private providers: Array<Provider>

constructor() {
Expand Down
2 changes: 2 additions & 0 deletions types-packages/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { CodeActionProvider } from "./code-actions"
import { CodeHighlightProvider } from "./code-highlight"
import { AnyDatatipProvider } from "./datatip"
import { DefinitionProvider } from "./definitions"
import { FindReferencesProvider } from "./find-references"
import { HyperclickProvider } from "./hyperclick"
import { OutlineProvider } from "./outline"
import { SignatureHelpProvider } from "./sig-help"
Expand All @@ -34,6 +35,7 @@ export type Provider =
| CodeHighlightProvider
| AnyDatatipProvider
| DefinitionProvider
| FindReferencesProvider
| HyperclickProvider
| OutlineProvider
| SignatureHelpProvider

0 comments on commit c8a9e11

Please sign in to comment.