Skip to content

Commit

Permalink
version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
racz16 committed Apr 9, 2021
1 parent 461f1dd commit 4cca6dd
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 8 deletions.
25 changes: 23 additions & 2 deletions CHANGELOG.md
@@ -1,8 +1,29 @@
# Change Log

## [Unreleased]
- Preprocessor related improvements
- Other smaller improvements
For new feature plans see the [GitHub Projects](https://github.com/racz16/WebGL-GLSL-Editor/projects) page.

## [1.2.1] - 2021.04.09.
### Added
- Support for the extensions
- Range formatting
- Generating preprocessed GLSL
### Improved
- Improved code completion in preprocessor directives, in layout qualifiers and before struct members
- Improved syntax highlight (const variables)
- Improved diagnostic (warnings)
- Displaying a message if the injected code contains errors
- Updated packages
- Other small updates
### Fixed
- Diagnostic problems in Linux
- Code completion in comments
- Inconsistent go to definition behaviour
- Inconsistent find references behaviour
- Displaying signature and hover information even if the variable or the function not exist
- Problem with renaming constructors
- Truncated diagnostic messages
- Other small fixes

## [1.2.0] - 2021.03.16.
### Added
Expand Down
25 changes: 20 additions & 5 deletions README.md
Expand Up @@ -7,15 +7,15 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5e8500dbaa1d42449f785c4ba06372d5)](https://app.codacy.com/manual/racz1666/WebGL-GLSL-Editor?utm_source=github.com&utm_medium=referral&utm_content=racz16/WebGL-GLSL-Editor&utm_campaign=Badge_Grade_Dashboard)
[![build and package](https://img.shields.io/github/workflow/status/racz16/WebGL-GLSL-Editor/build%20and%20package.svg?logo=github)](https://github.com/racz16/WebGL-GLSL-Editor/actions/workflows/build-and-package.yml)

This extension adds language support for GLSL ES 100 (WebGL 1 and OpenGL ES 1.00) and GLSL ES 300 (WebGL 2 and OpenGL ES 3.00). It supports most of the well-known VS Code language features like syntax highlight, IntelliSense and more, see the details below.
This extension adds language support for GLSL ES 100 (WebGL 1 and OpenGL ES 1.00) and GLSL ES 300 (WebGL 2 and OpenGL ES 3.00). It supports all the WebGL compatible GLSL extensions too. It supports most of the well-known VS Code language features like syntax highlight, IntelliSense and more, see the details below.

## Features
### Syntax highlight
The extension colorizes types, builtin types, variables, builtin variables, functions, keywords, qualifiers, operators, preprocessor directives and comments.

![syntax highlighting](res/png/screenshots/syntax-highlighting.png)
### Diagnostic
The extension uses [glslang](https://github.com/KhronosGroup/glslang), the Khronos Group's reference GLSL compiler to provide diagnostic informations. It also grays out the unused functions, types and variables.
The extension uses [glslang](https://github.com/KhronosGroup/glslang), the Khronos Group's reference GLSL compiler to provide diagnostic informations (errors and warnings). It also grays out the unused functions, types and variables.

![diagnostic](res/png/screenshots/diagnostic.png)
### Offline documentation
Expand All @@ -31,7 +31,7 @@ The extension provides types, variables, functions, constructors, keywords, qual

![code completion](res/png/screenshots/completion.png)
### Formatting
The extension can format the source code.
The extension can format the whole source code and it can format a region of the source code.
#### Before formatting
![before formatting](res/png/screenshots/formatting-before.png)
#### After formatting
Expand Down Expand Up @@ -92,6 +92,12 @@ You can find (go to / find all / peek) the implementation of a function.
You can find (go to / find all / peek) the references of a type, a variable, a function or a constructor.

![references](res/png/screenshots/references.png)
### Generating preprocessed GLSL source code
You can generate preprocessed GLSL source code by running a command.
#### Before the preprocessor
![before the preprocessor](res/png/screenshots/preprocessor-before.png)
#### After the preprocessor
![after the preprocessor](res/png/screenshots/preprocessor-after.png)
### Commands for online documentation
You can easily access several online documentations by commands.

Expand All @@ -101,8 +107,8 @@ You can easily access several online documentations by commands.
* `webgl-glsl-editor.strictRename`: Prevents invalid renames.
* `webgl-glsl-editor.alwaysOpenOnlineDoc`: Documentation is always opened online in the browser.
* `webgl-glsl-editor.alwaysOpenOfflineDocInNewTab`: Offline documentation is always opened in new tab.
* `codeInjection`: Enable/disable code injection.
* `codeInjectionSource`: The lines of the injected source code. Only works if Code Injection is enabled.
* `webgl-glsl-editor.codeInjection`: Enable/disable code injection.
* `webgl-glsl-editor.codeInjectionSource`: The lines of the injected source code. Only works if Code Injection is enabled.

## Known Issues
- Preprocessor directives may cause problems
Expand All @@ -113,6 +119,15 @@ You can find the user provided issues on [GitHub](https://github.com/racz16/WebG
## Release Notes
For more information, see the [changelog](CHANGELOG.md).

### 1.2.1
- Support for the extensions
- Range formatting
- Generating preprocessed GLSL
- Improved code completion
- Improved syntax highlight
- Improved diagnostic
- Other small changes and bugfixes

### 1.2.0
- Formatting
- Syntax highlight in HTML scritps
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -28,7 +28,7 @@
"color": "#990000",
"theme": "dark"
},
"version": "1.2.0",
"version": "1.2.1",
"engines": {
"vscode": "^1.55.0"
},
Expand Down
Binary file added res/png/screenshots/preprocessor-after.png
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/png/screenshots/preprocessor-before.png
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 4cca6dd

Please sign in to comment.