Esempio n. 1
0
        /// <summary>
        /// Get file path fo Omnisharp version file.
        /// </summary>
        /// <returns>Path of Omnisharp version file</returns>
        public static string GetOmnisharpVersionFilePath()
        {
            var folder = Utility.PathCombine(OmniSharpManager.GetGlobalInstallLocation(), "Versions");

            Directory.CreateDirectory(folder);
            return(Utility.PathCombine(folder, "omnisharp"));
        }
Esempio n. 2
0
        /// <summary>
        /// Get override shortcut mapping config path
        /// </summary>
        public static string GetKeyMappingConfigPath()
        {
            string folder         = OmniSharpManager.GetGlobalInstallLocation();
            string configFilePath = Utility.PathCombine(folder, Constants.KEYBINDING_CONFIG_FILE);

            configFilePath = Path.GetFullPath(configFilePath);
            return(configFilePath);
        }
Esempio n. 3
0
        /// <summary>
        /// Get code editor config file path
        /// </summary>
        public static string GetEditorConfigPath()
        {
            string folder = OmniSharpManager.GetGlobalInstallLocation();

            return(Path.GetFullPath(Path.Combine(folder, "settings.json")));
        }
Esempio n. 4
0
        /// <summary>
        /// Get user snippets config file path of a language
        /// </summary>
        /// <param name="language">Language name, for example shaderlab and csharp.</param>
        /// <returns>Path of user snippets config file</returns>
        public static string GetUserSnippetsFilePath(string language)
        {
            var folder = OmniSharpManager.GetGlobalInstallLocation();

            return(Utility.PathCombine(folder, string.Format("{0}.json", language)));
        }