Skip to content

Commit 3779777

Browse files
committed
chore: import DefinitionProvider from atom-ide-base
1 parent f8b1478 commit 3779777

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

lib/auto-languageclient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as ls from './languageclient';
33
import * as rpc from 'vscode-jsonrpc';
44
import * as path from 'path';
55
import * as atomIde from 'atom-ide';
6-
import type { OutlineProvider, Outline } from 'atom-ide-base'
6+
import type { OutlineProvider, Outline, DefinitionProvider } from 'atom-ide-base';
77
import * as linter from 'atom/linter';
88
import Convert from './convert.js';
99
import ApplyEditAdapter from './adapters/apply-edit-adapter';
@@ -514,7 +514,7 @@ export default class AutoLanguageClient {
514514
protected onDidInsertSuggestion(_arg: ac.SuggestionInsertedEvent): void { }
515515

516516
// Definitions via LS documentHighlight and gotoDefinition------------
517-
public provideDefinitions(): atomIde.DefinitionProvider {
517+
public provideDefinitions(): DefinitionProvider {
518518
return {
519519
name: this.name,
520520
priority: 20,

typings/atom-ide/index.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ declare module 'atom-ide' {
22
import { Disposable, Grammar, Point, Range, TextEditor } from 'atom';
33
import * as ac from 'atom/autocomplete-plus';
44

5-
export interface DefinitionProvider {
6-
name: string;
7-
priority: number;
8-
grammarScopes: string[];
9-
getDefinition: (editor: TextEditor, position: Point) => Promise<DefinitionQueryResult | null>;
10-
}
11-
125
export type IdeUri = string;
136

147
export interface Definition {

0 commit comments

Comments
 (0)