Skip to content

Commit 980f5e2

Browse files
committed
chore: import OutlineProvider from atom-ide-base
1 parent a617e05 commit 980f5e2

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

lib/auto-languageclient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +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 } from 'atom-ide-base'
67
import * as linter from 'atom/linter';
78
import Convert from './convert.js';
89
import ApplyEditAdapter from './adapters/apply-edit-adapter';
@@ -539,7 +540,7 @@ export default class AutoLanguageClient {
539540
}
540541

541542
// Outline View via LS documentSymbol---------------------------------
542-
public provideOutlines(): atomIde.OutlineProvider {
543+
public provideOutlines(): OutlineProvider {
543544
return {
544545
name: this.name,
545546
grammarScopes: this.getGrammarScopes(),

typings/atom-ide/index.d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +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 OutlineProvider {
6-
name: string;
7-
/**
8-
* If there are multiple providers for a given grammar, the one with the highest priority will be
9-
* used.
10-
*/
11-
priority: number;
12-
grammarScopes: string[];
13-
updateOnEdit?: boolean;
14-
getOutline: (editor: TextEditor) => Promise<Outline | null>;
15-
}
16-
175
export interface OutlineTree {
186
/** from atom$Octicon | atom$OcticonsPrivate (types not allowed over rpc so we use string) */
197
icon?: string;

0 commit comments

Comments
 (0)