Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenWeatherford committed Sep 2, 2020
1 parent ad19a92 commit 8561740
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/documents/positionContexts/TemplatePositionContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class TemplatePositionContext extends PositionContext {
return false;
}

public getSnippetInsertionContext(options: { triggerCharacter?: string; allowInsideJsonString?: boolean }): InsertionContext {
public getInsertionContext(options: { triggerCharacter?: string; allowInsideJsonString?: boolean }): InsertionContext {
const insertionContext = super.getInsertionContext(options);
const context = insertionContext.context;
const parents = insertionContext.parents;
Expand Down Expand Up @@ -408,7 +408,7 @@ export class TemplatePositionContext extends PositionContext {
}

private getDependsOnCompletionItems(triggerCharacter: string | undefined): Completion.Item[] {
const insertionContext = this.getSnippetInsertionContext({ triggerCharacter, allowInsideJsonString: true });
const insertionContext = this.getInsertionContext({ triggerCharacter, allowInsideJsonString: true });
if (insertionContext.context === 'dependson') {
return getDependsOnCompletions(this);
}
Expand All @@ -417,7 +417,7 @@ export class TemplatePositionContext extends PositionContext {
}

private async getSnippetCompletionItems(triggerCharacter: string | undefined): Promise<ICompletionItemsResult> {
const insertionContext = this.getSnippetInsertionContext({ triggerCharacter });
const insertionContext = this.getInsertionContext({ triggerCharacter });
if (insertionContext.triggerSuggest) {
return { items: [], triggerSuggest: true };
} else if (insertionContext.context) {
Expand Down

0 comments on commit 8561740

Please sign in to comment.