Skip to content
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

feat(vscode): adding NL outlines generation experimental feature #3055

Open
wants to merge 36 commits into
base: main
Choose a base branch
from

Commits on Aug 28, 2024

  1. feat(client): adding providing outlines in agent and providing nl out…

    …lines generate with prompts
    Sma1lboy committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a995318 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e250251 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9f841b5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6af8d81 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    603cf35 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a8c65d5 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. refactor(vscode): improve edit location logic in generateNatureLangua…

    …geOutlines and adding auto choice visible range
    Sma1lboy committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    6df7b5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c4df30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9278a74 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7b9643e View commit details
    Browse the repository at this point in the history
  5. refactor(vscode): enhance outline generation and code structure

    - Updated imports to include `Uri`, `workspace`, and `WorkspaceEdit` from `vscode`.
    - Modified the `Outline` interface to include `startLine` and `endLine` instead of just `line`.
    - Added a new `CodeChangeRequest` interface.
    - Refactored the `provideNLOutlinesGenerate` method to improve readability and structure.
    - Enhanced logging for better debugging and tracking of document processing.
    Sma1lboy committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    9608ab7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4c69fc1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    01d55d4 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. chore(vscode): update dependencies and devDependencies

    - Added `@types/diff` and `diff` to devDependencies.
    - Moved `openai` from dependencies to devDependencies.
    - Updated `diff` version in pnpm-lock.yaml.
    Sma1lboy committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    eacaafe View commit details
    Browse the repository at this point in the history
  2. refactor(lsp): remove unused code lens generation logic

    - Removed code lens generation for outlines and confirmation commands.
    - Removed related prompt templates from AgentConfig
    Sma1lboy committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    a13a4d7 View commit details
    Browse the repository at this point in the history
  3. eat(vscode): integrate Diff module for code updates in NLOutlinesProv…

    …ider
    
    - Added import for Diff module to handle code differences.
    - Enhanced logging for updateNLOutline method to track document and line number.
    - Improved error handling and logging for document opening and outline retrieval.
    - Updated the format of oldCode to include line numbers for better context.
    - Enhanced the handling of updated code received from the AI model, including removal of XML tags and proper line splitting.
    Sma1lboy committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    5a66d32 View commit details
    Browse the repository at this point in the history
  4. feat(vscode): add progress notification and outline management commands

    - Introduced a progress notification during the NL Outline update process.
    - Added new commands for accepting and discarding NL Outline changes.
    Sma1lboy committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    558946d View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    69af16f View commit details
    Browse the repository at this point in the history
  2. feat(vscode): add pending changes and decorations for NL outlines

    - Introduced `PendingChange` and `ChangesPreview` interfaces to manage pending changes and their previews.
    - Added `OpenAIResponse` type to handle asynchronous OpenAI responses.
    - Extended `NLOutlinesProvider` class to include new properties: `addedDecorationType`, `removedDecorationType`, `pendingChanges`, and `pendingCodeLenses`.
    - Implemented methods to create text editor decoration types for added and removed lines.
    - Added event listener for active text editor changes to clear all pending changes.
    - Updated `provideNLOutlinesGenerate` method to log additional information and notify listeners of CodeLenses change.
    - Removed unused `Command` import and `generateNLOutlinesRequest` method.
    Sma1lboy committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    9356078 View commit details
    Browse the repository at this point in the history
  3. refactor(vscode): simplify code lens handling and improve logging

    - Removed unnecessary parameters from `addAcceptDiscardCodeLens` method.
    - Updated command names for accept and discard actions.
    - Enhanced logging in `acceptChanges` method for better debugging.
    - Simplified the logic for applying edits and deleting extra lines.
    Sma1lboy committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    760e578 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2938d03 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    33f5731 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f87595 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7080955 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    1215c97 View commit details
    Browse the repository at this point in the history
  2. feat(vscode): add chat outline feature and update command configuration

    - Introduced a new configuration option `chat.outline` to enable/disable the 'Generate Outline' command.
    - Added getter and setter methods for `chat.outline` in the `Config` class.
    - Updated the command ID and title for generating outlines.
    - Modified the command palette configuration to conditionally show the 'Generate Outline' command based on the `chat.outline` setting.
    Sma1lboy committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    5c992f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    8441371 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. refactor(vscode): rename chatOutline to chatOutlineEnabled

    fix: fix naming issue
    Sma1lboy committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    c8ec0a3 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. refactor(vscode): update command names and provider references for ou…

    …tline generation and edit.
    
    Also change all `nlOutline` to `outline`
    Sma1lboy committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    5318eeb View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Configuration menu
    Copy the full SHA
    4d66d39 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c05520 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    2a93392 View commit details
    Browse the repository at this point in the history
  2. fix: adding unimport class

    Sma1lboy committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    0a4ab3d View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

  1. Configuration menu
    Copy the full SHA
    c0b7db2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5416a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eac6acc View commit details
    Browse the repository at this point in the history