You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* WIP
* WIP
* Get completion details working
* Start unifying eager and lazy auto imports
* Fix export=
* Fix completion details for totally misspelled names
* Almost fixed duplication...
* Fix remaining completion tests
* Refactor to support multiple origins for same symbol
* Make import fixes make slightly more sense
* Add cache back in
* Set insertText based on import kind
* Update API baselines
* Add semicolons, snippet support, and sourceDisplay
* Add some tests
* Update baselines
* Fix pattern ambient modules appearing in auto imports
* Fix tests
* Remove commented code
* Switch to valueDeclaration for getting module source file
* Small optimizations
* Cache module specifiers / importableness and export map separately
* Fix and test cache invalidation logic
* Update API baselines
* Add separate user preference for snippet-formatted completions
* Require first character to match when resolving module specifiers
* Fix AutoImportProvider export map cache invalidation
* Really fix auto import provider export map invalidation
* Update test added in master
* Use logical or assignment
Co-authored-by: Daniel Rosenwasser <[email protected]>
* Simply conditional by reversing
Co-authored-by: Daniel Rosenwasser <[email protected]>
* When file is deleted need to marked correctly in the project as removed file
* Simplify hasAddedOrRemovedSymlinks with cherry-picked fix
* Ensure replacement range is on one line
* Update baselines
Co-authored-by: Daniel Rosenwasser <[email protected]>
Co-authored-by: Sheetal Nandi <[email protected]>
assert.equal(actual.sortText,expected.sortText||ts.Completions.SortText.LocationPriority,`Expected 'sortText' properties to match`);
936
+
if(expected.sourceDisplay&&actual.sourceDisplay){
937
+
assert.equal(ts.displayPartsToString(actual.sourceDisplay),expected.sourceDisplay,`Expected 'sourceDisplay' properties to match`);
938
+
}
935
939
936
940
if(expected.text!==undefined){
937
941
constactualDetails=ts.Debug.checkDefined(this.getCompletionEntryDetails(actual.name,actual.source,actual.data),`No completion details available for name '${actual.name}' and source '${actual.source}'`);
@@ -941,10 +945,13 @@ namespace FourSlash {
941
945
// assert.equal(actualDetails.kind, actual.kind);
942
946
assert.equal(actualDetails.kindModifiers,actual.kindModifiers,"Expected 'kindModifiers' properties to match");
943
947
assert.equal(actualDetails.source&&ts.displayPartsToString(actualDetails.source),expected.sourceDisplay,"Expected 'sourceDisplay' property to match 'source' display parts string");
948
+
if(!actual.sourceDisplay){
949
+
assert.equal(actualDetails.sourceDisplay&&ts.displayPartsToString(actualDetails.sourceDisplay),expected.sourceDisplay,"Expected 'sourceDisplay' property to match 'sourceDisplay' display parts string");
0 commit comments