cooolbros / vscode-vdf Goto Github PK
View Code? Open in Web Editor NEWVDF/Valve KeyValues language support for VSCode
Home Page: https://marketplace.visualstudio.com/items?itemName=pfwobcke.vscode-vdf
License: GNU General Public License v3.0
VDF/Valve KeyValues language support for VSCode
Home Page: https://marketplace.visualstudio.com/items?itemName=pfwobcke.vscode-vdf
License: GNU General Public License v3.0
[Error - 4:32:04 PM] Request textDocument/documentLink failed.
Message: Request textDocument/documentLink failed with message: Cannot read properties of undefined (reading 'teamFortress2Folder')
Code: -32603
I don't know what exactly triggers this error or if it causes any actual problems, but I've manager to "consistently" trigger the error by switching from file to file quickly enough:
But as far as I can tell, that's not the only scenario for this error to be triggered.
It is used in hl2_misc_dir.vpk > scripts/hudanimations.txt line 539
The syntax is: StopAnimation <element> <property> <delay>
If you have a border in resource/clientscheme.res that references a colour also inside resource/clientscheme.res, then change the file contents so that the location of the colour definition changes, the language server will not update the position of the reference, leading to incorrect reference locations
Platform specific events are used in hl2_misc_dir.vpk > scripts/hudanimations.txt line 514
The second event definition for WeaponUsesClips
with [$X360]
is incorrectly declared as unreachable
Currently, renaming a document symbol only changes the occurrence in the current file, if the key is declared in #base files, the occurrences in the #base file do not get updated to reflect the new name
I don't know the name of [ $someone || $someone ]
, but there was a part of real file in Left 4 Dead 2 UI defination:
"Resource/UI/Addons.res"
{
// because in longer languages the button text overlaps the icon, I'm only making it visible for these languages
"IconBrowseWorkshop" [$english || $spanish || $finnish || $brazilian || $japanese || $korean || $latam || $portuguese || $schinese || $tchinese || $swedish || $thai || $turkish]
{
"ControlName" "ImagePanel"
"fieldName" "IconBrowseWorkshop"
"xpos" "c-50" [$win32wide]
"xpos" "c-100"
"ypos" "440" [$win32wide]
"ypos" "455"
"zpos" "0"
"wide" "30" [$win32wide]
"tall" "30" [$win32wide]
"wide" "15"
"tall" "15"
"scaleImage" "1"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"image" "addonsmenu/icon_browse_workshop"
}
}
It throws an error Unexpected '{'. Expected key.
I guess problem occursined by the label [$english || $spanish || $finnish || $brazilian || $japanese || $korean || $latam || $portuguese || $schinese || $tchinese || $swedish || $thai || $turkish]
.
[$english]
[$english || $spanish]
v4.3.0
These are defined in vgui2\vgui_controls\AnimationController.cpp
They're formatted as so:
SetFont <Panel> <Font variable name> <Font name> <Time>
SetTexture <Panel> <Texture variable name> <Material path> <Time>
SetString <Panel> <String variable name> <String value> <Time>
A of now, using any of these raises an error. Using version 4.3.0.
event MenuOpen
{
StopEvent MenuClose 0.0
Animate HudMenu PaintBackgroundType 0 Linear 0.0 0.0
Animate HudMenu RoundedCorners 0 Linear 0.0 0.0
Animate HudMenu XPos 0 Spline 0.0 0.05
Animate HudMenu Alpha 255 Spline 0.0 0.05
Animate HudMenu SelectionAlpha 255 Spline 0.0 0.05
//
Animate HudMenu MenuBoxColor Blank Spline 0.0 0.0
Animate HudMenu BgColor Blank Spline 0.0 0.0
//
Animate HudMenu FgColor FragNeutral100 Spline 0.0 0.05
Animate HudMenu MenuColor FragNeutral100 Spline 0.0 0.05
Animate HudMenu ItemColor FragNeutral100 Spline 0.0 0.05
//
SetFont HudMenu TextFont FontMedium_10_Additive 0.0
Animate HudMenu TextScan 0 Spline 0.0 0.05
Animate HudMenu Blur 0 Spline 0.0 0.0
}
Maximum call stack size exceeded at i.deleteReferences
The server crashes with this error when a file references itself as a #base file and then removes the reference
Don't throw a warning because deliberately missing #base files is a comment method for HUD customisation
The message should resemble Cannot find file '${documentSymbol.detail}'
I'm not sure if all of the problems listed below are really false detections, but at least some seem to be.
ControlName
used in files inside hl2_misc_dir.vpk
and platform_misc_dir.vpk
are marked as not valid. Such as URLLabel
(used in m0rehud) or CReplayBrowserDetailsPanel
(used in ahud)."textAlignment"
"left"
/"Left"
, "northwest"
, "center-west"
. The first value is used in many files. The second one has about 10 uses. The last is only used once, so it's very likely a typo."paintborder"
, "paintbackground"
"2"
. Each is used only twice, so...It seems that mod_textures.txt
matches VDF so it would be helpful if the extension could support this file and related ones as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.