Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix(50415): Language server debug failure - Did not expect GetAccesso…
…r to have an Identifier in its trivia (#50470) * fix(50415): clone props for get/set accessors * add additional tests * create helpers to create name, body, modifiers, typeName * cleanup
- Loading branch information
1 parent
3557092
commit bb3a7ae
Showing
6 changed files
with
490 additions
and
16 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
211 changes: 211 additions & 0 deletions
211
tests/baselines/reference/completionsOverridingMethod15.baseline
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
[ | ||
{ | ||
"marker": { | ||
"fileName": "/tests/cases/fourslash/completionsOverridingMethod15.ts", | ||
"position": 89, | ||
"name": "" | ||
}, | ||
"completionList": { | ||
"flags": 0, | ||
"isGlobalCompletion": false, | ||
"isMemberCompletion": true, | ||
"isNewIdentifierLocation": true, | ||
"entries": [ | ||
{ | ||
"name": "abstract", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "abstract", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "async", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "async", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "constructor", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "constructor", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "declare", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "declare", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "get", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "get", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "override", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "override", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "private", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "private", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "protected", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "protected", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "public", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "public", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "readonly", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "readonly", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "set", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "set", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "static", | ||
"kind": "keyword", | ||
"kindModifiers": "", | ||
"sortText": "15", | ||
"displayParts": [ | ||
{ | ||
"text": "static", | ||
"kind": "keyword" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "foo", | ||
"kind": "property", | ||
"kindModifiers": "declare", | ||
"sortText": "17", | ||
"insertText": "get foo(): any {\n}\nset foo(value: any) {\n}", | ||
"displayParts": [ | ||
{ | ||
"text": "(", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": "property", | ||
"kind": "text" | ||
}, | ||
{ | ||
"text": ")", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "B", | ||
"kind": "className" | ||
}, | ||
{ | ||
"text": ".", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": "foo", | ||
"kind": "propertyName" | ||
}, | ||
{ | ||
"text": ":", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "any", | ||
"kind": "keyword" | ||
} | ||
], | ||
"documentation": [] | ||
} | ||
] | ||
} | ||
} | ||
] |
Oops, something went wrong.