Skip to content

Commit

Permalink
default allow out of bounds=true
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenWeatherford committed Sep 2, 2020
1 parent 80ccf8a commit 1b15140
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 @@ -50,13 +50,13 @@ class TleInfo implements ITleInfo {
export class TemplatePositionContext extends PositionContext {
private _tleInfo: CachedValue<TleInfo | undefined> = new CachedValue<TleInfo | undefined>();

public static fromDocumentLineAndColumnIndexes(deploymentTemplate: DeploymentTemplateDoc, documentLineIndex: number, documentColumnIndex: number, associatedParameters: DeploymentParametersDoc | undefined, allowOutOfBounds: boolean = false): TemplatePositionContext {
public static fromDocumentLineAndColumnIndexes(deploymentTemplate: DeploymentTemplateDoc, documentLineIndex: number, documentColumnIndex: number, associatedParameters: DeploymentParametersDoc | undefined, allowOutOfBounds: boolean = true): TemplatePositionContext {
let context = new TemplatePositionContext(deploymentTemplate, associatedParameters);
context.initFromDocumentLineAndColumnIndices(documentLineIndex, documentColumnIndex, allowOutOfBounds);
return context;
}

public static fromDocumentCharacterIndex(deploymentTemplate: DeploymentTemplateDoc, documentCharacterIndex: number, associatedParameters: DeploymentParametersDoc | undefined, allowOutOfBounds: boolean = false): TemplatePositionContext {
public static fromDocumentCharacterIndex(deploymentTemplate: DeploymentTemplateDoc, documentCharacterIndex: number, associatedParameters: DeploymentParametersDoc | undefined, allowOutOfBounds: boolean = true): TemplatePositionContext {
let context = new TemplatePositionContext(deploymentTemplate, associatedParameters);
context.initFromDocumentCharacterIndex(documentCharacterIndex, allowOutOfBounds);
return context;
Expand Down Expand Up @@ -314,7 +314,7 @@ export class TemplatePositionContext extends PositionContext {
}

public async getCompletionItems(triggerCharacter: string | undefined): Promise<ICompletionItemsResult> {
const tleInfo = this.tleInfo; // << BREAKPOINT HERE (TWO)
const tleInfo = this.tleInfo;
const completions: Completion.Item[] = [];

for (let uniqueScope of this.document.uniqueScopes) {
Expand Down

0 comments on commit 1b15140

Please sign in to comment.