Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.9.0.0 #10

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# 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)
- 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)

### 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, and syntax highlight
- Improving how document symbols work
- 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.1] 2024.05.17.

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion DagorShaderLanguageSupport/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
4 changes: 2 additions & 2 deletions DagorShaderLanguageSupport/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

[assembly: ComVisible(false)]

[assembly: AssemblyVersion("1.8.1.0")]
[assembly: AssemblyFileVersion("1.8.1.0")]
[assembly: AssemblyVersion("1.9.0.0")]
[assembly: AssemblyFileVersion("1.9.0.0")]
2 changes: 1 addition & 1 deletion DagorShaderLanguageSupport/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Gaijin.DagorShaderLanguageSupport" Version="1.8.1.0" Language="en-US" Publisher="Gaijin Entertainment" />
<Identity Id="Gaijin.DagorShaderLanguageSupport" Version="1.9.0.0" Language="en-US" Publisher="Gaijin Entertainment" />
<DisplayName>Dagor Shader Language Support</DisplayName>
<Description xml:space="preserve">Language support extension for the Dagor Shader Language.</Description>
<MoreInfo>https://github.com/GaijinEntertainment/Dagor-Shader-Language-Support-for-Visual-Studio</MoreInfo>
Expand Down
36 changes: 29 additions & 7 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](DagorShaderLanguageSupport/Resources/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](DagorShaderLanguageSupport/Resources/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](DagorShaderLanguageSupport/Resources/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.
The extension can provide outline information and breadcrumbs about DSHL variables, shaders, block statements, macros, HLSL variables, functions, structs, classes, interfaces, enums, and defines.

![symbols](DagorShaderLanguageSupport/Resources/Screenshots/symbols.gif)

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

### 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](DagorShaderLanguageSupport/Resources/Screenshots/definition.gif)

### Go to declarations

You can find 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 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](DagorShaderLanguageSupport/Resources/Screenshots/declaration.gif)

### Go to implementations

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

![implementations](DagorShaderLanguageSupport/Resources/Screenshots/implementation.gif)

Expand All @@ -81,6 +81,14 @@ You can find the type definition of an HLSL variable.

![type definition](DagorShaderLanguageSupport/Resources/Screenshots/type-definition.gif)

### 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.

### Comment toggling

![comment toggling](DagorShaderLanguageSupport/Resources/Screenshots/comment-toggle.gif)
Expand Down Expand Up @@ -109,6 +117,20 @@ 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)
- 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)
- Several improvements, and bugfixes

### 1.8.1

- In 1.8.0 I accidentally published the language server 1.7.0, instead of 1.8.0, this release fixes this and makes new features available
Expand Down
Loading