Skip to content

Commit 3f3099e

Browse files
committed
chore: import FindReferencesProvider from atom-ide-base
1 parent 55ca721 commit 3f3099e

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
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, DefinitionProvider, DefinitionQueryResult } from 'atom-ide-base';
6+
import type { OutlineProvider, Outline, DefinitionProvider, DefinitionQueryResult, FindReferencesProvider } 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';
@@ -576,7 +576,7 @@ export default class AutoLanguageClient {
576576
}
577577

578578
// Find References via LS findReferences------------------------------
579-
public provideFindReferences(): atomIde.FindReferencesProvider {
579+
public provideFindReferences(): FindReferencesProvider {
580580
return {
581581
isEditorSupported: (editor: TextEditor) => this.getGrammarScopes().includes(editor.getGrammar().scopeName),
582582
findReferences: this.getReferences.bind(this),

typings/atom-ide/index.d.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ declare module 'atom-ide' {
44

55
export type IdeUri = string;
66

7-
export interface FindReferencesProvider {
8-
/** Return true if your provider supports finding references for the provided TextEditor. */
9-
isEditorSupported(editor: TextEditor): boolean | Promise<boolean>;
10-
11-
/**
12-
* `findReferences` will only be called if `isEditorSupported` previously returned true
13-
* for the given TextEditor.
14-
*/
15-
findReferences(editor: TextEditor, position: Point): Promise<FindReferencesReturn | null>;
16-
}
17-
187
export interface Reference {
198
/** URI of the file path */
209
uri: IdeUri;

0 commit comments

Comments
 (0)