diff --git a/index.d.ts b/index.d.ts
deleted file mode 100644
index 96ab2d8f..00000000
--- a/index.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-// atom-ide
-// https://github.com/atom-ide-community/atom-ide-base
-
-declare module "atom-ide-base" {
- ///
- ///
- ///
- ///
- ///
- ///
- ///
- ///
- ///
-}
diff --git a/src/busy-signal.d.ts b/src/busy-signal.d.ts
index bf7ed827..24dea561 100644
--- a/src/busy-signal.d.ts
+++ b/src/busy-signal.d.ts
@@ -1,4 +1,4 @@
-declare module "atom-ide-base" {
+// declare module "atom-ide-base" {
export interface BusySignalOptions {
// Can say that a busy signal will only appear when a given file is open.
// Default = `null`, meaning the busy signal applies to all files.
@@ -42,4 +42,4 @@ declare module "atom-ide-base" {
// Dispose of the signal when done to make it go away.
dispose(): void;
}
-}
+// }
diff --git a/src/code-actions.d.ts b/src/code-actions.d.ts
index bc25751b..96be9a6e 100644
--- a/src/code-actions.d.ts
+++ b/src/code-actions.d.ts
@@ -1,7 +1,6 @@
import * as Atom from "atom";
-import { Message } from "../linter";
+import { Message } from "atom/linter";
-declare module "atom-ide-base" {
export interface CodeAction {
apply(): Promise;
getTitle(): Promise;
@@ -30,4 +29,3 @@ declare module "atom-ide-base" {
editor: Atom.TextEditor
) => Promise;
}
-}
diff --git a/src/code-highlight.d.ts b/src/code-highlight.d.ts
index aafef58d..74e76573 100644
--- a/src/code-highlight.d.ts
+++ b/src/code-highlight.d.ts
@@ -1,6 +1,5 @@
import * as Atom from "atom";
-declare module "atom-ide-base" {
export interface CodeHighlightProvider {
priority: number;
grammarScopes: ReadonlyArray;
@@ -9,4 +8,3 @@ declare module "atom-ide-base" {
bufferPosition: Atom.Point
): Promise;
}
-}
diff --git a/src/datatip.d.ts b/src/datatip.d.ts
index ab65d246..00c66ff9 100644
--- a/src/datatip.d.ts
+++ b/src/datatip.d.ts
@@ -1,6 +1,5 @@
import * as Atom from "atom";
-declare module "atom-ide-base" {
export interface DatatipService {
addProvider(provider: DatatipProvider): Atom.DisposableLike;
addModifierProvider(provider: ModifierDatatipProvider): Atom.DisposableLike;
@@ -70,4 +69,3 @@ declare module "atom-ide-base" {
};
export type ModifierKey = "metaKey" | "shiftKey" | "altKey" | "ctrlKey";
-}
diff --git a/src/definitions.d.ts b/src/definitions.d.ts
index 0e954f61..1b6e2f99 100644
--- a/src/definitions.d.ts
+++ b/src/definitions.d.ts
@@ -1,6 +1,5 @@
import * as Atom from "atom";
-declare module "atom-ide-base" {
export interface Definition {
// Path of the file in which the definition is located.
path: string;
@@ -56,4 +55,3 @@ declare module "atom-ide-base" {
| undefined
>;
}
-}
diff --git a/src/find-references.d.ts b/src/find-references.d.ts
index 1b82e22c..e643b573 100644
--- a/src/find-references.d.ts
+++ b/src/find-references.d.ts
@@ -1,6 +1,5 @@
import * as Atom from "atom";
-declare module "atom-ide-base" {
export interface FindReferencesProvider {
// Return true if your provider supports finding references for the provided Atom.TextEditor.
isEditorSupported(editor: Atom.TextEditor): Promise;
@@ -33,4 +32,3 @@ declare module "atom-ide-base" {
}
export type FindReferencesReturn = FindReferencesData | FindReferencesError;
-}
diff --git a/src/hyperclick.d.ts b/src/hyperclick.d.ts
index b8065697..5c8c30eb 100644
--- a/src/hyperclick.d.ts
+++ b/src/hyperclick.d.ts
@@ -1,6 +1,5 @@
import * as Atom from "atom";
-declare module "atom-ide-base" {
export interface HyperclickProvider {
// Use this to provide a suggestion for single-word matches.
// Optionally set `wordRegExp` to adjust word-matching.
@@ -38,4 +37,3 @@ declare module "atom-ide-base" {
| (() => void)
| Array<{ rightLabel?: string; title: string; callback: () => void }>;
}
-}
diff --git a/src/main.d.ts b/src/main.d.ts
new file mode 100644
index 00000000..5de49f4a
--- /dev/null
+++ b/src/main.d.ts
@@ -0,0 +1,12 @@
+// atom-ide
+// https://github.com/atom-ide-community/atom-ide-base
+
+export * from "./busy-signal"
+export * from "./code-actions"
+export * from "./code-highlight"
+export * from "./datatip"
+export * from "./definitions"
+export * from "./find-references"
+export * from "./hyperclick"
+export * from "./outline"
+export * from "./sig-help"
diff --git a/src/outline.d.ts b/src/outline.d.ts
index 835368f4..499a2e9a 100644
--- a/src/outline.d.ts
+++ b/src/outline.d.ts
@@ -1,6 +1,5 @@
import * as Atom from "atom";
-declare module "atom-ide-base" {
export interface OutlineProvider {
name: string;
// If there are multiple providers for a given grammar, the one with the highest priority will be
@@ -70,4 +69,3 @@ declare module "atom-ide-base" {
}
export type TokenizedText = TextToken[];
-}
diff --git a/src/sig-help.d.ts b/src/sig-help.d.ts
index 05055a4a..421422fc 100644
--- a/src/sig-help.d.ts
+++ b/src/sig-help.d.ts
@@ -1,6 +1,5 @@
import { DisposableLike, Point, TextEditor } from "atom";
-declare module "atom-ide-base" {
export type SignatureHelpRegistry = (
provider: SignatureHelpProvider
) => DisposableLike;
@@ -33,4 +32,3 @@ declare module "atom-ide-base" {
label: string;
documentation?: string;
}
-}
diff --git a/src/tsconfig.json b/src/tsconfig.json
index bc8b52c3..ba02ab03 100644
--- a/src/tsconfig.json
+++ b/src/tsconfig.json
@@ -15,6 +15,7 @@
"experimentalDecorators": true,
"incremental": true,
// "preserveConstEnums": true,
+ "sourceMap": true,
"inlineSourceMap": false,
"inlineSources": true,
"preserveSymlinks": true,