diff --git a/src/services/completions.ts b/src/services/completions.ts
index f17ee862ccaf8..cdf094acd1088 100644
--- a/src/services/completions.ts
+++ b/src/services/completions.ts
@@ -1073,7 +1073,7 @@ namespace ts.Completions {
function filterGlobalCompletion(symbols: Symbol[]): void {
const isTypeOnly = isTypeOnlyCompletion();
const allowTypes = isTypeOnly || !isContextTokenValueLocation(contextToken) && isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker);
- if (isTypeOnly) keywordFilters = KeywordCompletionFilters.TypeKeywords;
+ if (isTypeOnly) keywordFilters = KeywordCompletionFilters.All;
filterMutate(symbols, symbol => {
if (!isSourceFile(location)) {
@@ -1101,7 +1101,7 @@ namespace ts.Completions {
// expressions are value space (which includes the value namespaces)
return !!(getCombinedLocalAndExportSymbolFlags(symbol) & SymbolFlags.Value);
});
- }
+ }
function isTypeOnlyCompletion(): boolean {
return insideJsDocTagTypeExpression || !isContextTokenValueLocation(contextToken) && (isPartOfTypeNode(location) || isContextTokenTypeLocation(contextToken));
diff --git a/tests/cases/fourslash/completionListAsConst.ts b/tests/cases/fourslash/completionListAsConst.ts
new file mode 100644
index 0000000000000..0fae240f2c238
--- /dev/null
+++ b/tests/cases/fourslash/completionListAsConst.ts
@@ -0,0 +1,5 @@
+///
+
+////1 as con/*1*/
+
+verify.completions({marker:"1", includes:"const"});
\ No newline at end of file
diff --git a/tests/cases/fourslash/completionListReadonlyType.ts b/tests/cases/fourslash/completionListReadonlyType.ts
new file mode 100644
index 0000000000000..039d358401b2e
--- /dev/null
+++ b/tests/cases/fourslash/completionListReadonlyType.ts
@@ -0,0 +1,5 @@
+///
+
+////type T = read/*1*/
+
+verify.completions({marker:"1", includes:"readonly"});
\ No newline at end of file