Example #1
0
        public bool TryGetStartupFileAndDirectory(out string fileName, out string directory)
        {
            var nodeJsInstance = NodejsPackage.Instance;

            if (nodeJsInstance == null)
            {
                // Node.js Tools package has not loaded yet. Expected if no NTVS project is open.
                fileName  = null;
                directory = null;
                return(false);
            }
            return(NodejsPackage.TryGetStartupFileAndDirectory(nodeJsInstance, out fileName, out directory));
        }
Example #2
0
 public bool TryGetStartupFileAndDirectory(out string fileName, out string directory)
 {
     return(NodejsPackage.TryGetStartupFileAndDirectory(out fileName, out directory));
 }