Skip to content

Commit

Permalink
Version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zalan-racz-gaijin committed Mar 14, 2024
1 parent 02948d4 commit c90d14b
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 11 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dagor-Shader-Language-Server
33 changes: 24 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c90d14b

Please sign in to comment.