Skip to content

Commit fc42312

Browse files
committed
Fix material texture path always marked as missing
1 parent 50c0fac commit fc42312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/language/VmtSemanticTokenProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class VmtSemanticTokenProvider extends KvTokensProviderBase {
117117
}
118118
const materialDir = getParentDocumentDirectory(kvDoc.document.uri.fsPath, "materials");
119119
if (materialDir != null) {
120-
const materialPath = path.join(materialDir, kv.value + ".vtf");
120+
const materialPath: string = path.join(materialDir, kv.value.content + ".vtf");
121121
if (!fs.existsSync(materialPath)) {
122122
this.diagnostics.push(new vscode.Diagnostic(range, "Texture not found on disk", vscode.DiagnosticSeverity.Warning));
123123
}

0 commit comments

Comments
 (0)