Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zalan-racz-gaijin committed Jan 16, 2024
1 parent 0ae351d commit 25d6dd8
Show file tree
Hide file tree
Showing 14 changed files with 102 additions and 4 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.1.0] - 2024.01.16.

### Added

- Code completion (for built-on items, and DSHL macros)
- Signature help (for DSHL macros)
- Document highlights (for DSHL macros)
- Hover (for DSHL macros)
- Document symbols (for DSHL macros)
- Inlay hints (for DSHL macros)
- Go to definition (for DSHL macros)
- Go to declaration (for DSHL macros)
- Go to implementation (for DSHL macros)

### Improved

- HLSL snippets are only provided inside HLSL blocks
- DSHL snippets are only provided outside HLSL blocks

### Fixed

- Added missing functions, types and semantics, mostly related to ray-tracing functionality to HLSL syntax highlight
- Added missing modifiers (optional, global, register) to DSHL syntax highlight
- Added missing ##assert to HLSL syntax highlight
- Removed unavailable operators from DSHL syntax highlight
- Removed assembly-only registers from HLSL syntax highlight
- Removed the bad indentation after if statements
- Fixed the misspelled packoffset in HLSL syntax highlight

## [1.0.0] - 2023.12.11.

### Added
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2023, Gaijin Games Kft.
Copyright (c) 2024, Gaijin Games Kft.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
71 changes: 70 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,72 @@ Dagor Shader Language Support for Visual Studio Code. If you're not on x64 archi

### Syntax highlight

The extension colorizes types, variables, functions, constructors, keywords, modifiers, semantics, attributes, preprocessor directives, operators, literals, and comments.

![syntax highlight, dark theme](res/screenshots/syntax-highlight-dark.png)

![syntax highlight, light theme](res/screenshots/syntax-highlight-light.png)

### Code completion

The extension provides types, variables, functions, constructors, keywords, modifiers, semantics, attributes, preprocessor directives, code snippets, and DSHL macros 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.

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

### Document highlights

The extension can highlight all the occurrences of the selected DSHL macro in the file.

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

### Hover

The extension can provide useful information if you hover over DSHL macros.

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

### Document symbols

The extension can provide outline information and breadcrumbs about the DSHL macros. You can also easily find them by typing a @ into the Command Palette.

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

### Document links

This feature only works in the desktop version.
The extension can follow the DSHL and the HLSL include statements. This feature only works in the desktop version.

![document links](res/screenshots/document-link.gif)

### Inlay hints

The extension can show DSHL macro 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.

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

### Go to / Peek declarations

You can find (go to / peek) the declaration of a DSHL macro.

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

### Go to / Peek implementations

You can find (go to / peek) the implementation of DSHL macro.

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

### Comment toggling

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

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

### 1.1.0

- Code completion (for built-in items, and DSHL macros)
- Signature help (for DSHL macros)
- Document highlights (for DSHL macros)
- Hover (for DSHL macros)
- Document symbols (for DSHL macros)
- Inlay hints (for DSHL macros)
- Go to definition (for DSHL macros)
- Go to declaration (for DSHL macros)
- Go to implementation (for DSHL macros)
- Several bugfixes and optimizations

### 1.0.0

- Syntax highlight
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.0.0",
"version": "1.1.0",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
Expand Down
Binary file added res/screenshots/completion.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/declaration.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/definition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/highlights.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/hover.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/implementation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/inlay-hints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/signature-help.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/screenshots/symbols.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 25d6dd8

Please sign in to comment.