mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 02:21:30 -05:00
Don't filter away private completions if in the same context
Fixes #34405, which was introduced in PR #16953.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
////class Foo {
|
||||
//// private xxx1 = 1;
|
||||
//// protected xxx2 = 2;
|
||||
//// public xxx3 = 3;
|
||||
//// private static xxx4 = 4;
|
||||
//// protected static xxx5 = 5;
|
||||
//// public static xxx6 = 6;
|
||||
//// foo() {
|
||||
//// const { /*1*/ } = this;
|
||||
//// const { /*2*/ } = Foo;
|
||||
//// }
|
||||
////}
|
||||
////
|
||||
////const { /*3*/ } = new Foo();
|
||||
////const { /*4*/ } = Foo;
|
||||
|
||||
verify.completions({ marker: "1", exact: ["xxx1", "xxx2", "xxx3", "foo"] });
|
||||
verify.completions({ marker: "2", exact: ["prototype", "xxx4", "xxx5", "xxx6"] });
|
||||
verify.completions({ marker: "3", exact: ["xxx3", "foo"] });
|
||||
verify.completions({ marker: "4", exact: ["prototype", "xxx6"] });
|
||||
Reference in New Issue
Block a user