Fix missing abstract keyword in completion (#45710)

* first commit

* tests
This commit is contained in:
Sang 2021-09-08 06:20:58 +10:00 committed by GitHub
parent 7032f6bcee
commit bac841ef18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 87 additions and 0 deletions

View File

@ -1292,6 +1292,7 @@ namespace FourSlashInterface {
"let",
"package",
"yield",
"abstract",
"as",
"asserts",
"any",
@ -1495,6 +1496,7 @@ namespace FourSlashInterface {
"let",
"package",
"yield",
"abstract",
"as",
"asserts",
"any",

View File

@ -2960,6 +2960,7 @@ namespace ts.Completions {
|| kind === SyntaxKind.ModuleKeyword
|| kind === SyntaxKind.TypeKeyword
|| kind === SyntaxKind.NamespaceKeyword
|| kind === SyntaxKind.AbstractKeyword
|| isTypeKeyword(kind) && kind !== SyntaxKind.UndefinedKeyword;
case KeywordCompletionFilters.FunctionLikeBodyKeywords:
return isFunctionLikeBodyKeyword(kind);

View File

@ -3672,6 +3672,18 @@
}
]
},
{
"name": "abstract",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "abstract",
"kind": "keyword"
}
]
},
{
"name": "as",
"kind": "keyword",

View File

@ -86508,6 +86508,18 @@
}
]
},
{
"name": "abstract",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "abstract",
"kind": "keyword"
}
]
},
{
"name": "as",
"kind": "keyword",
@ -91852,6 +91864,18 @@
}
]
},
{
"name": "abstract",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "abstract",
"kind": "keyword"
}
]
},
{
"name": "as",
"kind": "keyword",

View File

@ -23145,6 +23145,18 @@
}
]
},
{
"name": "abstract",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "abstract",
"kind": "keyword"
}
]
},
{
"name": "as",
"kind": "keyword",
@ -41018,6 +41030,18 @@
}
]
},
{
"name": "abstract",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "abstract",
"kind": "keyword"
}
]
},
{
"name": "as",
"kind": "keyword",

View File

@ -3579,6 +3579,18 @@
}
]
},
{
"name": "abstract",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "abstract",
"kind": "keyword"
}
]
},
{
"name": "as",
"kind": "keyword",
@ -8289,6 +8301,18 @@
}
]
},
{
"name": "abstract",
"kind": "keyword",
"kindModifiers": "",
"sortText": "15",
"displayParts": [
{
"text": "abstract",
"kind": "keyword"
}
]
},
{
"name": "as",
"kind": "keyword",