Skip to content

Commit

Permalink
Merge pull request #18 from GaijinEntertainment/version-1.9.0
Browse files Browse the repository at this point in the history
Version 1.9.0
  • Loading branch information
zalan-racz-gaijin authored Jun 14, 2024
2 parents 2c90dca + 665d38c commit 210fc0a
Show file tree
Hide file tree
Showing 5 changed files with 529 additions and 271 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Change Log

## [1.9.0] 2024.06.14.

### Added

- Code completion (for HLSL functions)
- Document highlights (for HLSL functions)
- Hover (for HLSL functions)
- Document symbols (for HLSL functions)
- Inlay hints (for HLSL functions)
- Signature help (for HLSL functions)
- Go to definition (for user HLSL functions)
- Go to declaration (for user HLSL functions)
- Go to implementation (for user HLSL functions)
- Rename (for all language constructs)
- Find all references (for all language constructs)
- Color picker (for HLSL variable initialization)

### Improved

- Adding descriptions to several DSHL keywords, modifiers, types, channels, functions, and properties in code completion
- Adding shader stages and compile targets to code completion, syntax highlight and snippets
- Updated packages

### Fixed

- Fixing an error where the function name range wasn't contained by the whole function range
- Removing backticks from DSHL code completion descriptions, because Visual Studio can't handle markdown
- Making loop, if, and switch scopes more accurate

## [1.8.0] 2024.05.14.

### Added
Expand Down
2 changes: 1 addition & 1 deletion Dagor-Shader-Language-Server
Submodule Dagor-Shader-Language-Server updated 42 files
+30 −26 README.md
+5 −1 grammar/antlr/DshlParser.g4
+2 −2 grammar/dshl.tmLanguage.json
+0 −6 grammar/language-configuration.json
+118 −127 package-lock.json
+6 −6 package.json
+265 −0 src/core/document-info.ts
+280 −6 src/core/snapshot.ts
+137 −148 src/helper/dshl-info.ts
+63 −6 src/helper/helper.ts
+5,314 −0 src/helper/hlsl-function.ts
+2,050 −1,437 src/helper/hlsl-info.ts
+2,272 −0 src/helper/hlsl-texture-member-functions.ts
+3 −0 src/helper/scope.ts
+6 −0 src/interface/color-picker-info.ts
+9 −3 src/interface/expression-range.ts
+7 −1 src/interface/expression-result.ts
+2 −0 src/interface/function/function-argument.ts
+8 −5 src/interface/function/function-declaration.ts
+11 −1 src/interface/function/function-parameter.ts
+5 −1 src/interface/function/function-usage.ts
+15 −0 src/interface/function/intrinsic-function.ts
+52 −0 src/interface/language-element-info.ts
+6 −0 src/interface/shader-stage.ts
+3 −3 src/interface/snippets.ts
+1 −0 src/interface/variable/variable-declaration.ts
+3 −3 src/processor/dshl-preprocessor.ts
+229 −21 src/processor/dshl-visitor.ts
+180 −19 src/processor/expression-visitor.ts
+51 −0 src/provider/color-presentation-provider.ts
+52 −17 src/provider/completion-provider.ts
+25 −0 src/provider/document-color-provider.ts
+27 −98 src/provider/document-highlight-provider.ts
+198 −85 src/provider/document-symbol-provider.ts
+26 −4 src/provider/hover-provider.ts
+20 −5 src/provider/inlay-hint-provider.ts
+26 −0 src/provider/link-provider-base.ts
+103 −0 src/provider/prepare-rename-provider.ts
+213 −0 src/provider/references-provider.ts
+141 −0 src/provider/rename-request-provider.ts
+31 −4 src/provider/signature-help-provider.ts
+13 −0 src/server.ts
44 changes: 36 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@ The extension provides types, variables, functions, constructors, keywords, modi

### Signature help

The extension can display a signature helper for DSHL functions, and macros.
The extension can display a signature helper for functions, and macros.

![signature help](res/screenshots/signature-help.gif)

### Document highlights

The extension can highlight all the occurrences of the selected DSHL variable, function, shader, block statement, macro, HLSL variable, struct, class, interface, enum, or define in the file.
The extension can highlight all the occurrences of the selected DSHL variable, function, shader, block statement, macro, HLSL variable, function, struct, class, interface, enum, or define in the file.

![highlights](res/screenshots/highlights.gif)

### Hover

The extension can provide useful information if you hover over DSHL variables, functions, shaders, block statements, macros, HLSL variables, structs, classes, interfaces, enums, or defines.
The extension can provide useful information if you hover over DSHL variables, functions, shaders, block statements, macros, HLSL variables, functions, structs, classes, interfaces, enums, or defines.

![hover](res/screenshots/hover.gif)

### Document symbols

The extension can provide outline information and breadcrumbs about DSHL variables, shaders, block statements, macros, HLSL variables, structs, classes, interfaces, enums, and 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, HLSL variables, functions, structs, classes, interfaces, enums, and defines. You can also easily find them by typing a @ into the Command Palette.

![symbols](res/screenshots/symbols.gif)

Expand All @@ -59,25 +59,25 @@ The extension can format the whole document, the selected region, or regions.

### Inlay hints

The extension can show DSHL function, macro, and HLSL define parameters in the source code.
The extension can show DSHL function, macro, and HLSL function, 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 variable, function, shader, block statement, macro, HLSL variable, struct, class, interface, enum, define, or to the included file.
You can find (go to / peek) the definition of a DSHL variable, function, shader, block statement, macro, HLSL variable, function, struct, class, interface, enum, define, or to the included file.

![definitions](res/screenshots/definition.gif)

### Go to / Peek declarations

You can find (go to / peek) the declaration of a DSHL variable, function, shader, block statement, macro, HLSL variable, struct, class, interface, enum, define, or to the included file.
You can find (go to / peek) the declaration of a DSHL variable, function, shader, block statement, macro, HLSL variable, function, struct, class, interface, enum, define, or to the included file.

![declarations](res/screenshots/declaration.gif)

### Go to / Peek implementations

You can find (go to / peek) the implementation of a DSHL function, shader, block statement, macro, HLSL struct, class, interface, enum, define, or to the included file.
You can find (go to / peek) the implementation of a DSHL function, shader, block statement, macro, HLSL function, struct, class, interface, enum, define, or to the included file.

![implementations](res/screenshots/implementation.gif)

Expand All @@ -91,6 +91,18 @@ You can find (go to / peek) the type definition of an HLSL variable.

The extension can show the inheritance-tree of HLSL structs, classes, and interfaces.

### Rename

The extension can rename DSHL variables, macros, macro parameters, HLSL types, enums, enum members, variables, functions, shaders, blocks, and defines.

### Find all references

The extension can find all references of DSHL variables, macros, macro parameters, HLSL types, enums, enum members, variables, functions, shaders, blocks, and defines.

### Color picker

The extension can show a color picker for HLSL `float3` or `float4` variable initializations.

### Comment toggling

![comment toggling](res/screenshots/comment-toggle.gif)
Expand Down Expand Up @@ -135,6 +147,22 @@ If you have any problems or feature request for the extension, feel free to crea

For more information, see the [changelog](CHANGELOG.md).

### 1.9.0

- Code completion (for HLSL functions)
- Document highlights (for HLSL functions)
- Hover (for HLSL functions)
- Document symbols (for HLSL functions)
- Inlay hints (for HLSL functions)
- Signature help (for HLSL functions)
- Go to definition (for user HLSL functions)
- Go to declaration (for user HLSL functions)
- Go to implementation (for user HLSL functions)
- Rename (for all language constructs)
- Find all references (for all language constructs)
- Color picker (for HLSL variable initialization)
- Several improvements, and bugfixes

### 1.8.0

- Code completion (for HLSL struct, class, and enum members)
Expand Down
Loading

0 comments on commit 210fc0a

Please sign in to comment.