Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
remove debug lods
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrn committed Sep 27, 2021
1 parent 9ee1018 commit 39281b7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/providers/completionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ export async function doCompletion(
context: WorkspaceFolderContext
): Promise<CompletionItem[] | null> {
let preparedText = document.getText();
console.log('--doCompletion--')
console.log(document)
console.log(position)
console.log(context)
const offset = document.offsetAt(position);
// HACK: We need to insert a dummy mapping, so that the YAML parser can properly recognize the scope.
// This is particularly important when parser has nothing more than
Expand All @@ -65,8 +61,7 @@ export async function doCompletion(
// NOTE: Might no longer be required due to the hack above
const path = getPathAt(document, position, yamlDocs, true);
if (path) {
const node = path[path.length - 1];

const node = path[path.length - 1];
if (node) {
const docsLibrary = await context.docsLibrary;

Expand Down

0 comments on commit 39281b7

Please sign in to comment.