🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

dockerfile-language-server-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerfile-language-server-nodejs - npm Package Versions

1234

0.0.7

Diff
rcjsuen
published 0.0.7 •

Changelog

Source

[0.0.7] - 2017-09-09

Added

  • textDocument/completion
    • COPY's --from build stage flag (#148)
    • add '-' as a trigger character to suggest instruction flags (#155)
    • suggest image tags in FROM instructions (#154)
    • set source image as suggested build stage's documentation text (#159)
    • suggest numeric build stage index if source image is unnamed (#160)
  • textDocument/hover
    • COPY's --from build stage flag (#150)
  • textDocument/publishDiagnostics
    • warn if ENV or LABEL is missing closing quote (#143)
    • warn if FROM's build stage name is invalid (#132)
    • warn if an invalid unit of time is used in a duration flag (#152)
    • warn if COPY does not have two arguments (#157)
  • textDocument/signatureHelp
    • escape parser directive (#147)
    • instruction flags (#147)
      • COPY's --from
      • HEALTHCHECK CMD flags
    • instructions (#162)

Fixed

  • correct handling of escaped quotes in ENV variables (#144)
  • include escape character in value of single quoted ENV variables (#146)
  • ignore whitespace that precedes an escaped newline in ENV variables (#147)
  • fix handling of escape characters in SHELL's JSON strings (#151)
  • do not suggest duplicated build stage names as completion items (#156)
  • only suggest build stages that come after the current COPY line (#158)
  • restrict operations on ARG and ENV variables to a build stage (#163)
  • make FROM variables only interact with the initial set of ARG instructions (#153)
  • skip validation of nested comments in escaped newlines of ENV and LABEL instructions (#167)
  • prevent hovers from rendering nested comments for ARG and ENV instructions (#168)
rcjsuen
published 0.0.6 •

Changelog

Source

[0.0.6] - 2017-08-12

Added

  • textDocument/completion
    • suggest completion items even if the prefix string's case does not match (#142)
  • textDocument/publishDiagnostics
    • warn about duplicated build stage names (#133)

Fixed

  • fix completion handling so that the escape parser directive is suggested in more cases (#138)
  • always use the first declaration of a variable for its definition (#141)
  • highlight ARG variables that get declared again (#140)
rcjsuen
published 0.0.5 •

Changelog

Source

[0.0.5] - 2017-08-07

Fixed

  • do not show arguments if snippets are not supported (#136)
  • show only one ARG completion item if snippets are not supported (#137)
rcjsuen
published 0.0.4 •

Changelog

Source

[0.0.4] - 2017-08-06

Fixed

  • created actual docker-langserver file instead of referencing server.js (#134)
rcjsuen
published 0.0.3 •

Changelog

Source

[0.0.3] - 2017-08-06

Added

  • created a docker-langserver binary for launching the server (#134)
  • textDocument/codeAction
    • created docker.command.convertToLowercase for directives not written in lowercase (#128)
  • textDocument/onTypeFormatting
    • format the next line if an escape character is inserted (#130)
  • textDocument/publishDiagnostics
    • validate the syntax of LABEL instructions (#100)
    • warn if invalid ONBUILD trigger instructions are used (#117)
    • warn if ENV/LABEL instructions have a blank name (#122)
    • EXPOSE
      • warn if an invalid protocol is specified (#126)
    • SHELL
      • check that SHELL instructions are written as a JSON array (#92)
      • warn if SHELL's JSON array is empty (#122)
  • workspace/executeCommand
    • handle docker.command.convertToLowercase and convert the string in the range to lowercase (#128)

Fixed

  • fixed parsing of escaped whitespace values in ENV instructions (#115)
  • prevent undeclared variables from being suggested as completion items (#118)
  • prevent completion items from being suggested in multiline instructions (#125)
  • handle TCP and UDP in an EXPOSE instruction's argument (#123)
  • only search for parser directives at the top of a Dockerfile (#129)
  • fix handling of escape characters nested in an instruction (#131)
rcjsuen
published 0.0.2 •

Changelog

Source

[0.0.2] - 2017-07-31

Added

  • settings
    • docker.languageserver.diagnostics.instructionCmdMultiple? (#81)
      • value = ( "ignore" | "warning" | "error" )
      • toggles the diagnostic severity if multiple CMD instructions are found in the Dockerfile
    • docker.languageserver.diagnostics.instructionEntrypointMultiple? (#90)
      • value = ( "ignore" | "warning" | "error" )
      • toggles the diagnostic severity if multiple ENTRYPOINT instructions are found in the Dockerfile
    • docker.languageserver.diagnostics.instructionHealthcheckMultiple? (#80)
      • value = ( "ignore" | "warning" | "error" )
      • toggles the diagnostic severity if multiple HEALTHCHECK instructions are found in the Dockerfile
  • textDocument/completion
    • suggest build stage names in a COPY instruction (#44)
    • add '=' as a trigger character
    • include the --start-period flag in HEALTHCHECK CMD items (#78)
    • HEALTHCHECK CMD flags (#69, #101)
    • suggest $ variables (#93)
      • ARG and ENV variables
      • default Docker ARG variables
      • add '$' as a trigger character
  • textDocument/hover
    • HEALTHCHECK CMD flags (#82, #104)
  • textDocument/publishDiagnostics
    • check the spelling of instruction flags (#75)
      • COPY's from
      • HEALTHCHECK's interval, retries, start-period, timeout
    • multiple instructions found when only one allowed
      • CMD (#81)
      • ENTRYPOINT (#90)
      • HEALTHCHECK (#80)
    • check that the same flag is not used twice (#83)
      • COPY's from
      • HEALTHCHECK's interval, retries, start-period, timeout
    • check that flags have a value defined (#91)
      • COPY's from
      • HEALTHCHECK's interval, retries, start-period, timeout
    • HEALTHCHECK
      • warn if arguments follow a HEALTHCHECK NONE (#84)
      • warn if the retries flag doesn't specify a number (#85)
      • warn if the retries flag is not a positive intger (#89)
      • warn if no arguments follow a HEALTHCHECK CMD (#96)
      • warn if duration flags are invalid (#87)
      • warn if duration flags do not specify a duration (#86)
      • warn if duration flags are too short (#97)
    • ONBUILD
      • trigger instruction not written in uppercase (#102)
      • create diagnostics for validating trigger instructions' content (#112)
  • created a CHANGELOG.md file to document the project's changes (#77)

Fixed

  • fixed a typo in completion items for WORKDIR (#76)
  • fixed a parsing problem with ENV variables and escaped characters (#94)
  • fixed CMD validation to not warn even if there are no arguments (#98)
  • fixed code actions to return something if a diagnostic's code is a string and not a number (#99)
  • fixed hovers not working for ONBUILD triggers that are not written in uppercase (#103)
rcjsuen
published 0.0.1 •

Changelog

Source

0.0.1 - 2017-07-16

Added

  • textDocument/didChange
    • incremental document synchronization
  • textDocument/publishDiagnostics
    • instructions not written in uppercase
    • directives not written in lowercase
    • missing or incorrect number of expected of arguments to an instruction
    • invalid escape parser directive value
    • EXPOSE
      • invalid container port
    • FROM
      • no FROM instruction found
      • having a second argument not equal to the AS keyword
    • STOPSIGNAL
      • invalid stop signal definition
  • textDocument/codeAction
    • convert instruction to uppercase
    • remove extra argument to instruction
    • convert invalid escape directive to backslash
    • convert invalid escape directive to backtick
    • convert second argument of FROM to AS
  • textDocument/completion
    • snippets support
    • instructions
    • escaper parser directive
    • ONBUILD trigger instructions
  • completionItem/resolve
    • provide documentation information
  • textDocument/hover
    • instructions
    • escape parser directive
    • ONBUILD trigger instructions
    • ARG and ENV variables
  • textDocument/documentHighlight
    • ARG and ENV variables
    • FROM and COPY build stages
  • textDocument/rename
    • ARG and ENV variables
    • FROM and COPY build stages
  • textDocument/definition
    • ARG and ENV variables
    • FROM and COPY build stages
  • textDocument/documentSymbol
    • instructions
    • escape parser directive
  • textDocument/formatting
  • textDocument/rangeFormatting