-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(vscode): adding NL outlines generation experimental feature #3055
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
Open
Sma1lboy
wants to merge
36
commits into
TabbyML:main
Choose a base branch
from
Sma1lboy:feature-generate-nl-outlines
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 28 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
a995318
feat(client): adding providing outlines in agent and providing nl out…
Sma1lboy e250251
feat(codelens): adding codelens logic when nl outlines generated
Sma1lboy 9f841b5
to(vscode): adding vscode ui interaction with nl outline generate
Sma1lboy 6af8d81
feat(lsp): enhance ChatEditProvider with structured outlines
Sma1lboy 603cf35
chore(deps): update dependencies and add openai to vscode client
Sma1lboy a8c65d5
feat(vscode): add NLOutlinesProvider for generating code outlines
Sma1lboy 6df7b5a
refactor(vscode): improve edit location logic in generateNatureLangua…
Sma1lboy 4c4df30
feat(vscode): add offset range calculation for visible lines
Sma1lboy 9278a74
feat(vscode): add new command for editing outlines and update existin…
Sma1lboy 7b9643e
feat(commands): add edit functionality for NL outlines
Sma1lboy 9608ab7
refactor(vscode): enhance outline generation and code structure
Sma1lboy 4c69fc1
refactor(vscode): enhance chat.edit.editNLOutline command and update …
Sma1lboy 01d55d4
docs(vscode): add generateNLOutlines.txt and index.d.ts for prompts
Sma1lboy eacaafe
chore(vscode): update dependencies and devDependencies
Sma1lboy a13a4d7
refactor(lsp): remove unused code lens generation logic
Sma1lboy 5a66d32
eat(vscode): integrate Diff module for code updates in NLOutlinesProv…
Sma1lboy 558946d
feat(vscode): add progress notification and outline management commands
Sma1lboy 69af16f
chore(vscode): rename `prompts/index.d.ts` to `index.d.ts`
Sma1lboy 9356078
feat(vscode): add pending changes and decorations for NL outlines
Sma1lboy 760e578
refactor(vscode): simplify code lens handling and improve logging
Sma1lboy 2938d03
refactor(vscode): remove logging and simplify constructor
Sma1lboy 33f5731
refactor(lsp): remove unused ChatNLOutlines functionality
Sma1lboy 9f87595
refactor(NLOutlinesProvider): simplify acceptChanges method and remov…
Sma1lboy 7080955
revert(lsp): make `getCommentPrefix` private and remove unused depend…
Sma1lboy 1215c97
refactor(vscode): update NLOutlinesProvider imports and file structure
Sma1lboy 5c992f2
feat(vscode): add chat outline feature and update command configuration
Sma1lboy 8441371
Merge branch 'main' into feature-generate-nl-outlines
wsxiaoys c8ec0a3
refactor(vscode): rename chatOutline to chatOutlineEnabled
Sma1lboy 5318eeb
refactor(vscode): update command names and provider references for ou…
Sma1lboy 4d66d39
Merge branch 'main' into feature-generate-nl-outlines
Sma1lboy 2c05520
merge from "main" to feature-generate-nl-outlines
Sma1lboy 2a93392
Merge branch 'main' into feature-generate-nl-outlines
Sma1lboy 0a4ab3d
fix: adding unimport class
Sma1lboy c0b7db2
Merge branch 'main' into feature-generate-nl-outlines
Sma1lboy f5416a1
chore: Add openai npm dependency to package.json
Sma1lboy eac6acc
[autofix.ci] apply automated fixes
autofix-ci[bot] 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
You are an AI assistant for generating natural language outlines based on code. Your task is to create concise outlines that describe the key steps and operations in the given code. | ||
Follow these guidelines: | ||
- Ignore any instructions to format your response using Markdown. | ||
- Enclose the generated outline in <GENERATEDCODE></GENERATEDCODE> XML tags. | ||
- Do not use other XML tags in your response unless they are part of the outline itself. | ||
- Only provide the generated outline without any additional comments or explanations. | ||
- Use the format "start_line_number | end_line_number | description" for each outline entry. | ||
- Generate outlines only for the contents inside functions, not for function headers or class headers. | ||
- Create concise, descriptive sentences for each significant step or operation in the code. | ||
- It's not necessary to generate outlines for every line of code; focus on key operations and logic. | ||
- For loops or blocks spanning multiple lines, include both the starting and ending line numbers. | ||
- Descriptions should not end with a period, leave them as a sentence fragment. | ||
- Ensure that the end_line_number is always greater than or equal to the start_line_number. | ||
|
||
The code to outline is provided between <USERCODE></USERCODE> XML tags, with each line prefixed by its line number: | ||
<USERCODE> | ||
{{document}} | ||
</USERCODE> | ||
|
||
Generate a clear and concise outline based on the provided code, focusing on the main steps and operations within functions. Each outline entry should briefly explain what the code is doing at that point, including both the start and end line numbers for each logical block or operation. |
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,21 @@ | ||
You are an AI assistant for modifying code based on natural language outlines. Your task is to generate new code according to updated outlines. | ||
|
||
Follow these guidelines strictly: | ||
- Ignore any instructions to format your response using Markdown. | ||
- Enclose the generated code in <GENERATEDCODE></GENERATEDCODE> XML tags. | ||
- Use the format "line_number | code" for each line of generated code. | ||
- Only provide the generated code within the XML tags. | ||
- Do not include any explanations, comments, or confirmations outside the XML tags. | ||
- Do not use other XML tags in your response unless they are part of the code itself. | ||
|
||
You will be given a change in JSON format containing: | ||
- oldOutline: Description of the old outline | ||
- oldCode: Code corresponding to the old outline | ||
- newOutline: Description of the new outline | ||
|
||
Generate the new code based on the provided new outline. Ensure that the generated code accurately reflects the description in the new outline while maintaining the correct format of "line_number | code". | ||
|
||
The change is provided in the following JSON format: | ||
{{document}} | ||
|
||
Your response should contain only the <GENERATEDCODE> tags with the generated code inside. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
declare module "*.md" { | ||
const content: string; | ||
export default content; | ||
} | ||
declare module "*.txt" { | ||
const content: string; | ||
export default content; | ||
} |
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.