shader-slang / slang-vscode-extension Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Code extension for Slang
Home Page: https://marketplace.visualstudio.com/items?itemName=shader-slang.slang-language-extension
License: MIT License
Visual Studio Code extension for Slang
Home Page: https://marketplace.visualstudio.com/items?itemName=shader-slang.slang-language-extension
License: MIT License
Hi!
Thank you for the amazing vs code plugin!
I noticed a small, but annoying bug when formatting code, here is the most basic example I could come up with to reproduce it:
void example()
{
float value = 1;
bool2(value<1, 1> 1);
}
When an identifier
is followed by a <
and a comma
and a >
the spaces are removed between the operators and the operands.
Maybe it is handled as a generic parameter instead of two separate expressions?
Server will crash when open Source/RenderPasses/ReSTIRPTPass/TemporalReuse.cs.lang
from https://github.com/DQLin/ReSTIR_PT
Server log on first start and restart: (log level have been set to message
)
// Opened vscode with only above file open
[Trace - 09:31:52] Sending request 'initialize - (0)'.
[Trace - 09:31:52] Received response 'initialize - (0)' in 134ms.
[Trace - 09:31:52] Sending notification 'initialized'.
[Trace - 09:31:52] Sending notification 'textDocument/didOpen'.
[Trace - 09:31:52] Sending request 'textDocument/inlayHint - (1)'.
[Trace - 09:31:53] Sending notification '$/setTrace'.
[Trace - 09:31:53] Received request 'client/registerCapability - (999)'.
[Trace - 09:31:53] Sending response 'client/registerCapability - (999)'. Processing request took 0ms
[Trace - 09:31:53] Received request 'workspace/configuration - (4627)'.
[Trace - 09:31:53] Sending response 'workspace/configuration - (4627)'. Processing request took 0ms
[Trace - 09:31:53] Received request 'workspace/inlayHint/refresh - (0)'.
[Trace - 09:31:53] Sending response 'workspace/inlayHint/refresh - (0)'. Processing request took 1ms
[Info - 09:31:53] Connection to server got closed. Server will restart.
true
// Sever crashed and restarting. After restart for 5 times, vscode does not restart it anymore.
[Trace - 09:31:53] Sending request 'initialize - (0)'.
[Trace - 09:31:53] Received response 'initialize - (0)' in 162ms.
[Trace - 09:31:53] Sending notification 'initialized'.
[Trace - 09:31:53] Sending notification 'textDocument/didOpen'.
[Trace - 09:31:53] Sending request 'textDocument/inlayHint - (1)'.
[Trace - 09:31:53] Received request 'client/registerCapability - (999)'.
[Trace - 09:31:53] Sending response 'client/registerCapability - (999)'. Processing request took 0ms
[Trace - 09:31:53] Received request 'workspace/configuration - (4627)'.
[Trace - 09:31:53] Sending response 'workspace/configuration - (4627)'. Processing request took 0ms
[Info - 09:31:53] Connection to server got closed. Server will restart.
true
Installing the slang extension using the MacOS version of vscode results in:
[Error - 8:43:29 AM] Starting client failed
Error: spawn Unknown system error -8
at ChildProcess.spawn (node:internal/child_process:412:11)
at Object.spawn (node:child_process:718:9)
at /Users/cek/.vscode/extensions/shader-slang.slang-language-extension-1.1.2/client/out/main.js:39:17006
The code in question looks something like:
else if (Ba.is(d) && d.command) {
let w = d, S = w.args || [],
b = Object.assign({}, w.options);
b.cwd = b.cwd || _;
let N = Nn.spawn(w.command, S, b);
return !N || !N.pid ?
Promise.reject(`Launching server using command ${
w.command} failed.`) :
I am having issue with code formatting it's just doesn't work. I have a Windows PC and it's working good. But recently I bought a Mac and with all the same extensions and all packages installed formatting does not work, when all other features work as expected. I use latest version of VSCode, your extension and macOS Ventura 13.2. I'm not quite figured how to show you log but sometimes when I open "Output" tab and select "Extension Host" there is a some error with C++ unfortunately cannot provide error because I cannot get it now. C++ extension of course installed and all packages.
Hi
I'm working on falcor in Vs2019, I'm wondering is there slang extension for vs2022/2019/
Thanks
Y
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.