public override int QueryDebugLaunch(uint flags, out int fCanLaunch) { bool definedStartupFile = !string.IsNullOrEmpty(_project.GetProjectProperty(NodeSettings.StartupFile)); fCanLaunch = definedStartupFile ? 1 : 0; return(VSConstants.S_OK); }
/// <summary> /// Launches a project interpeter. /// </summary> /// <param name="debug">Defines a debug mode.</param> /// <returns>Result.</returns> public int LaunchProject(bool debug) { string startupFile = _project.GetProjectProperty(NodeSettings.StartupFile); return(LaunchFile(startupFile, debug)); }