mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 11:24:49 -05:00
Add test for completionEntryDetails
This commit is contained in:
18
tests/cases/fourslash/server/completions2.ts
Normal file
18
tests/cases/fourslash/server/completions2.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////class Foo {
|
||||
////}
|
||||
////module Foo {
|
||||
//// export var x: number;
|
||||
////}
|
||||
////Foo./**/
|
||||
|
||||
goTo.marker("");
|
||||
verify.completionListContains("x");
|
||||
|
||||
// Make an edit
|
||||
edit.insert("a");
|
||||
edit.backspace();
|
||||
|
||||
// Checking for completion details after edit should work too
|
||||
verify.completionEntryDetailIs("x", "(var) Foo.x: number");
|
||||
Reference in New Issue
Block a user