Skip to content

Commit 22957a1

Browse files
authored
Merge pull request #136 from ayame113/add-call-hierarchy2
2 parents 628e7c3 + 3a62827 commit 22957a1

23 files changed

+978
-150
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ Reveal the current cursor in the outline
1212

1313
![reveal cursor](./images/between.png)
1414

15+
Show function call hierarchy (alt-c)
16+
17+
Double-click the function name to go to the definition.
18+
19+
![call hierarchy](./images/call-hierarchy.png)
20+
1521
## Getting started
1622

1723
1. Install `atom-ide-outline` in Atom

dist/main.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { TextEditor } from "atom";
22
import type { OutlineProvider } from "atom-ide-base";
33
import { ProviderRegistry } from "atom-ide-base/commons-atom/ProviderRegistry";
44
export { statuses } from "./statuses";
5+
export { consumeCallHierarchyProvider } from "./call-hierarchy/main";
56
export declare const outlineProviderRegistry: ProviderRegistry<OutlineProvider>;
67
export declare function activate(): void;
78
export declare function deactivate(): void;

dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/utils.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export declare function unique<T extends Record<string, any>>(array: T[]): T[];
2+
export declare function getIcon(iconType: string | undefined, kindTypeGiven: string | undefined): HTMLSpanElement;

images/call-hierarchy.png

77.7 KB
Loading

keymaps/atom-ide-outline.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"atom-workspace": {
3-
"alt-o": "outline:toggle"
3+
"alt-o": "outline:toggle",
4+
"alt-c": "outline:toggle-call-hierarchy"
45
}
56
}

menus/main.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"context-menu": {
3+
"atom-text-editor": [
4+
{
5+
"label": "Show Call Hierarchy",
6+
"command": "outline:toggle-call-hierarchy"
7+
}
8+
]
9+
}
10+
}

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"prettier": "prettier-config-atomic",
3232
"atomTestRunner": "./spec/runner",
3333
"dependencies": {
34-
"atom-ide-base": "^3.1.1",
34+
"atom-ide-base": "^3.3.0",
3535
"fast-equals": "^2.0.3",
3636
"lodash": "^4.17.21",
3737
"zadeh": "^3.0.0-beta.4"
@@ -48,6 +48,7 @@
4848
"prettier-config-atomic": "^2.0.5",
4949
"rollup-plugin-atomic": "^2.3.2",
5050
"shx": "latest",
51+
"tslib": "^2.3.1",
5152
"typescript": "^4.3.4"
5253
},
5354
"activationHooks": [
@@ -59,6 +60,11 @@
5960
"0.1.0": "consumeOutlineProvider"
6061
}
6162
},
63+
"call-hierarchy": {
64+
"versions": {
65+
"0.1.0": "consumeCallHierarchyProvider"
66+
}
67+
},
6268
"busy-signal": {
6369
"versions": {
6470
"1.0.0": "consumeSignal"

0 commit comments

Comments
 (0)