This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The purpose of this redesign is to make completion more reliable. We now have a great understanding of how VSCode's object model mutates and therefore can make better assumptiosn on how to synchronize it. - In this changeset we primarily do 2 things to synchronize a document: 1. Make sure our `IProjectedDocument` has been updated by our language server. 2. Make sure VSCode's TextDocument reflects the appropriate content detailed by the `IProjectedDocument` If these two assertions are true then every other extension sees updated C#/Html and can respond accordingly. - To properly accomplish 2 I had to persist information into the `vscode.TextDocument` to identify when the content properly matches our DTO. We do this by adding a `// SomeNumber` to the end of projected text documents. - Updated RazorDocumentFactory to generate virtual C# files without a `__` prefix to prevent URIs from being placed as "authoritative" sources labeled by `__`. This caused issues in VSCode when working with copmletion. - Flowed cancellation tokens into synchronization APIs so that when VSCode cancels an action we can also cancel synchronization. #210
- Loading branch information
1 parent
55d6c21
commit f9323c9
Showing
10 changed files
with
230 additions
and
122 deletions.
There are no files selected for viewing
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
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
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
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.