-
Notifications
You must be signed in to change notification settings - Fork 114
Jump To Definition #348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thecoolwinter
merged 52 commits into
CodeEditApp:main
from
thecoolwinter:jump-to-definition
Aug 18, 2025
Merged
Jump To Definition #348
Changes from 51 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
36b86c4
Updates
FastestMolasses 99a839a
Merge branch 'main' into itembox
FastestMolasses a143144
ItemBox updates
FastestMolasses 32a7756
Small update
FastestMolasses 924d86f
Small update
FastestMolasses 9947256
Moved code from TextView, added more functionality to delegate
FastestMolasses afc302e
Small updates
FastestMolasses 93de69a
Merge branch 'main' into itembox
FastestMolasses d1a4604
Replaced CompletionItem type
FastestMolasses 92f1216
Merge branch 'main' into itembox
FastestMolasses e307e0d
Merge branch 'main' into itembox
thecoolwinter 843303e
Fix Typo & Warnings
thecoolwinter bca0e02
Merge branch 'main' into itembox
FastestMolasses 3ee6962
Merge branch 'main' into itembox
thecoolwinter 46a7d67
AutoCompleteCoordinator
FastestMolasses c9f1d9e
Remove comment
FastestMolasses a5bcf89
Fix error
FastestMolasses fefc805
Refactor Suggestion Window
thecoolwinter f1df981
Resolve Cursors Method, Show Completions On CMD
thecoolwinter af114f9
Add `codeSuggestionTriggerCharacters`
thecoolwinter 933c7a2
Add Mock Completion Delegate To Example
thecoolwinter af0059e
Remove Unused Variables
thecoolwinter 76a0206
Theme the window
thecoolwinter 1033aef
Merge branch 'main' into itembox
thecoolwinter 1629154
First Iteration
thecoolwinter 0a0b10a
Move Suggestion UI Into CodeEditSourceEditor
thecoolwinter 058e165
Remove Unused Method
thecoolwinter 4000b67
Make Model Conform To CodeSuggestionDelegate
thecoolwinter a49de0c
Merge branch 'itembox' into jump-to-definition
thecoolwinter de90bbc
Finish `JumpToDefinitionModel`
thecoolwinter 64115de
Use Default Window Background Color
thecoolwinter 5a27645
fix:lint
thecoolwinter acea895
Finish Delegate Methods, Add Mock For Example
thecoolwinter 22cb5be
fix:lint
thecoolwinter e00a49d
Round Window Corners, Adjust Origin When Above Cursor
thecoolwinter 3135931
Hide Suggestion Window When Escaped
thecoolwinter a678f18
Ignore Cursor Change When Request In Progress
thecoolwinter ac1b50c
Update Conformances
thecoolwinter a763fa5
Make CursorPosition More Flexible
thecoolwinter 3be125b
Adjust Style Container Length When Setting Providers
thecoolwinter f204605
Merge branch 'itembox' into jump-to-definition
thecoolwinter ee1b916
Merge branch 'fix/range-storebugs' into jump-to-definition
thecoolwinter 8f517c9
Preview View, Tons Of Completion Window Stability Fixes
thecoolwinter ba3b3e9
fix:lint
thecoolwinter 066857a
fix:lint
thecoolwinter 19e484a
Add `documentation` to `CodeSuggestionEntry`
thecoolwinter ccc19f5
Add Syntax Highlighting To Source Previews
thecoolwinter cb0b96e
Merge branch 'main' into jump-to-definition
thecoolwinter 2026e68
Update Dependencies
thecoolwinter bd3a828
fix:tests
thecoolwinter e606a3d
Add Key Command Handler
thecoolwinter 08ec867
Fix Typo
thecoolwinter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...itSourceEditorExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...tSourceEditorExample/CodeEditSourceEditorExample/Views/MockJumpToDefinitionDelegate.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| // | ||
| // MockJumpToDefinitionDelegate.swift | ||
| // CodeEditSourceEditorExample | ||
| // | ||
| // Created by Khan Winter on 7/24/25. | ||
| // | ||
|
|
||
| import AppKit | ||
| import CodeEditSourceEditor | ||
|
|
||
| final class MockJumpToDefinitionDelegate: JumpToDefinitionDelegate, ObservableObject { | ||
| func queryLinks(forRange range: NSRange, textView: TextViewController) async -> [JumpToDefinitionLink]? { | ||
| [ | ||
| JumpToDefinitionLink( | ||
| url: nil, | ||
| targetRange: CursorPosition(line: 0, column: 10), | ||
| typeName: "Start of Document", | ||
| sourcePreview: "// Comment at start" | ||
| ), | ||
| JumpToDefinitionLink( | ||
| url: URL(string: "https://codeedit.app/"), | ||
| targetRange: CursorPosition(line: 1024, column: 10), | ||
| typeName: "CodeEdit Website", | ||
| sourcePreview: "https://codeedit.app/" | ||
| ) | ||
| ] | ||
| } | ||
|
|
||
| func openLink(link: JumpToDefinitionLink) { | ||
| if let url = link.url { | ||
| NSWorkspace.shared.open(url) | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.