mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Merge branch 'master' into vfs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////class C/*a*/ /*b*/ { }
|
||||
////class C e/*c*/ {}
|
||||
|
||||
// Tests that `isCompletionListBlocker` is true *at* the class name, but false *after* it.
|
||||
|
||||
@@ -9,3 +10,6 @@ verify.completionListIsEmpty();
|
||||
|
||||
goTo.marker("b");
|
||||
verify.completionListContains("extends");
|
||||
|
||||
goTo.marker("c");
|
||||
verify.completionListContains("extends");
|
||||
|
||||
10
tests/cases/fourslash/documentHighlightInExport1.ts
Normal file
10
tests/cases/fourslash/documentHighlightInExport1.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
//// class [|C|] {}
|
||||
//// [|export|] { [|C|] [|as|] [|D|] };
|
||||
|
||||
const [classRange, exportKeywordRange, propertyNameRange, asKeywordRange, nameRange] = test.ranges();
|
||||
verify.noDocumentHighlights(exportKeywordRange);
|
||||
verify.documentHighlightsOf(propertyNameRange, [classRange, propertyNameRange, nameRange]);
|
||||
verify.noDocumentHighlights(asKeywordRange);
|
||||
verify.documentHighlightsOf(nameRange, [nameRange]);
|
||||
10
tests/cases/fourslash/findAllRefsInExport1.ts
Normal file
10
tests/cases/fourslash/findAllRefsInExport1.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
//// class C {}
|
||||
//// /*1*/export { C /*2*/as D };
|
||||
|
||||
goTo.marker("1");
|
||||
verify.noReferences();
|
||||
|
||||
goTo.marker("2");
|
||||
verify.noReferences();
|
||||
Reference in New Issue
Block a user