Skip to content

Path completions for import types - #23082

Merged
Wesley Wigham (weswigham) merged 3 commits into
microsoft:masterfrom
weswigham:import-types-ls
Apr 2, 2018
Merged

Path completions for import types#23082
Wesley Wigham (weswigham) merged 3 commits into
microsoft:masterfrom
weswigham:import-types-ls

Conversation

@weswigham

Copy link
Copy Markdown
Member

Fixes one of the points brought up in this comment.

assertHasRanges(ranges: Range[]): void;
caretAtMarker(markerName?: string): void;
completionsAt(markerName: string | ReadonlyArray<string>, completions: ReadonlyArray<string | { name: string, insertText?: string, replacementSpan?: Range }>, options?: CompletionsAtOptions): void;
completionsAndDetailsAt(

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this from the fourslash .d.ts because I tried to use it then discovered that it doesn't exist at runtime - the verify class doesn't have this member (any more?).

//// }
////}
// @Filename: /node_modules/package/index.ts
////export namespace Foo {

@ghostDeleted user (ghost)Apr 2, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Path completions shouldn't even need to read the file, so this could just be ////file content not read

@weswigham
Wesley Wigham (weswigham) merged commit fd553df into microsoft:masterApr 2, 2018
@weswigham
Wesley Wigham (weswigham) deleted the import-types-ls branch April 2, 2018 23:15
@microsoftMicrosoft (microsoft) locked and limited conversation to collaborators Jul 25, 2018
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@weswigham@mhegazy