Skip to content

Commit

Permalink
Added visual studio support to get the ball rolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Basarat Syed committed Jan 20, 2015
1 parent 4c44696 commit 4fe2ba2
Show file tree
Hide file tree
Showing 6 changed files with 224 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
.tscache
.tscache
/.ntvs_analysis.dat
191 changes: 191 additions & 0 deletions VSProj.njsproj
@@ -0,0 +1,191 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{ecf0e459-f515-4390-9257-4c7888cc0494}</ProjectGuid>
<ProjectHome />
<ProjectView>ShowAllFiles</ProjectView>
<StartupFile>Gruntfile.js</StartupFile>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids>
<TypeScriptSourceMap>False</TypeScriptSourceMap>
<TypeScriptModuleKind>CommonJS</TypeScriptModuleKind>
<EnableTypeScript>true</EnableTypeScript>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
<PropertyGroup Condition="'$(Configuration)' == 'Release'" />
<ItemGroup>
<Content Include="package.json" />
<Content Include="CONTRIBUTING.md" />
<Content Include="LICENSE.md" />
<Content Include="README.md" />
<Compile Include="Gruntfile.js" />
<Content Include="lib\tsd.json" />
<TypeScriptCompile Include="lib\globals.ts" />
<Compile Include="lib\globals.js" />
<TypeScriptCompile Include="lib\commons\collections.ts" />
<TypeScriptCompile Include="lib\commons\completion.ts" />
<TypeScriptCompile Include="lib\commons\definition.ts" />
<TypeScriptCompile Include="lib\commons\errorService.ts" />
<TypeScriptCompile Include="lib\commons\fileSystem.ts" />
<TypeScriptCompile Include="lib\commons\formattingService.ts" />
<TypeScriptCompile Include="lib\commons\immediate.ts" />
<TypeScriptCompile Include="lib\commons\lexicalStructure.ts" />
<TypeScriptCompile Include="lib\commons\logger.ts" />
<TypeScriptCompile Include="lib\commons\preferencesManager.ts" />
<TypeScriptCompile Include="lib\commons\projectConfig.ts" />
<TypeScriptCompile Include="lib\commons\promiseQueue.ts" />
<TypeScriptCompile Include="lib\commons\signal.ts" />
<TypeScriptCompile Include="lib\commons\typeScriptUtils.ts" />
<TypeScriptCompile Include="lib\commons\utils.ts" />
<TypeScriptCompile Include="lib\commons\workerBridge.ts" />
<TypeScriptCompile Include="lib\commons\workingSet.ts" />
<Compile Include="lib\commons\collections.js" />
<Compile Include="lib\commons\completion.js" />
<Compile Include="lib\commons\definition.js" />
<Compile Include="lib\commons\errorService.js" />
<Compile Include="lib\commons\fileSystem.js" />
<Compile Include="lib\commons\formattingService.js" />
<Compile Include="lib\commons\immediate.js" />
<Compile Include="lib\commons\lexicalStructure.js" />
<Compile Include="lib\commons\logger.js" />
<Compile Include="lib\commons\preferencesManager.js" />
<Compile Include="lib\commons\projectConfig.js" />
<Compile Include="lib\commons\promiseQueue.js" />
<Compile Include="lib\commons\signal.js" />
<Compile Include="lib\commons\typeScriptUtils.js" />
<Compile Include="lib\commons\utils.js" />
<Compile Include="lib\commons\workerBridge.js" />
<Compile Include="lib\commons\workingSet.js" />
<TypeScriptCompile Include="lib\main\codeHintProvider.ts" />
<TypeScriptCompile Include="lib\main\configErrorReporter.ts" />
<TypeScriptCompile Include="lib\main\errorReporter.ts" />
<TypeScriptCompile Include="lib\main\errors.ts" />
<TypeScriptCompile Include="lib\main\fileSystem.ts" />
<TypeScriptCompile Include="lib\main\formattingManager.ts" />
<TypeScriptCompile Include="lib\main\index.ts" />
<TypeScriptCompile Include="lib\main\mode.ts" />
<TypeScriptCompile Include="lib\main\preferencesManager.ts" />
<TypeScriptCompile Include="lib\main\quickEdit.ts" />
<TypeScriptCompile Include="lib\main\quickFindDefinition.ts" />
<TypeScriptCompile Include="lib\main\quickJump.ts" />
<TypeScriptCompile Include="lib\main\serviceConsumer.ts" />
<TypeScriptCompile Include="lib\main\workingSet.ts" />
<Compile Include="lib\main\codeHintProvider.js" />
<Compile Include="lib\main\configErrorReporter.js" />
<Compile Include="lib\main\errorReporter.js" />
<Compile Include="lib\main\errors.js" />
<Compile Include="lib\main\fileSystem.js" />
<Compile Include="lib\main\formattingManager.js" />
<Compile Include="lib\main\index.js" />
<Compile Include="lib\main\mode.js" />
<Compile Include="lib\main\preferencesManager.js" />
<Compile Include="lib\main\quickEdit.js" />
<Compile Include="lib\main\quickFindDefinition.js" />
<Compile Include="lib\main\quickJump.js" />
<Compile Include="lib\main\serviceConsumer.js" />
<Compile Include="lib\main\workingSet.js" />
<TypeScriptCompile Include="lib\ts-worker\completionService.ts" />
<TypeScriptCompile Include="lib\ts-worker\definitionService.ts" />
<TypeScriptCompile Include="lib\ts-worker\errorService.ts" />
<TypeScriptCompile Include="lib\ts-worker\formattingService.ts" />
<TypeScriptCompile Include="lib\ts-worker\index.ts" />
<TypeScriptCompile Include="lib\ts-worker\languageServiceHost.ts" />
<TypeScriptCompile Include="lib\ts-worker\lexicalStructureService.ts" />
<TypeScriptCompile Include="lib\ts-worker\project.ts" />
<TypeScriptCompile Include="lib\ts-worker\projectManager.ts" />
<Compile Include="lib\ts-worker\completionService.js" />
<Compile Include="lib\ts-worker\definitionService.js" />
<Compile Include="lib\ts-worker\errorService.js" />
<Compile Include="lib\ts-worker\formattingService.js" />
<Compile Include="lib\ts-worker\index.js" />
<Compile Include="lib\ts-worker\languageServiceHost.js" />
<Compile Include="lib\ts-worker\lexicalStructureService.js" />
<Compile Include="lib\ts-worker\project.js" />
<Compile Include="lib\ts-worker\projectManager.js" />
<TypeScriptCompile Include="lib\typings\bluebird.d.ts" />
<TypeScriptCompile Include="lib\typings\brackets.d.ts" />
<TypeScriptCompile Include="lib\typings\codemirror.d.ts" />
<TypeScriptCompile Include="lib\typings\minimatch.d.ts" />
<TypeScriptCompile Include="lib\typings\mustache.d.ts" />
<TypeScriptCompile Include="lib\typings\tsd.d.ts" />
<TypeScriptCompile Include="lib\typings\atom\atom.d.ts" />
<TypeScriptCompile Include="lib\typings\emissary\emissary.d.ts" />
<TypeScriptCompile Include="lib\typings\jquery\jquery.d.ts" />
<TypeScriptCompile Include="lib\typings\mixto\mixto.d.ts" />
<TypeScriptCompile Include="lib\typings\node\node.d.ts" />
<TypeScriptCompile Include="lib\typings\pathwatcher\pathwatcher.d.ts" />
<TypeScriptCompile Include="lib\typings\q\Q.d.ts" />
<TypeScriptCompile Include="lib\typings\space-pen\space-pen.d.ts" />
<TypeScriptCompile Include="lib\typings\status-bar\status-bar.d.ts" />
<TypeScriptCompile Include="lib\typings\text-buffer\text-buffer.d.ts" />
</ItemGroup>
<ItemGroup>
<Folder Include="grammars" />
<Folder Include="lib" />
<Folder Include="lib\commons" />
<Folder Include="lib\main" />
<Folder Include="lib\node_modules" />
<Folder Include="lib\node_modules\typescript-services" />
<Folder Include="lib\ts-worker" />
<Folder Include="lib\typings" />
<Folder Include="lib\typings\atom" />
<Folder Include="lib\typings\emissary" />
<Folder Include="lib\typings\jquery" />
<Folder Include="lib\typings\mixto" />
<Folder Include="lib\typings\node" />
<Folder Include="lib\typings\pathwatcher" />
<Folder Include="lib\typings\q" />
<Folder Include="lib\typings\space-pen" />
<Folder Include="lib\typings\status-bar" />
<Folder Include="lib\typings\text-buffer" />
<Folder Include="scoped-properties" />
<Folder Include="snippets" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<!--Do not delete the following Import Project. While this appears to do nothing it is a marker for setting TypeScript properties before our import that depends on them.-->
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="False" />
<Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsTools.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:48022/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>True</UseCustomServer>
<CustomServerUrl>http://localhost:1337</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" User="">
<WebProjectProperties>
<StartPageUrl>
</StartPageUrl>
<StartAction>CurrentPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging>
<NativeDebugging>False</NativeDebugging>
<SQLDebugging>False</SQLDebugging>
<ExternalProgram>
</ExternalProgram>
<StartExternalURL>
</StartExternalURL>
<StartCmdLineArguments>
</StartCmdLineArguments>
<StartWorkingDirectory>
</StartWorkingDirectory>
<EnableENC>False</EnableENC>
<AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
22 changes: 22 additions & 0 deletions VSProj.sln
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}") = "VSProj", "VSProj.njsproj", "{ECF0E459-F515-4390-9257-4C7888CC0494}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{ECF0E459-F515-4390-9257-4C7888CC0494}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ECF0E459-F515-4390-9257-4C7888CC0494}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ECF0E459-F515-4390-9257-4C7888CC0494}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ECF0E459-F515-4390-9257-4C7888CC0494}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion lib/globals.ts
@@ -1,5 +1,5 @@
/// <reference path="./typings/tsd.d.ts"/>
/// <reference path="./node_modules/typescript-services/typescriptServices.d.ts"/>
/// <reference path="../node_modules/typescript/bin/typescript.d.ts"/>

// From brackets plugin
/// <reference path="./typings/bluebird.d.ts"/>
Expand Down
8 changes: 8 additions & 0 deletions lib/main/index.js
@@ -1,11 +1,16 @@
///ts:ref=globals
/// <reference path="../globals.ts"/> ///ts:ref:generated
var path = require('path');
var tsproj = require('tsproj');
// Make sure we have the packages we depend upon
var apd = require('atom-package-dependencies');
exports.linter;
// globals
var statusBar;
var statusBarMessage;
var editorWatch;
function activate(state) {
// Don't activate if we have a dependency that isn't available
exports.linter = apd.require('linter');
if (!exports.linter) {
apd.install(function () {
Expand All @@ -14,6 +19,7 @@ function activate(state) {
return;
}
atom.packages.once('activated', function () {
// Setup the error reporter:
var errorReporter = require('./errors');
statusBar = document.querySelector("status-bar");
if (statusBar) {
Expand All @@ -27,6 +33,7 @@ function activate(state) {
var proj = tsproj.getProjectsForFileSync(filePath);
}
catch (ex) {
// So we don't have a project, create it:
if (ex.message == 'No Project Found') {
tsproj.createProjectsRootSync(filePath);
}
Expand All @@ -47,5 +54,6 @@ function serialize() {
}
exports.serialize = serialize;
function deserialize() {
/* do any tear down here */
}
exports.deserialize = deserialize;
1 change: 0 additions & 1 deletion lib/main/index.ts
Expand Up @@ -8,7 +8,6 @@ import tsproj = require('tsproj');
var apd = require('atom-package-dependencies');
export var linter;


// globals
var statusBar;
var statusBarMessage;
Expand Down

0 comments on commit 4fe2ba2

Please sign in to comment.