initial changes for value provider

This commit is contained in:
Laura Yu
2022-11-14 22:34:57 +00:00
parent cadaeee4a1
commit 3f7cfbfdb1
6 changed files with 79 additions and 13 deletions
@@ -47,7 +47,10 @@ 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;
@@ -74,8 +77,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]) {