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

Adding cohost completion handler #11048

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

Commits on Sep 17, 2024

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

Commits on Sep 19, 2024

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

Commits on Sep 21, 2024

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

Commits on Sep 24, 2024

  1. Adding OOPRazorCompletionFactsService and moving MarkupTransitionComp…

    …letionItemProvider to common layer.
    alexgav committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    ba4b5ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9220c8 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

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

Commits on Oct 2, 2024

  1. Add OOP MEF exports for completion services from Workspaces layer nee…

    …ded by RemoteCompletionService
    alexgav committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    909c3aa View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. Hook up RazorComplelistListProvider in the RemoteCompletionService

    Switch passed in and returned types from Roslyn to VS Platform LSP types since that's what all of the common completion code in the Workspaces layer uses. We will need to convert returned Roslyn completion items to VS platform LSP completion items.
    alexgav committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    f3a44db View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    f120c08 View commit details
    Browse the repository at this point in the history
  2. Hooking up C# completion API

    alexgav committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    74fc3c6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5cc1400 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    198b404 View commit details
    Browse the repository at this point in the history
  5. Move IsValidTrigger method to CompletionTriggerCharacters class in th…

    …e workspaces layer (to be used in cohosting later)
    alexgav committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    6265966 View commit details
    Browse the repository at this point in the history
  6. Call HTML completion only if we are in HTML and pass a set of existin…

    …g HTML completion item labels to RazorCompletionListProvider
    alexgav committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    cf7a94a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f2f7e9c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    311973b View commit details
    Browse the repository at this point in the history
  9. Merge with main

    alexgav committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    d17c36d View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. Move delegated completion helper RewriteContext method into Workspace…

    … layer and use it in cohost completion request
    alexgav committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    bcf2080 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

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

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    62ced4e View commit details
    Browse the repository at this point in the history
  2. Consuming delegated completion response re-writers in C#

    Also simplifying parameters passed to the response re-writers to only what's needed.
    alexgav committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3070b26 View commit details
    Browse the repository at this point in the history
  3. Switch to Roslyn CompletionParams as request input so converters are …

    …hooked up and we are getting VSInternalCompletionContext in CompletionParams
    alexgav committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    15be771 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Splitting delegated response rewriters into C# and HTML and simplifyi…

    …ng them
    
    They all already checked (or should've checked) for language and were operating on either C# or HTML, never on both. HTML re-writer will get called from the client and can be much simpler. In cohosting it doesn't make sense to have them all in one list since C# will get called in OOP and HTML on the client (in VS).
    alexgav committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    d25ab7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    605b8b0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    252d4ac View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. First part of completion options clean-up

    Renamed some fields and variables dealing with "add snippets" options and added comments. We currently have two options that mean "add snippets" - one for the delegated completion, and one for Razor completion. The values of those don't correlate. The Razor one is always true in LSP and Cohost, always false for legacy editor. The delegation one actually depends on the position.
    alexgav committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    8f94a13 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5c7633 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. First set of tests

    alexgav committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    95f9410 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9505241 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2024

  1. Adding directive and directive attribute completion providers and tests

    Also adding a snippet completion provider test and markup transition test
    alexgav committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    a0514fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f646b03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6d29f9c View commit details
    Browse the repository at this point in the history
  4. Moved most of the tests for moved code from LanguageServer to Workspa…

    …ces test projects
    
    The tests were left behind (some in this PR, some in prior PRs) when the code was moved to Workspaces layer. This commit addresses most of them other than in Delegation subworkspace
    alexgav committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    3312cea View commit details
    Browse the repository at this point in the history
  5. Fixing delegated response re-writer tests.

    We had inconsistent handling of null completion item labels between our response re-writers. Some handled null labels, others would through. Since label shouldn't be null (non-nullable), I adjusted the tests not to use null labels.
    
    Also the tests previously passed because they created DelegatedCompletionListProvider with only a selected DelegatedResponseRewriter. Now the DelegatedCompletionHelper will apply all response re-writers for the correct language (either C# or HTML), which is what the product actually does, so I feel that's fine. It exposed these test failures due to inconsistent null label handling
    alexgav committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    81a1124 View commit details
    Browse the repository at this point in the history
  6. Merge with main

    alexgav committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    82d275c View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2024

  1. Add required cancellation token argument to GetGeneratedDocumentAsync…

    … in RemoteCompletionService
    alexgav committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    bbea1db View commit details
    Browse the repository at this point in the history
  2. Simplifying trigger character data

    Switching AllTriggerCharacters to string[] since we only use it for registration/capability data, which needs string[]. and we never do look ups via Contains. Also removing rendundant property and calculations in CompletionListProvider
    alexgav committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    c5722bc View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    ec28f9f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7129038 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    538e3be View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c744e13 View commit details
    Browse the repository at this point in the history