Skip to content

Commit 2b5b2b1

Browse files
chore(release): 1.1.1 [skip ci]
1 parent 250e850 commit 2b5b2b1

14 files changed

+355
-350
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.1.1](https://github.com/atom-ide-community/atom-ide-base/compare/v1.1.0...v1.1.1) (2020-07-21)
2+
3+
4+
### Bug Fixes
5+
6+
* format ([250e850](https://github.com/atom-ide-community/atom-ide-base/commit/250e85025e7ed05f67b0508fd5b8cf295124240e))
7+
18
# [1.1.0](https://github.com/atom-ide-community/atom-ide-base/compare/v1.0.0...v1.1.0) (2020-07-21)
29

310
### Bug Fixes

dist/busy-signal.d.ts

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,43 @@
1-
// declare module "atom-ide-base" {
2-
export interface BusySignalOptions {
3-
// Can say that a busy signal will only appear when a given file is open.
4-
// Default = `null`, meaning the busy signal applies to all files.
5-
onlyForFile?: string;
6-
// Is user waiting for computer to finish a task? (traditional busy spinner)
7-
// or is the computer waiting for user to finish a task? (action required)
8-
// Default = spinner.
9-
waitingFor?: "computer" | "user";
10-
// Debounce it? default = `true` for busy-signal, and false for action-required.
11-
debounce?: boolean;
12-
// If `onClick` is set, then the tooltip will be clickable. Default = `null`.
13-
onDidClick?: () => void;
14-
// If set to `true`, the busy signal tooltip will be immediately revealed
15-
// when it first becomes visible (without explicit mouse interaction).
16-
revealTooltip?: boolean;
17-
}
1+
export interface BusySignalOptions {
2+
// Can say that a busy signal will only appear when a given file is open.
3+
// Default = `null`, meaning the busy signal applies to all files.
4+
onlyForFile?: string;
5+
// Is user waiting for computer to finish a task? (traditional busy spinner)
6+
// or is the computer waiting for user to finish a task? (action required)
7+
// Default = spinner.
8+
waitingFor?: "computer" | "user";
9+
// Debounce it? default = `true` for busy-signal, and false for action-required.
10+
debounce?: boolean;
11+
// If `onClick` is set, then the tooltip will be clickable. Default = `null`.
12+
onDidClick?: () => void;
13+
// If set to `true`, the busy signal tooltip will be immediately revealed
14+
// when it first becomes visible (without explicit mouse interaction).
15+
revealTooltip?: boolean;
16+
}
1817

19-
export interface BusySignalService {
20-
// Activates the busy signal with the given title and returns the promise
21-
// from the provided callback.
22-
// The busy signal automatically deactivates when the returned promise
23-
// either resolves or rejects.
24-
reportBusyWhile<T>(
25-
title: string,
26-
f: () => Promise<T>,
27-
options?: BusySignalOptions
28-
): Promise<T>;
18+
export interface BusySignalService {
19+
// Activates the busy signal with the given title and returns the promise
20+
// from the provided callback.
21+
// The busy signal automatically deactivates when the returned promise
22+
// either resolves or rejects.
23+
reportBusyWhile<T>(
24+
title: string,
25+
f: () => Promise<T>,
26+
options?: BusySignalOptions
27+
): Promise<T>;
2928

30-
// Activates the busy signal. Set the title in the returned BusySignal
31-
// object (you can update the title multiple times) and dispose it when done.
32-
reportBusy(title: string, options?: BusySignalOptions): BusyMessage;
29+
// Activates the busy signal. Set the title in the returned BusySignal
30+
// object (you can update the title multiple times) and dispose it when done.
31+
reportBusy(title: string, options?: BusySignalOptions): BusyMessage;
3332

34-
// This is a no-op. When someone consumes the busy service, they get back a
35-
// reference to the single shared instance, so disposing of it would be wrong.
36-
dispose(): void;
37-
}
33+
// This is a no-op. When someone consumes the busy service, they get back a
34+
// reference to the single shared instance, so disposing of it would be wrong.
35+
dispose(): void;
36+
}
3837

39-
export interface BusyMessage {
40-
// You can set/update the title.
41-
setTitle(title: string): void;
42-
// Dispose of the signal when done to make it go away.
43-
dispose(): void;
44-
}
45-
// }
38+
export interface BusyMessage {
39+
// You can set/update the title.
40+
setTitle(title: string): void;
41+
// Dispose of the signal when done to make it go away.
42+
dispose(): void;
43+
}

dist/code-actions.d.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
import * as Atom from "atom";
22
import { Message } from "atom/linter";
33

4-
export interface CodeAction {
5-
apply(): Promise<void>;
6-
getTitle(): Promise<string>;
7-
dispose(): void;
8-
}
4+
export interface CodeAction {
5+
apply(): Promise<void>;
6+
getTitle(): Promise<string>;
7+
dispose(): void;
8+
}
99

10-
export interface CodeActionProvider {
11-
grammarScopes?: ReadonlyArray<string>;
12-
priority: number;
13-
getCodeActions(
14-
editor: Atom.TextEditor,
15-
range: Atom.Range,
16-
diagnostics: Message[]
17-
): Promise<CodeAction[] | null | undefined>;
18-
}
10+
export interface CodeActionProvider {
11+
grammarScopes?: ReadonlyArray<string>;
12+
priority: number;
13+
getCodeActions(
14+
editor: Atom.TextEditor,
15+
range: Atom.Range,
16+
diagnostics: Message[]
17+
): Promise<CodeAction[] | null | undefined>;
18+
}
1919

20-
/**
21-
* atom-ide-base-code-actions provides a CodeActionFetcher which offers an API to
22-
* request CodeActions from all CodeAction providers. For now, CodeActionFetcher
23-
* can only fetch CodeActions for a Diagnostic. In the future, this API can be
24-
* extended to provide a stream of CodeActions based on the cursor position.
25-
*/
26-
export interface CodeActionFetcher {
27-
getCodeActionForDiagnostic: (
28-
diagnostic: Message,
29-
editor: Atom.TextEditor
30-
) => Promise<CodeAction[]>;
31-
}
20+
/**
21+
* atom-ide-base-code-actions provides a CodeActionFetcher which offers an API to
22+
* request CodeActions from all CodeAction providers. For now, CodeActionFetcher
23+
* can only fetch CodeActions for a Diagnostic. In the future, this API can be
24+
* extended to provide a stream of CodeActions based on the cursor position.
25+
*/
26+
export interface CodeActionFetcher {
27+
getCodeActionForDiagnostic: (
28+
diagnostic: Message,
29+
editor: Atom.TextEditor
30+
) => Promise<CodeAction[]>;
31+
}

dist/code-highlight.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as Atom from "atom";
22

3-
export interface CodeHighlightProvider {
4-
priority: number;
5-
grammarScopes: ReadonlyArray<string>;
6-
highlight(
7-
editor: Atom.TextEditor,
8-
bufferPosition: Atom.Point
9-
): Promise<Atom.Range[] | undefined | null>;
10-
}
3+
export interface CodeHighlightProvider {
4+
priority: number;
5+
grammarScopes: ReadonlyArray<string>;
6+
highlight(
7+
editor: Atom.TextEditor,
8+
bufferPosition: Atom.Point
9+
): Promise<Atom.Range[] | undefined | null>;
10+
}

dist/datatip.d.ts

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
11
import * as Atom from "atom";
22

3-
export interface DatatipService {
4-
addProvider(provider: DatatipProvider): Atom.DisposableLike;
5-
addModifierProvider(provider: ModifierDatatipProvider): Atom.DisposableLike;
6-
createPinnedDataTip(
7-
datatip: Datatip,
8-
editor: Atom.TextEditor,
9-
options?: PinnedDatatipOptions
10-
): Atom.DisposableLike;
11-
}
3+
export interface DatatipService {
4+
addProvider(provider: DatatipProvider): Atom.DisposableLike;
5+
addModifierProvider(provider: ModifierDatatipProvider): Atom.DisposableLike;
6+
createPinnedDataTip(
7+
datatip: Datatip,
8+
editor: Atom.TextEditor,
9+
options?: PinnedDatatipOptions
10+
): Atom.DisposableLike;
11+
}
1212

13-
export interface PinnedDatatipOptions {
14-
// Defaults to 'end-of-line'.
15-
position?: PinnedDatatipPosition;
16-
// Defaults to true.
17-
showRangeHighlight?: boolean;
18-
}
13+
export interface PinnedDatatipOptions {
14+
// Defaults to 'end-of-line'.
15+
position?: PinnedDatatipPosition;
16+
// Defaults to true.
17+
showRangeHighlight?: boolean;
18+
}
1919

20-
export type PinnedDatatipPosition = "end-of-line" | "above-range";
20+
export type PinnedDatatipPosition = "end-of-line" | "above-range";
2121

22-
export interface DatatipProvider {
23-
priority: number;
24-
grammarScopes?: ReadonlyArray<string>;
25-
// A unique name for the provider to be used for analytics.
26-
// It is recommended that it be the name of the provider's package.
27-
providerName: string;
28-
datatip(
29-
editor: Atom.TextEditor,
30-
bufferPosition: Atom.Point
31-
): Promise<Datatip | undefined | null>;
32-
}
22+
export interface DatatipProvider {
23+
priority: number;
24+
grammarScopes?: ReadonlyArray<string>;
25+
// A unique name for the provider to be used for analytics.
26+
// It is recommended that it be the name of the provider's package.
27+
providerName: string;
28+
datatip(
29+
editor: Atom.TextEditor,
30+
bufferPosition: Atom.Point
31+
): Promise<Datatip | undefined | null>;
32+
}
3333

34-
export interface ModifierDatatipProvider {
35-
priority: number;
36-
grammarScopes?: string[];
37-
providerName: string;
38-
modifierDatatip(
39-
editor: Atom.TextEditor,
40-
bufferPosition: Atom.Point,
41-
heldKeys: Set<ModifierKey>
42-
): Promise<Datatip | undefined | null>;
43-
}
34+
export interface ModifierDatatipProvider {
35+
priority: number;
36+
grammarScopes?: string[];
37+
providerName: string;
38+
modifierDatatip(
39+
editor: Atom.TextEditor,
40+
bufferPosition: Atom.Point,
41+
heldKeys: Set<ModifierKey>
42+
): Promise<Datatip | undefined | null>;
43+
}
4444

45-
export type AnyDatatipProvider = DatatipProvider | ModifierDatatipProvider;
45+
export type AnyDatatipProvider = DatatipProvider | ModifierDatatipProvider;
4646

47-
export type Datatip =
48-
| {
49-
markedStrings: MarkedString[];
50-
range: Atom.Range;
51-
pinnable?: boolean;
52-
}
53-
| {
54-
component: () => JSX.Element; // React component
55-
range: Atom.Range;
56-
pinnable?: boolean;
57-
};
47+
export type Datatip =
48+
| {
49+
markedStrings: MarkedString[];
50+
range: Atom.Range;
51+
pinnable?: boolean;
52+
}
53+
| {
54+
component: () => JSX.Element; // React component
55+
range: Atom.Range;
56+
pinnable?: boolean;
57+
};
5858

59-
// Borrowed from the LSP API.
60-
export type MarkedString =
61-
| {
62-
type: "markdown";
63-
value: string;
64-
}
65-
| {
66-
type: "snippet";
67-
grammar: Atom.Grammar;
68-
value: string;
69-
};
59+
// Borrowed from the LSP API.
60+
export type MarkedString =
61+
| {
62+
type: "markdown";
63+
value: string;
64+
}
65+
| {
66+
type: "snippet";
67+
grammar: Atom.Grammar;
68+
value: string;
69+
};
7070

71-
export type ModifierKey = "metaKey" | "shiftKey" | "altKey" | "ctrlKey";
71+
export type ModifierKey = "metaKey" | "shiftKey" | "altKey" | "ctrlKey";

0 commit comments

Comments
 (0)