Skip to content

Commit

Permalink
feat: Rename shaderlab section to shaderls
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Aug 24, 2023
1 parent e9228f1 commit b43a5ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Server/Handlers/CompletionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override async Task<CompletionList> Handle(CompletionParams request, Canc
{
var conf = await _configuration.GetScopedConfiguration(request.TextDocument.Uri, cancellationToken);
var options = new ServerOptions();
conf.GetSection("ShaderLab").Bind(options);
conf.GetSection("ShaderLS").Bind(options);
return GenerateCompletions(request, options);
}

Expand Down
2 changes: 1 addition & 1 deletion Server/Handlers/TextDocumentSyncHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override async Task<Unit> Handle(DidOpenTextDocumentParams notification,

var conf = await _configuration.GetScopedConfiguration(uri, token);
var options = new ServerOptions();
conf.GetSection("ShaderLab").Bind(options);
conf.GetSection("ShaderLS").Bind(options);

string text = notification.TextDocument.Text;
_workspace.Init(uri);
Expand Down
2 changes: 1 addition & 1 deletion Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static void Configure(LanguageServerOptions options)

private static void ConfigureServices(IServiceCollection services)
{
services.AddSingleton(new ConfigurationItem { Section = "ShaderLab" });
services.AddSingleton(new ConfigurationItem { Section = "ShaderLS" });
services.AddSingleton(new DocumentSelector(
new DocumentFilter { Pattern = "**/*.shader" },
new DocumentFilter { Pattern = "**/*.cginc" },
Expand Down
2 changes: 1 addition & 1 deletion Server/shader-ls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<RepositoryUrl>https://github.com/jcs090218/shader-language-server</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>language-server;shader;unity</PackageTags>
<Version>0.1.1</Version>
<Version>0.1.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit b43a5ac

Please sign in to comment.