-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release-vsce-1.17
- Loading branch information
Showing
49 changed files
with
1,162 additions
and
728 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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
4 changes: 3 additions & 1 deletion
4
clients/tabby-agent/src/codeCompletion/postprocess/calculateReplaceRange.ts
This file contains 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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { PostprocessFilter } from "./base"; | ||
import { CompletionItem } from "../solution"; | ||
import { calculateReplaceRangeByBracketStack } from "./calculateReplaceRangeByBracketStack"; | ||
import { calculateReplaceRangeBySemiColon } from "./calculateReplaceRangeBySemiColon"; | ||
|
||
export function calculateReplaceRange(): PostprocessFilter { | ||
return async (item: CompletionItem): Promise<CompletionItem> => { | ||
return calculateReplaceRangeByBracketStack(item); | ||
const afterBracket = calculateReplaceRangeByBracketStack(item); | ||
return calculateReplaceRangeBySemiColon(afterBracket); | ||
}; | ||
} |
This file contains 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
19 changes: 8 additions & 11 deletions
19
clients/tabby-agent/src/codeCompletion/postprocess/calculateReplaceRangeByBracketStack.ts
This file contains 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.