Skip to content

Commit f59bbc9

Browse files
committed
chore: use MarkdownService and DatatipService type
1 parent 630ada2 commit f59bbc9

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

lib/datatip-manager.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// @ts-check
2-
/// <reference path="../typings/atom-ide.d.ts"/>
32

43
import { CompositeDisposable, Disposable, Range, Point, TextEditor, CursorPositionChangedEventommandEvent } from "atom"
5-
import type { DatatipProvider } from "atom-ide-base"
4+
import type { DatatipProvider, MarkdownService } from "atom-ide-base"
65
import { ViewContainer } from "atom-ide-base/commons-ui/float-pane/ViewContainer"
76
import { getDocumentationHtml } from "atom-ide-base/commons-ui/float-pane/HTMLView"
87
import { getSnippetHtml } from "atom-ide-base/commons-ui/float-pane/SnippetView"
@@ -80,7 +79,7 @@ export class DataTipManager {
8079
this.cursorMoveTimer = null
8180
/**
8281
* a reference to the markdown rendering service
83-
* @type {AtomIDE.MarkdownService}
82+
* @type {MarkdownService}
8483
*/
8584
this.renderer = null
8685

@@ -90,7 +89,7 @@ export class DataTipManager {
9089

9190
/**
9291
* initialization routine retrieving a reference to the markdown service
93-
* @param {AtomIDE.MarkdownService} renderer the markdown rendering service reference
92+
* @param {MarkdownService} renderer the markdown rendering service reference
9493
*/
9594
initialize(renderer) {
9695
this.renderer = renderer

lib/main.js

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

43
import { CompositeDisposable } from "atom"
54
import { DataTipManager } from "./datatip-manager"
5+
import type { DatatipService, MarkdownService } from "atom-ide-base"
66

77
/**
88
* the Atom IDE data tip plugin
@@ -21,7 +21,7 @@ let subscriptions
2121
let datatipManager
2222
/**
2323
* a reference to the markdown rendering service
24-
* @type {AtomIDE.MarkdownService}
24+
* @type {MarkdownService}
2525
*/
2626
let renderer = null
2727

@@ -63,15 +63,15 @@ export function deactivate() {
6363

6464
/**
6565
* called by IDE extensions to retrieve the Datatip service for registration
66-
* @return {AtomIDE.DatatipService} the current DataTipManager instance
66+
* @return { DatatipService } the current DataTipManager instance
6767
*/
6868
export function provideDatatipService() {
6969
return datatipManager.datatipService
7070
}
7171

7272
/**
7373
* retrieves a reference to the markdown rendering service that should be used
74-
* @param {AtomIDE.MarkdownService} markdownService the service for rendering markdown text
74+
* @param {MarkdownService} markdownService the service for rendering markdown text
7575
*/
7676
export function consumeMarkdownRenderer(markdownService) {
7777
renderer = markdownService

0 commit comments

Comments
 (0)