Skip to content

Commit b43a5ac

Browse files
committed
feat: Rename shaderlab section to shaderls
1 parent e9228f1 commit b43a5ac

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Server/Handlers/CompletionHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public override async Task<CompletionList> Handle(CompletionParams request, Canc
4040
{
4141
var conf = await _configuration.GetScopedConfiguration(request.TextDocument.Uri, cancellationToken);
4242
var options = new ServerOptions();
43-
conf.GetSection("ShaderLab").Bind(options);
43+
conf.GetSection("ShaderLS").Bind(options);
4444
return GenerateCompletions(request, options);
4545
}
4646

Server/Handlers/TextDocumentSyncHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public override async Task<Unit> Handle(DidOpenTextDocumentParams notification,
6161

6262
var conf = await _configuration.GetScopedConfiguration(uri, token);
6363
var options = new ServerOptions();
64-
conf.GetSection("ShaderLab").Bind(options);
64+
conf.GetSection("ShaderLS").Bind(options);
6565

6666
string text = notification.TextDocument.Text;
6767
_workspace.Init(uri);

Server/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static void Configure(LanguageServerOptions options)
4949

5050
private static void ConfigureServices(IServiceCollection services)
5151
{
52-
services.AddSingleton(new ConfigurationItem { Section = "ShaderLab" });
52+
services.AddSingleton(new ConfigurationItem { Section = "ShaderLS" });
5353
services.AddSingleton(new DocumentSelector(
5454
new DocumentFilter { Pattern = "**/*.shader" },
5555
new DocumentFilter { Pattern = "**/*.cginc" },

Server/shader-ls.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RepositoryUrl>https://github.com/jcs090218/shader-language-server</RepositoryUrl>
2020
<RepositoryType>git</RepositoryType>
2121
<PackageTags>language-server;shader;unity</PackageTags>
22-
<Version>0.1.1</Version>
22+
<Version>0.1.2</Version>
2323
</PropertyGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)