Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
abe9c29
Merge pull request #95 from DustinCampbell/dev
DustinCampbell Mar 15, 2016
a799b47
Add helper to retrieve project info from OmniSharp
DustinCampbell Mar 16, 2016
730963f
Merge pull request #98 from DustinCampbell/consume-omnisharp-api
DustinCampbell Mar 16, 2016
aa6ba48
Use 'protocol' consistently and consolidate end-point requests
DustinCampbell Mar 16, 2016
b726ba8
Factor out helpers for OmniSharp features
DustinCampbell Mar 16, 2016
c66be68
Get tslint clean
DustinCampbell Mar 17, 2016
89991a3
Get rid of our path helpers and use fs-extra-promise instead.
DustinCampbell Mar 17, 2016
ea88cb0
Merge pull request #102 from DustinCampbell/cleanup
DustinCampbell Mar 17, 2016
254bc70
Factor code to download OmniSharp out of gulpfile.js
DustinCampbell Mar 17, 2016
83ea676
Merge pull request #105 from DustinCampbell/gulp-cleanup
DustinCampbell Mar 17, 2016
f628bac
Update gulp to download new OmniSharp
DustinCampbell Mar 17, 2016
7b388e7
Update launcher to look for OmniSharp in the .omnisharp folder
DustinCampbell Mar 17, 2016
c0e6af3
Rename omnisharpInstall.ts to omnisharpDownload.ts
DustinCampbell Mar 17, 2016
0fda72f
Download OmniSharp at launch
DustinCampbell Mar 17, 2016
218f5c3
Stop running gulp task to acquire OmniSharp on post install
DustinCampbell Mar 17, 2016
88dfe82
Clean up console output
DustinCampbell Mar 17, 2016
85f70b3
Don't blindly construct signature help if OmniSharp returns null
DustinCampbell Mar 18, 2016
0b61630
Merge pull request #106 from DustinCampbell/download-omnisharp
DustinCampbell Mar 18, 2016
a7fb6fb
Merge pull request #107 from DustinCampbell/fix-signature-help
DustinCampbell Mar 18, 2016
d0f0c4b
Improve debugger install error messages
caslan Mar 18, 2016
5da74fe
Merge pull request #109 from caslan/fixerrormessages2
gregg-miskelly Mar 18, 2016
471b222
Update launch.json 'program' description
gregg-miskelly Mar 19, 2016
10eb3a8
Merge pull request #110 from gregg-miskelly/UpdateProgramDescription
gregg-miskelly Mar 19, 2016
1f8e772
Use 'vscode' throughout omnisharpMain.ts
DustinCampbell Mar 21, 2016
1ccf03f
Prompt user to add 'build' task to tasks.json
DustinCampbell Mar 21, 2016
c11102f
Remove tasks.json template and 'add tasks.json' command
DustinCampbell Mar 21, 2016
cc60974
Code review feedback
DustinCampbell Mar 22, 2016
a91af2e
Merge pull request #115 from DustinCampbell/add-tasks-json-automagically
DustinCampbell Mar 22, 2016
134d0b7
Merge branch 'master' into dev
DustinCampbell Mar 24, 2016
2bef8c6
Merge pull request #124 from DustinCampbell/dev
DustinCampbell Mar 24, 2016
f3a1b15
Clean up OmniSharp server a bit
DustinCampbell Mar 23, 2016
661c0a6
Move TelemetryReporter initialization to extension activation
DustinCampbell Mar 23, 2016
89377d1
Compute telemetry for OmniSharp server requests
DustinCampbell Mar 24, 2016
3f033aa
Send telemetry for OmniSharp server requests
DustinCampbell Mar 24, 2016
8e7d33e
Merge branch 'master' into dev
DustinCampbell Mar 24, 2016
e256c28
Merge pull request #126 from DustinCampbell/dev
DustinCampbell Mar 24, 2016
a179a63
Add publish step to CI
DustinCampbell Mar 24, 2016
a5b9e9f
Merge pull request #127 from DustinCampbell/publish-to-ci
DustinCampbell Mar 24, 2016
e13f02b
Update version to 0.3.9
DustinCampbell Mar 24, 2016
325a873
Merge pull request #128 from DustinCampbell/update-version
DustinCampbell Mar 24, 2016
1e7d30a
Code review feedback
DustinCampbell Mar 24, 2016
2c7811a
Merge pull request #122 from DustinCampbell/server-telemetry
DustinCampbell Mar 24, 2016
4a60c72
Update to OmniSharp v1.9-alpha6
DustinCampbell Mar 24, 2016
5c0cf12
Merge pull request #129 from DustinCampbell/update-omnisharp
DustinCampbell Mar 24, 2016
a46b54a
Automatically add launch.json if necessary
DustinCampbell Mar 23, 2016
1c2b569
Generate correct values into launch.json
DustinCampbell Mar 23, 2016
9c20029
Update to OmniSharp v1.9-alpha7
DustinCampbell Mar 24, 2016
e4f579c
Merge pull request #130 from DustinCampbell/update-omnisharp
DustinCampbell Mar 24, 2016
fb08f41
Merge pull request #119 from DustinCampbell/add-launch-json-automagic…
DustinCampbell Mar 24, 2016
6c4646e
Add gulp task to package the extension with vsce.
chuckries Mar 25, 2016
a27e4ab
Merge pull request #131 from chuckries/dev
chuckries Mar 28, 2016
26de0cd
Implement debug proxy to display error message before install completes
chuckries Mar 29, 2016
473d88e
Abstract the util functions into CoreClrDebugUtil class
chuckries Mar 30, 2016
893a8b8
Rename command to download the debugger
chuckries Mar 30, 2016
e0fd885
respond to PR review feedback
chuckries Mar 30, 2016
e13c78d
Fix csharp.downloadDebugger command and remove addtasks.json command
chuckries Mar 30, 2016
9e7556e
Merge pull request #135 from chuckries/dev
chuckries Mar 31, 2016
bd8af8e
Update coreclr-debug package references
chuckries Apr 1, 2016
d507594
Dynamically create the project.json for coreclr-debug
chuckries Apr 1, 2016
a9b09e5
Merge pull request #137 from chuckries/rid
chuckries Apr 1, 2016
be23a29
Add .omnisharp to .vscodeignore file
DustinCampbell Apr 4, 2016
b1d6c2e
Consume new DotNetProjectSystem API shape from OmniSharp
DustinCampbell Apr 4, 2016
e88c761
Remove DNX commands and update 'dotnet restore' command
DustinCampbell Apr 5, 2016
2eb3f47
Update with new OmniSharp release
DustinCampbell Apr 5, 2016
31e37d8
Clean up more old commands
DustinCampbell Apr 5, 2016
be7147d
Merge pull request #139 from DustinCampbell/update-omnisharp
DustinCampbell Apr 5, 2016
780f0bc
Fix launch on Windows with forward slashes in program (#143)
gregg-miskelly Apr 6, 2016
a2471e6
Merge pull request #150 from gregg-miskelly/DebuggerLaunchSlashFix
gregg-miskelly Apr 6, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
bin
node_modules
out
.omnisharp

*.vsix
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@ sudo: false
language: node_js

node_js:
- "5.1"
- "5.1"

os:
-osx
-linux

install:
- npm install
- npm install
- npm install -g vsce
- vsce package

deploy:
provider: releases
api_key:
secure: T6OzDRQEXpIsIKM2V+X+YgSa1vPDXDdoRBOV39BCDkKv7fDH5rTHs/hVtrwIfLvLVAtJq4kDm6hSVAFLpni1nUHzx2hFCi31CCWPlqhDo31v0CMD6pMccUlCFi2iul3T3EAiT4HmoSEKoCLET8uLIKaYoQ6wc+D11z55kM9DFtv/fGwfxL8FWvbNHYaGc3KNvNOwoMcOc8VpXXGQ1Rtc1IAx62G6qS8V6Yn89sUev/AxT/wcU/wmzNW5UgdAUgnJUFbSumwzfFYFJUdkUSP5iLxjlAJJSNHjHzN5wNX1bIMfSv5DJn1P15ev5OyfjJ+EmjFFmOTJiPlgver/scrZzhrv3kvBYULI8vAAgRWde5CgESGJqv5gEIj3oSICv+2MPmB+Kjr/79AfXrCvORc3an9UASyfgQvamfIoboFLNLZTIe/66oH7UmSJ2rtcaYEKMWHo7qq9cI4yFX6SexwqQehrGPr+QFbjpxFFAhs6aJEFGGgw4i/yheEP6Z7mrKx5wqScVfSLz1iBDmPAkB8pSFhXPk4XpYPjZsCI/wzLERYZ1gBweAKosnMt2anf0Eu1USUo1nXvFmsKTH6lBdBIthVW2va2DCgW+aWQj+j/G670UXT7BoHkcx0GaOzhPc6HeS1ovA9/kX5ZBaslPNAOmGycmGJAuNs2sSvFJf9JZY4=
file_glob: true
file: "*.vsix"
skip_cleanup: true
on:
repo: OmniSharp/omnisharp-vscode
tags: true
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ src/**
**/*.map

.vscode/**
.omnisharp/**

coreclr-debug/debugAdapters/**
coreclr-debug/bin/**
Expand Down
4 changes: 3 additions & 1 deletion coreclr-debug/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ bin
obj
project.lock.json
debugAdapters
install.log
install.log
extension.log
project.json
33 changes: 0 additions & 33 deletions coreclr-debug/project.json

This file was deleted.

124 changes: 28 additions & 96 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,70 +1,31 @@
var gulp = require('gulp');
var decompress = require('gulp-decompress');
var tslint = require("gulp-tslint");
var es = require('event-stream');
var GitHub = require('github-releases');
var tmp = require('tmp');
var vfs = require('vinyl-fs');
var del = require('del');
var fs = require('fs');
var path = require('path');
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

tmp.setGracefulCleanup();
'use strict';

function downloadOmnisharp(version) {
var result = es.through();
const del = require('del');
const gulp = require('gulp');
const tslint = require('gulp-tslint');
const vsce = require('vsce');
const omnisharpDownload = require('./out/omnisharpDownload');

function onError(err) {
result.emit('error', err);
}

var repo = new GitHub({
repo: 'OmniSharp/omnisharp-roslyn',
token: process.env['GITHUB_TOKEN']
});

repo.getReleases({ tag_name: version }, function (err, releases) {
if (err) { return onError(err); }
if (!releases.length) { return onError(new Error('Release not found')); }
if (!releases[0].assets.length) { return onError(new Error('Assets not found')); }

repo.downloadAsset(releases[0].assets[0], function (err, istream) {
if (err) { return onError(err); }

tmp.file(function (err, tmpPath, fd, cleanupCallback) {
if (err) { return onError(err); }

var ostream = fs.createWriteStream(null, { fd: fd });
ostream.once('error', onError);
istream.once('error', onError);
ostream.once('finish', function () {
vfs.src(tmpPath).pipe(result);
});
istream.pipe(ostream);
});
});
});

return result;
}

gulp.task('omnisharp:clean', function () {
return del('bin');
gulp.task('omnisharp:clean', () => {
return del('.omnisharp');
});

gulp.task('omnisharp:fetch', ['omnisharp:clean'], function () {
return downloadOmnisharp('v1.6.7.9')
.pipe(decompress({strip: 1}))
.pipe(gulp.dest('bin'));
gulp.task('omnisharp:fetch', ['omnisharp:clean'], () => {
return omnisharpDownload.downloadOmnisharp();
});

var allTypeScript = [
const allTypeScript = [
'src/**/*.ts',
'!**/*.d.ts',
'!**/typings**'
];

var lintReporter = function (output, file, options) {
const lintReporter = (output, file, options) => {
//emits: src/helloWorld.c:5:3: warning: implicit declaration of function ‘prinft’
var relativeBase = file.base.substring(file.cwd.length + 1).replace('\\', '/');
output.forEach(function(e) {
Expand All @@ -73,48 +34,19 @@ var lintReporter = function (output, file, options) {
});
};

gulp.task('tslint', function () {
gulp.task('tslint', () => {
gulp.src(allTypeScript)
.pipe(tslint({
rulesDirectory: "node_modules/tslint-microsoft-contrib"
}))
.pipe(tslint.report(lintReporter, {
summarizeFailureOutput: false,
emitError: false
}))
});

gulp.task('omnisharp:fixscripts', ['omnisharp:fetch'], function () {

var _fixes = Object.create(null);
_fixes['./bin/omnisharp.cmd'] = '@"%~dp0packages\\dnx-clr-win-x86.1.0.0-beta4\\bin\\dnx.exe" "%~dp0packages\\OmniSharp\\1.0.0\\root" run %*';
_fixes['./bin/omnisharp'] = '#!/bin/bash\n\
SOURCE="${BASH_SOURCE[0]}"\n\
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink\n\
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"\n\
SOURCE="$(readlink "$SOURCE")"\n\
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located\n\
done\n\
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"\n\
export SET DNX_APPBASE="$DIR/packages/OmniSharp/1.0.0/root"\n\
export PATH=/usr/local/bin:/Library/Frameworks/Mono.framework/Commands:$PATH # this is required for the users of the Homebrew Mono package\n\
exec "$DIR/packages/dnx-mono.1.0.0-beta4/bin/dnx" "$DNX_APPBASE" run "$@"\n\
\n';

var promises = Object.keys(_fixes).map(function (key) {
return new Promise(function(resolve, reject) {
fs.writeFile(path.join(__dirname, key), _fixes[key], function (err) {
if (err) {
reject(err);
} else {
resolve();
}
})
});
});

return Promise.all(promises)
.pipe(tslint({
rulesDirectory: "node_modules/tslint-microsoft-contrib"
}))
.pipe(tslint.report(lintReporter, {
summarizeFailureOutput: false,
emitError: false
}))
});

gulp.task('omnisharp', ['omnisharp:fetch']);

gulp.task('omnisharp', ['omnisharp:fixscripts']);
gulp.task('package', () => {
vsce(['', '', 'package']);
});
Loading