Skip to content

Commit d43c060

Browse files
committed
chore: remove datatip types
1 parent 655e318 commit d43c060

File tree

1 file changed

+1
-43
lines changed

1 file changed

+1
-43
lines changed

typings/atom-ide/index.d.ts

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,9 @@
11
declare module 'atom-ide' {
2-
import { Disposable, Grammar, Point, Range, TextEditor } from 'atom';
2+
import { Disposable, Point, Range, TextEditor } from 'atom';
33
import * as ac from 'atom/autocomplete-plus';
44

55
export type IdeUri = string;
66

7-
export type MarkedString =
8-
| {
9-
type: 'markdown',
10-
value: string,
11-
}
12-
| {
13-
type: 'snippet',
14-
grammar: Grammar,
15-
value: string,
16-
};
17-
18-
// This omits the React variant.
19-
export interface Datatip {
20-
markedStrings: MarkedString[];
21-
range: Range;
22-
pinnable?: boolean;
23-
}
24-
25-
export interface DatatipProvider {
26-
datatip(
27-
editor: TextEditor,
28-
bufferPosition: Point,
29-
/**
30-
* The mouse event that triggered the datatip.
31-
* This is null for manually toggled datatips.
32-
*/
33-
mouseEvent: MouseEvent | null,
34-
): Promise<Datatip | null>;
35-
validForScope(scopeName: string): boolean;
36-
/**
37-
* A unique name for the provider to be used for analytics.
38-
* It is recommended that it be the name of the provider's package.
39-
*/
40-
providerName: string;
41-
priority: number;
42-
grammarScopes: string[];
43-
}
44-
45-
export interface DatatipService {
46-
addProvider(provider: DatatipProvider): Disposable;
47-
}
48-
497
export interface FileCodeFormatProvider {
508
formatEntireFile: (editor: TextEditor, range: Range) => Promise<TextEdit[]>;
519
priority: number;

0 commit comments

Comments
 (0)