Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
58590d0
Merge branch 'main' into develop
intitni Jul 3, 2024
0ed2375
Add Claude 3.5 Sonnet
intitni Jul 8, 2024
4b7882d
Fix that the Codeium suggestion service was not recognizable
intitni Jul 8, 2024
c0360f9
Update Package.swift
intitni Jul 8, 2024
448f6ff
Update build number
intitni Jul 8, 2024
de9d874
Add gemini models
intitni Jul 8, 2024
de2bb8a
Update appcast.xml
intitni Jul 8, 2024
7a57fe0
Merge branch 'release/0.33.5'
intitni Jul 8, 2024
b8b8d11
Merge tag '0.33.5' into develop
intitni Jul 8, 2024
9d7d241
Merge branch 'main' into develop
intitni Jul 9, 2024
3ad0107
Cleaned up codeium
RoshanNagaram-eng Jul 11, 2024
300f457
Merge pull request #557 from RoshanNagaram-eng/roshan/cleanCodeium
intitni Jul 12, 2024
b2bac09
updated lang server version
RoshanNagaram-eng Jul 16, 2024
3587ef4
Add SuggestionServiceEventHandler
intitni Jul 11, 2024
40d3ac2
Add SuggestionServiceEventHandler
intitni Jul 11, 2024
0e889cf
Add command handler
intitni Jul 12, 2024
95b9928
Initialize all properties
intitni Jul 12, 2024
638b6d5
Adjust the property workspacePool
intitni Jul 12, 2024
2dfe71d
Fix workspacePool initialization
intitni Jul 13, 2024
4ea2564
Adjust implementation of filespace validate suggestion
intitni Jul 13, 2024
90b2977
Move SuggestionInjector to Tool
intitni Jul 13, 2024
ed2e4f4
Adjust suggestion validation to allow suggestions to rewrite the lines
intitni Jul 13, 2024
cab0947
Add description to CodeSuggestion
intitni Jul 14, 2024
b142898
Add current line to CurosrPositionTracker
intitni Jul 14, 2024
3054a71
Rename to TextCursorTracker
intitni Jul 14, 2024
d7fad1c
Update TextCursorTracker
intitni Jul 14, 2024
00760a7
Avoid Xcode comlaining about dependency cycle
intitni Jul 15, 2024
e9440ea
Remove CodeSuggestionProvider in favor of PresentingCodeSuggestion an…
intitni Jul 15, 2024
584944f
Add CodeDiff
intitni Jul 15, 2024
9e8e612
Remove pseudo lines from diff result
intitni Jul 16, 2024
6f59c0e
Remove unused code
intitni Jul 16, 2024
bed5cdd
WIP
intitni Jul 16, 2024
d61820b
Fix diff section alignment
intitni Jul 16, 2024
799ae2a
Add tests for CodeDiff
intitni Jul 16, 2024
5e42dc9
Add TextCursorTracker environment key
intitni Jul 17, 2024
ca93a52
Add fields to PresentingCodeSuggestion
intitni Jul 17, 2024
02e9c06
Restructure AsyncCodeBlock
intitni Jul 17, 2024
b967471
Present diff in AsyncCodeBlock
intitni Jul 17, 2024
045dd42
Remove the traliing new line
intitni Jul 17, 2024
a0ece87
Adjust service
intitni Jul 17, 2024
8630be4
Fix that suggestion was not invalidated when it doesn't match the typ…
intitni Jul 18, 2024
6f0ad43
Fix that a wrong suffix was append to the suggestion
intitni Jul 18, 2024
bf41811
Update deleted suffix in suggestion
intitni Jul 18, 2024
ffe1018
Display descriptions in suggestion
intitni Jul 18, 2024
1428dcb
Update AsyncCodeBlock
intitni Jul 18, 2024
e3bf946
Fix that command handler is not correctly setup
intitni Jul 18, 2024
2a36d2e
Tweak the behavior of activating the app on chat
intitni Jul 18, 2024
5cc5f7a
Fix suggetion display suffix
intitni Jul 18, 2024
b090725
Merge branch 'feature/enhance-suggestion-presentation' into develop
intitni Jul 18, 2024
bd4dc1b
Merge tag 'fix-unintentional-start-language-server' into develop
intitni Jul 18, 2024
c06556e
Bump version to 0.34.0
intitni Jul 19, 2024
785d84f
Add model gpt-4o-mini to the list
intitni Jul 19, 2024
2c3c58f
Simplify KeyBindingManager initialization
intitni Jul 19, 2024
67a83ce
Add extensions to String
intitni Jul 22, 2024
b478d9d
Merge pull request #558 from RoshanNagaram-eng/roshan/updatelangserver
intitni Jul 30, 2024
c5da3a1
Update
intitni Aug 2, 2024
8d29488
Merge tag '0.33.7' into develop
intitni Aug 6, 2024
9cba184
Fix missing dependency
intitni Aug 6, 2024
9ebf724
Add comment
intitni Aug 6, 2024
46d26ca
Fix accept suggestions, simplify suffix recovery
intitni Aug 6, 2024
c875a4e
Update structure of middlewares
intitni Aug 6, 2024
0be87b3
Move code to post processing middleware
intitni Aug 6, 2024
de87761
Tweak chat panel window behavior
intitni Aug 12, 2024
6023a6b
Merge branch 'main' into develop
intitni Aug 13, 2024
55b29a0
Merge tag '0.33.7' into develop
intitni Aug 13, 2024
270b46e
Support installing launch agent to ~/Library/LaunchAgents when the ap…
intitni Aug 19, 2024
008f565
Update UI to present alerts
intitni Aug 19, 2024
a975e19
Merge branch 'feature/install-to-home-slash-applications' into develop
intitni Aug 19, 2024
43cfbe4
Simplify UI injection
intitni Aug 19, 2024
4b1224f
Add ChatAgent
intitni Aug 9, 2024
ba7a741
Add RAGChatAgent
intitni Aug 10, 2024
17ae22b
Update ChatMessage.Reference
intitni Aug 12, 2024
8af71af
Add RAGChatAgentConfiguration
intitni Aug 12, 2024
94d2a01
Update RAGChatAgent
intitni Aug 12, 2024
4085fdb
Support create ChatGPTServiceType from RAGChatAgentConfiguration
intitni Aug 15, 2024
7c9958a
Rename file to LegacyChatGPTService
intitni Aug 15, 2024
d4c9c24
WIP
intitni Aug 15, 2024
a50cd21
Update ChatCompletionsAPIBuilder to not take the prompt
intitni Aug 18, 2024
a883763
Add ChatGPTService
intitni Aug 18, 2024
7586d76
Reimplement LegacyChatGPTService with ChatGPTService
intitni Aug 18, 2024
2e03594
Remove unnecessary tests
intitni Aug 18, 2024
7c849a1
Update
intitni Aug 18, 2024
4db4e35
Merge branch 'feature/defining-chat-agent' into develop
intitni Aug 20, 2024
4151319
Merge tag '0.33.8' into develop
intitni Aug 21, 2024
b1a216b
Update version
intitni Aug 25, 2024
7703e1f
Fix that previous/next suggestion will dismiss the suggestion panel
intitni Aug 30, 2024
e534a45
Bump build number
intitni Sep 2, 2024
d0ac2aa
Remove PromptToCodeAcceptHandlerDependencyKey
intitni Sep 2, 2024
2f9e5c3
Add OpenAI-Organization and OpenAI-Project
intitni Sep 3, 2024
eaffcc9
Merge branch 'feature/add-openai-headers' into develop
intitni Sep 3, 2024
b0b586c
Bump build number
intitni Sep 4, 2024
128425b
Rename types
intitni Sep 3, 2024
a27cd82
Bump Copilot.vim to 1.40.0
intitni Sep 5, 2024
b520a09
Merge branch 'feature/bump-github-copilot-to-1.40.0' into develop
intitni Sep 5, 2024
ffd9d43
Update prompt to code panel
intitni Sep 5, 2024
0ee5824
Support sending back multiple selections to editor extension
intitni Sep 5, 2024
7a4ce3d
Adjust prompt to code panel UI
intitni Sep 6, 2024
7c63fea
Rename prompt to code to modification
intitni Sep 6, 2024
d8aef9b
Fix test location
intitni Sep 6, 2024
d8d6a8d
Add scheme
intitni Sep 6, 2024
7e8338d
Update SuggestionInjector to support accepting multiple suggestions a…
intitni Sep 6, 2024
f9f19c1
Update prompt to code to be able to accept multiple modifications
intitni Sep 6, 2024
359dc7d
Fix tests
intitni Sep 6, 2024
0af6265
Make text contents always wrap in code block
intitni Sep 6, 2024
b8f613b
Add accept button menu
intitni Sep 6, 2024
c15858d
Adjust UI
intitni Sep 7, 2024
a78effe
Fix that ranges are incorrect after accepting multiple suggestions
intitni Sep 7, 2024
9776cee
Tweaks multiple modification prompt to code
intitni Sep 7, 2024
b29d1aa
Fix message count
intitni Sep 7, 2024
37645ef
Adjust UI
intitni Sep 7, 2024
3581873
Update
intitni Sep 7, 2024
caaf4a3
Merge branch 'feature/widget-refactor' into develop
intitni Sep 7, 2024
5543c78
Add TemplateChatGPTMemory
intitni Sep 7, 2024
08b666d
Fix dependencies
intitni Sep 8, 2024
6a444a4
Lower the default activation delay
intitni Sep 8, 2024
8abc25e
Update UI
intitni Sep 8, 2024
20b6092
Fix that searching for tabs in Xcode cause Xcode to have performance …
intitni Sep 8, 2024
c0d9109
Merge branch 'feature/fix-performance-issue-caused-by-tab-lookup' int…
intitni Sep 8, 2024
dbdd9b0
Fix unit tests
intitni Sep 8, 2024
1421c52
Fix option+command+enter not working
intitni Sep 8, 2024
c9e5e97
Bump build number
intitni Sep 8, 2024
35f377f
Comment out unsupported test case
intitni Sep 9, 2024
df4d976
Bump build number
intitni Sep 9, 2024
aae7a56
Add buttons to toast
intitni Sep 11, 2024
5265dc4
Bump build number
intitni Sep 12, 2024
e699d45
Fix previous suggestion button dismissing the suggestion
intitni Sep 12, 2024
741fe16
Update readme
intitni Sep 12, 2024
284ed9e
Add new openai models
intitni Sep 13, 2024
5774302
Fix modification diff
intitni Sep 13, 2024
dddd2c3
Pin tca version
intitni Sep 13, 2024
de9cef2
Bump build number
intitni Sep 13, 2024
29cabba
Fix
intitni Sep 13, 2024
3319441
Make max height of modification window taller
intitni Sep 13, 2024
b996216
Bump build number
intitni Sep 13, 2024
d89df81
Merge branch 'release/0.34.0'
intitni Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused code
  • Loading branch information
intitni committed Jul 18, 2024
commit 6f59c0ee9727d7003eca3d05ab299b62889a3bf4
60 changes: 0 additions & 60 deletions Tool/Sources/CodeDiff/CodeDiff.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,66 +206,6 @@ extension Array {
}
}

extension CodeDiff.LineDiff.Change {
var range: NSRange {
switch self {
case let .insert(offset, element, _):
return NSRange(location: offset, length: element.count)
case let .remove(offset, element, _):
return NSRange(location: offset, length: element.count)
}
}

var element: String {
switch self {
case let .insert(_, element, _):
return element
case let .remove(_, element, _):
return element
}
}

var offset: Int {
switch self {
case let .insert(offset, _, _):
return offset
case let .remove(offset, _, _):
return offset
}
}

func earlierThan(offset: Int) -> Bool {
range.upperBound < offset
}

func rebased(in subRange: NSRange, text: String) -> Self? {
let thisRange = range
guard let intersection = thisRange.intersection(subRange) else { return nil }
let rebasedLocation = max(0, intersection.location - subRange.location)
let length = intersection.length
let rebasedRange = Range(NSRange(location: rebasedLocation, length: length), in: text)
let element = if let rebasedRange {
String(text[rebasedRange])
} else {
""
}
switch self {
case let .insert(_, _, associatedWith):
return .insert(
offset: rebasedLocation,
element: element,
associatedWith: associatedWith
)
case let .remove(_, _, associatedWith):
return .remove(
offset: rebasedLocation,
element: element,
associatedWith: associatedWith
)
}
}
}

#if DEBUG

import SwiftUI
Expand Down