Revert "initial changes for value provider"

This reverts commit 3f7cfbfdb1.
This commit is contained in:
Laura Yu
2022-11-14 22:37:34 +00:00
parent 3f7cfbfdb1
commit da8f987c61
6 changed files with 13 additions and 79 deletions
@@ -47,10 +47,7 @@ export function findInnerTokenAndParent(
if (nullNodeOnLine(pos, key, value)) {
return [value, key];
}
//value.definition?.keyname = key.value;
if (value.definition){
value.definition.keyname = key.toString();
}
s.push(value);
}
continue;
@@ -77,8 +74,8 @@ function posInToken(pos: Position, token: TemplateToken): boolean {
const r = token.range;
// TokenRange is one-based, Position is zero-based
const tokenLine = pos.line //+ 1;
const tokenChar = pos.character //+ 1;
const tokenLine = pos.line + 1;
const tokenChar = pos.character + 1;
// Check lines
if (r.start[0] > tokenLine || tokenLine > r.end[0]) {