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

Merged
merged 63 commits into from
Nov 5, 2024
Merged

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

Commits on Oct 22, 2024

  1. PR feedback - ConfigureAwait(false), shared code for commit character…

    …s, better collection check
    alexgav committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    ab716b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc996ed View commit details
    Browse the repository at this point in the history
  3. PR test suggestions

    alexgav committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    423252b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    27b8473 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

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

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    f05e730 View commit details
    Browse the repository at this point in the history
  2. Moving TagHelperServiceTestBase back to LanguageServer.Test project

    This should probably move to the common test project eventually, but not in this PR. Moving this to the workspaces layer caused many changes in unrelated test files and changed test project references. Per PR feedback leaving this in the LanguageServer.Test project for now. We can refactor later as appropriate.
    alexgav committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    13ba925 View commit details
    Browse the repository at this point in the history
  3. Cleanup per PR feedback

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

Commits on Oct 25, 2024

  1. Merge with main

    alexgav committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    46ff4ce View commit details
    Browse the repository at this point in the history
  2. Fixing build post-merge

    alexgav committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    2d09a20 View commit details
    Browse the repository at this point in the history
  3. Pass argument for supportsVsExtensions in RemoteDocumentSymbolService

    Hardcoding true for now until we plumb this through Initialize. Fixes osolete API build break
    alexgav committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    9377f9c View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

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

Commits on Oct 28, 2024

  1. Configuration menu
    Copy the full SHA
    2b09ee4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64f0ea2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c0cfa6 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Merge with main and fix-up

    alexgav committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    bb32ada View commit details
    Browse the repository at this point in the history
  2. Merge with main

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

Commits on Nov 1, 2024

  1. Removing unnecessary async

    alexgav committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    75061a0 View commit details
    Browse the repository at this point in the history
  2. C# override test

    alexgav committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    a2c3279 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16ca3da View commit details
    Browse the repository at this point in the history
  4. Use remote IClientCapabilitiesService

    Instead of passing client capabilities with each call to RemoteCompletionService we can now use remote IClientCapabilitiesService that's initialized with client capabilities on initial connection.
    alexgav committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    62df8df View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Misc cleanup per PR feedback

    alexgav committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    8161ba6 View commit details
    Browse the repository at this point in the history