Skip to content

Commit f8b1478

Browse files
committed
chore: import TokenKind from atom-ide-base
1 parent e65edf8 commit f8b1478

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

lib/adapters/outline-view-adapter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as atomIde from 'atom-ide';
2-
import type { OutlineTree, Outline } from 'atom-ide-base'
1+
import type { OutlineTree, Outline, TokenKind } from 'atom-ide-base';
32
import Convert from '../convert';
43
import * as Utils from '../utils';
54
import { CancellationTokenSource } from 'vscode-jsonrpc';
@@ -322,7 +321,7 @@ export default class OutlineViewAdapter {
322321
* @param symbol The numeric symbol kind received from the language server.
323322
* @returns A string representing the equivalent syntax token kind.
324323
*/
325-
public static symbolKindToTokenKind(symbol: number): atomIde.TokenKind {
324+
public static symbolKindToTokenKind(symbol: number): TokenKind {
326325
switch (symbol) {
327326
case SymbolKind.Class:
328327
return 'type';

typings/atom-ide/index.d.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +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 type TokenKind =
6-
| 'keyword'
7-
| 'class-name'
8-
| 'constructor'
9-
| 'method'
10-
| 'param'
11-
| 'string'
12-
| 'whitespace'
13-
| 'plain'
14-
| 'type';
15-
16-
export interface TextToken {
17-
kind: TokenKind;
18-
value: string;
19-
}
20-
21-
export type TokenizedText = TextToken[];
22-
235
export interface DefinitionProvider {
246
name: string;
257
priority: number;

0 commit comments

Comments
 (0)