Giter VIP home page Giter VIP logo

vscode-vdf's People

Contributors

cooolbros avatar dependabot[bot] avatar xcapeest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vscode-vdf's Issues

Error: Request textDocument/documentLink failed

image

[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:

2023-09-11.17-40-57.mp4

But as far as I can tell, that's not the only scenario for this error to be triggered.

Support StopAnimation

It is used in hl2_misc_dir.vpk > scripts/hudanimations.txt line 539

The syntax is: StopAnimation <element> <property> <delay>

Scheme references are not updated in scheme file

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

example:
image

Rename document symbols in #base files

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

parse error while extra label [ $someone || $someone ]

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].

  • It's Ok: [$english]
  • It's Error: [$english || $spanish]

extension version

v4.3.0

Add support for SetFont, SetTexture, and SetString for HUDAnimations

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.

Example with SetFont:
Code_KAZwYNRG9v

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
}

Probably falsely detected problems in default HUD files

I'm not sure if all of the problems listed below are really false detections, but at least some seem to be.

  • A lot of values for 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).
    2023-09-11_18-37-43
  • "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...
  • image
  • image

Support for `mod_textures.txt`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.