Skip to content

Commit

Permalink
Repair semantic tokens / hover of Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX committed Nov 20, 2024
1 parent 868dd31 commit 4abe46c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Runner.Language.Server/AutoCompleter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public async Task<CompletionList> Handle(CompletionParams request, CancellationT
Token = new MappingToken(fileId, 1, 1)
});
} else {
var yamlObjectReader = new YamlObjectReader(fileId, fileContent);
var yamlObjectReader = new YamlObjectReader(fileId, fileContent, rawMapping: true);
TemplateReader.Read(templateContext, isWorkflow ? "workflow-root" : "action-root", yamlObjectReader, fileId, out _);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Runner.Language.Server/HoverProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static TemplateContext CreateTemplateContext(GitHub.DistributedTask.Obje

// Read the file
var fileContent = content;
var yamlObjectReader = new YamlObjectReader(fileId, fileContent);
var yamlObjectReader = new YamlObjectReader(fileId, fileContent, rawMapping: true);
TemplateReader.Read(templateContext, isWorkflow ? "workflow-root" : "action-root", yamlObjectReader, fileId, out _);

templateContext.Errors.Check();
Expand Down
2 changes: 1 addition & 1 deletion src/Runner.Language.Server/SemanticTokenHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static TemplateContext CreateTemplateContext(GitHub.DistributedTask.Obj

// Read the file
var fileContent = content;
var yamlObjectReader = new YamlObjectReader(fileId, fileContent);
var yamlObjectReader = new YamlObjectReader(fileId, fileContent, rawMapping: true);
token = TemplateReader.Read(templateContext, isWorkflow ? "workflow-root" : "action-root", yamlObjectReader, fileId, out _);


Expand Down

0 comments on commit 4abe46c

Please sign in to comment.