Skip to content

Commit

Permalink
fix fast semantic tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX committed Dec 7, 2024
1 parent da2db78 commit bba24cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Sdk/AzurePipelines/AzureDevops.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public static string RelativeTo(string cwd, string filename) {
private static ((int, int)[], Dictionary<(int, int), int>) CreateIdxMapping(TemplateToken token) {
if(token is LiteralToken lit && lit.RawData != null) {
#if HAVE_YAML_DOTNET_FORK
var praw = lit.ToString();
var praw = lit.RawData;

YamlDotNet.Core.Tokens.Scalar found = null;
var scanner = new YamlDotNet.Core.Scanner(new StringReader(praw), true);
Expand Down
4 changes: 2 additions & 2 deletions src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
Expand Down Expand Up @@ -610,7 +610,7 @@ private ScalarToken ParseScalar(
}
if(lit.RawData != null) {
#if HAVE_YAML_DOTNET_FORK
var praw = lit.ToString();
var praw = lit.RawData;

YamlDotNet.Core.Tokens.Scalar found = null;
var scanner = new YamlDotNet.Core.Scanner(new StringReader(praw), true);
Expand Down

0 comments on commit bba24cc

Please sign in to comment.