diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e482e..7e703a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Change Log +## [1.3.0] - 2024.02.14. + +### Added + +- Code completion (for DSHL variables, shaders, and block statements) +- Document highlights (for DSHL variables, functions, shaders, and block statements) +- Hover (for DSHL variables, functions, shaders, and block statements) +- Document symbols (for DSHL variables, shaders, and block statements) +- Inlay hints (for DSHL functions) +- Signature help (for DSHL functions) +- Go to definition (for DSHL variables, functions, shaders, and block statements) +- Go to declaration (for DSHL variables, functions, shaders, and block statements) +- Go to implementation (for DSHL functions, shaders, and block statements) +- Adding assume and supports code snippets +- Adding folding ranges based on blocks + +### Improved + +- Better type informations in code completion and in document symbols +- Updated packages +- Various optimizations + +### Fixed + +- Fixing a bug where closing and reopening a file prevented to update the file analyzation +- Fixing preprocessor directives in one liner hlsl blocks in syntax highlight +- Fixing macros before loops and ifs in syntax highlight +- Fixing syntax highlight when #defines contain ## +- Adding @sampler to the HLSL syntax highlight +- Using the cleaned content of DSHL macros for expansion instead of the original to get rid of comments +- Fixing a bug in HLSL macro expansion, where positions were wrong positions were computed + ## [1.2.0] - 2024.01.15. ### Added diff --git a/Dagor-Shader-Language-Server b/Dagor-Shader-Language-Server index 2f79648..ace272a 160000 --- a/Dagor-Shader-Language-Server +++ b/Dagor-Shader-Language-Server @@ -1 +1 @@ -Subproject commit 2f796484cdbc225f0c2e24d8f92c5924692f0e76 +Subproject commit ace272a829cf0eee0df4b58ff71c230875607df4 diff --git a/README.md b/README.md index 945ff77..f2e1f2e 100644 --- a/README.md +++ b/README.md @@ -17,31 +17,31 @@ The extension colorizes types, variables, functions, constructors, keywords, mod ### Code completion -The extension provides types, variables, functions, constructors, keywords, modifiers, semantics, attributes, preprocessor directives, code snippets, DSHL macros, and HLSL defines using IntelliSense, according to the context. It can also give you a quick summary about the item, and links to the documentation when available. +The extension provides types, variables, functions, constructors, keywords, modifiers, semantics, attributes, shaders, block statements, preprocessor directives, code snippets, DSHL macros, and HLSL defines using IntelliSense, according to the context. It can also give you a quick summary about the item, and links to the documentation when available. ![code completion](res/screenshots/completion.gif) ### Signature help -The extension can display a signature helper for DSHL macros. +The extension can display a signature helper for DSHL functions, and macros. ![signature help](res/screenshots/signature-help.gif) ### Document highlights -The extension can highlight all the occurrences of the selected DSHL macro or HLSL define in the file. +The extension can highlight all the occurrences of the selected DSHL variable, function, shader, block statement, macro or HLSL define in the file. ![highlights](res/screenshots/highlights.gif) ### Hover -The extension can provide useful information if you hover over DSHL macros or HLSL defines. +The extension can provide useful information if you hover over DSHL variables, functions, shaders, block statements, macros or HLSL defines. ![hover](res/screenshots/hover.gif) ### Document symbols -The extension can provide outline information and breadcrumbs about DSHL macros and HLSL defines. You can also easily find them by typing a @ into the Command Palette. +The extension can provide outline information and breadcrumbs about DSHL variables, shaders, block statements, macros and HLSL defines. You can also easily find them by typing a @ into the Command Palette. ![symbols](res/screenshots/symbols.gif) @@ -53,25 +53,25 @@ The extension can follow the DSHL and the HLSL include statements. This feature ### Inlay hints -The extension can show DSHL macro and HLSL define parameters in the source code. +The extension can show DSHL function, macro, and HLSL define parameters in the source code. ![inlay hints](res/screenshots/inlay-hints.png) ### Go to / Peek definitions -You can find (go to / peek) the definition of a DSHL macro or a HLSL define. +You can find (go to / peek) the definition of a DSHL variable, function, shader, block statement, macro or a HLSL define. ![definitions](res/screenshots/definition.gif) ### Go to / Peek declarations -You can find (go to / peek) the declaration of a DSHL macro or a HLSL define. +You can find (go to / peek) the declaration of a DSHL variable, function, shader, block statement, macro or a HLSL define. ![declarations](res/screenshots/declaration.gif) ### Go to / Peek implementations -You can find (go to / peek) the implementation of DSHL macro or a HLSL define. +You can find (go to / peek) the implementation of DSHL function, shader, block statement, macro or a HLSL define. ![implementations](res/screenshots/implementation.gif) @@ -119,6 +119,21 @@ If you have any problems or feature request for the extension, feel free to crea For more information, see the [changelog](CHANGELOG.md). +### 1.3.0 + +- Code completion (for DSHL variables, shaders, and block statements) +- Document highlights (for DSHL variables, functions, shaders, and block statements) +- Hover (for DSHL variables, functions, shaders, and block statements) +- Document symbols (for DSHL variables, shaders, and block statements) +- Inlay hints (for DSHL functions) +- Signature help (for DSHL functions) +- Go to definition (for DSHL variables, functions, shaders, and block statements) +- Go to declaration (for DSHL variables, functions, shaders, and block statements) +- Go to implementation (for DSHL functions, shaders, and block statements) +- Adding assume and supports code snippets +- Adding folding ranges based on blocks +- Several improvements, bugfixes and optimizations + ### 1.2.0 - Code completion (for HLSL defines, include statements, DSHL macro parameters) diff --git a/package.json b/package.json index f5ad461..a7366dd 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Dagor Shader Language Support", "description": "Language support extension for the Dagor Shader Language.", "publisher": "gaijin", - "version": "1.2.0", + "version": "1.3.0", "license": "BSD-3-Clause", "repository": { "type": "git",