Skip to content

Commit 868585b

Browse files
committed
Use path.combine
1 parent d824ebb commit 868585b

File tree

7 files changed

+16
-37
lines changed

7 files changed

+16
-37
lines changed

Server/Handlers/SignatureHelpHandler.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
using System.Linq;
2-
using System.Security.Cryptography.Xml;
3-
using System.Text.RegularExpressions;
1+
using System.Text.RegularExpressions;
42
using Microsoft.Extensions.Logging;
53
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
64
using OmniSharp.Extensions.LanguageServer.Protocol.Document;
75
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
86
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
97
using ShaderlabVS.Data;
108
using ShaderLS.Management;
11-
using static System.Net.Mime.MediaTypeNames;
129

1310
namespace ShaderLS.Handlers
1411
{

Server/ShaderlabVS.Data/Attributes.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace ShaderlabVS.Data
1+
namespace ShaderlabVS.Data
42
{
53
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
64
sealed class DefinationKeyAttribute : Attribute

Server/ShaderlabVS.Data/DefinationDataProvider.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Reflection;
1+
using System.Reflection;
52

63
namespace ShaderlabVS.Data
74
{

Server/ShaderlabVS.Data/DefinationReader.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Collections.Generic;
2-
using System.IO;
3-
using System.Text;
1+
using System.Text;
42
using System.Text.RegularExpressions;
53

64
namespace ShaderlabVS.Data

Server/ShaderlabVS.Data/Models.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
5-
namespace ShaderlabVS.Data
1+
namespace ShaderlabVS.Data
62
{
73
#region Common
84
public class ModelBase

Server/ShaderlabVS.Data/ShaderlabDataManager.cs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics.Eventing.Reader;
4-
using System.IO;
5-
using System.Linq;
6-
using System.Reflection;
1+
using System.Reflection;
72

83
namespace ShaderlabVS.Data
94
{
@@ -13,15 +8,15 @@ namespace ShaderlabVS.Data
138
public class ShaderlabDataManager
149
{
1510
#region Constants
16-
public static string HLSL_CG_DATATYPE_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "HLSL_CG_datatype.def";
17-
public static string HLSL_CG_FUNCTION_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "HLSL_CG_functions.def";
18-
public static string HLSL_CG_KEYWORD_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "HLSL_CG_Keywords.def";
19-
20-
public static string UNITY3D_DATATYPE_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "Unity3D_datatype.def";
21-
public static string UNITY3D_FUNCTION_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "Unity3D_functions.def";
22-
public static string UNITY3D_KEYWORD_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "Unity3D_keywords.def";
23-
public static string UNITY3D_MACROS_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "Unity3D_macros.def";
24-
public static string UNITY3D_VALUES_DEFINATIONFILE = "Data" + Path.DirectorySeparatorChar.ToString() + "Unity3D_values.def";
11+
public static string HLSL_CG_DATATYPE_DEFINATIONFILE = Path.Combine("Data", "HLSL_CG_datatype.def");
12+
public static string HLSL_CG_FUNCTION_DEFINATIONFILE = Path.Combine("Data", "HLSL_CG_functions.def");
13+
public static string HLSL_CG_KEYWORD_DEFINATIONFILE = Path.Combine("Data", "HLSL_CG_Keywords.def");
14+
15+
public static string UNITY3D_DATATYPE_DEFINATIONFILE = Path.Combine("Data", "Unity3D_datatype.def");
16+
public static string UNITY3D_FUNCTION_DEFINATIONFILE = Path.Combine("Data", "Unity3D_functions.def");
17+
public static string UNITY3D_KEYWORD_DEFINATIONFILE = Path.Combine("Data", "Unity3D_keywords.def");
18+
public static string UNITY3D_MACROS_DEFINATIONFILE = Path.Combine("Data", "Unity3D_macros.def");
19+
public static string UNITY3D_VALUES_DEFINATIONFILE = Path.Combine("Data", "Unity3D_values.def");
2520
#endregion
2621

2722
#region Properties

Server/ShaderlabVS/Utilities.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace ShaderlabVS
1+
namespace ShaderlabVS
42
{
53
internal class Utilities
64
{

0 commit comments

Comments
 (0)