Skip to content

Commit dd4f4c7

Browse files
authored
Merge pull request #97 from atom-ide-community/atom-ide-base
2 parents fe61eec + b906cac commit dd4f4c7

11 files changed

Lines changed: 667 additions & 9698 deletions

dist/index-3216208f.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/index-3216208f.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/main-7eb87ac7.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

dist/main-7eb87ac7.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/main.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/datatip-manager.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
// @ts-check
22
/// <reference path="../typings/atom-ide.d.ts"/>
33

4-
import { CompositeDisposable, Disposable, Range, Point, TextEditor } from "atom"
5-
import { ProviderRegistry } from "./provider-registry"
4+
import {
5+
CompositeDisposable,
6+
Disposable,
7+
Range,
8+
Point,
9+
TextEditor,
10+
CursorPositionChangedEvent,
11+
CommandEvent,
12+
} from "atom"
13+
import type { DatatipProvider } from "atom-ide-base"
14+
import { ProviderRegistry } from "atom-ide-base/commons-atom/ProviderRegistry"
615
import { DataTipView } from "./datatip-view"
716

817
export class DataTipManager {
@@ -14,12 +23,12 @@ export class DataTipManager {
1423
this.subscriptions = new CompositeDisposable()
1524
/**
1625
* holds a list of registered data tip providers
17-
* @type {ProviderRegistry}
26+
* @type {ProviderRegistry<DatatipProvider>}
1827
*/
1928
this.providerRegistry = new ProviderRegistry()
2029
/**
2130
* holds a weak reference to all watched Atom text editors
22-
* @type {Array<TextEditor>}
31+
* @type {WeakSet<TextEditor>}
2332
*/
2433
this.watchedEditors = new WeakSet()
2534
/**
@@ -138,7 +147,7 @@ export class DataTipManager {
138147

139148
/**
140149
* returns the provider registry as a consumable service
141-
* @return {AtomIDE.DatatipService} [description]
150+
* @return {ProviderRegistry<DatatipProvider>} [description]
142151
*/
143152
get datatipService() {
144153
return this.providerRegistry

lib/datatip-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class DataTipView {
127127
/**
128128
* creates a data tip view component
129129
* @param {any} properties the properties of this data tip view
130-
* @param {Array<JSX.Element>} children potential child nodes of this data tip view
130+
* @param {?Array<JSX.Element>} children potential child nodes of this data tip view
131131
*/
132132
constructor(properties, children) {
133133
this.properties = properties

lib/provider-registry.js

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)