This commit is contained in:
2019-02-17 18:07:28 +01:00
parent c69ffb9752
commit 95cff6f702
2301 changed files with 307810 additions and 5 deletions

23
Client/node_modules/vscode/LICENSE generated vendored Executable file
View File

@@ -0,0 +1,23 @@
vscode-extension-vscode
The MIT License (MIT)
Copyright (c) Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

15
Client/node_modules/vscode/README.md generated vendored Executable file
View File

@@ -0,0 +1,15 @@
# vscode-extension-vscode
The vscode NPM module provides VS Code extension authors tools to write extensions. It provides the vscode.d.ts node module (all accessible API for extensions) as well as commands for compiling and testing extensions.
For more information around extension authoring for VS Code, please see http://code.visualstudio.com/docs/extensions/overview
# History
* 1.1.0: Updated NPM dependencies
* 1.0.0: Extension developement is based on TypeScript >= 2.0.3
* 0.10.x: Extension developement is based on TypeScript 1.8.10
# License
[MIT](LICENSE)

6
Client/node_modules/vscode/bin/compile generated vendored Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env node
console.log('The vscode extension module got updated to TypeScript 2.0.x.');
console.log('Please see https://code.visualstudio.com/updates/v1_6#_extension-authoring for instruction on how to migrate your extension.');
process.exit(1);

135
Client/node_modules/vscode/bin/install generated vendored Executable file
View File

@@ -0,0 +1,135 @@
#!/usr/bin/env node
var semver = require('semver');
var fs = require('fs');
var path = require('path');
var shared = require('../lib/shared');
process.on('uncaughtException', function (err) {
exitWithError(err);
});
var engine = process.env.npm_package_engines_vscode;
if (!engine) {
exitWithError('Missing VSCode engine declaration in package.json.');
}
var vscodeDtsTypescriptPath = path.join(path.dirname(__dirname), 'vscode.d.ts');
console.log('Detected VS Code engine version: ' + engine);
getURLMatchingEngine(engine, function (_, data) {
console.log('Fetching vscode.d.ts from: ' + data.url);
shared.getContents(data.url, process.env.GITHUB_TOKEN, null, function (error, contents) {
if (error) {
exitWithError(error);
}
if (contents === 'Not Found') {
exitWithError(new Error('Could not find vscode.d.ts at the provided URL. Please report this to https://github.com/Microsoft/vscode/issues'));
}
if (data.version !== '*' && semver.lt(data.version, '1.7.0')) {
// Older versions of vscode.d.ts need a massage to play nice.
contents = vscodeDtsToTypescript(contents);
}
fs.writeFileSync(vscodeDtsTypescriptPath, contents);
console.log('vscode.d.ts successfully installed!\n');
});
});
function vscodeDtsToTypescript(contents) {
var markerHit = false;
var lines = contents.split('\n').filter(function (line) {
if (!markerHit && (line === '// when used for JS*' || line === 'declare module \'vscode\' {')) {
markerHit = true;
}
return !markerHit;
});
lines.unshift('/// <reference path="./thenable.d.ts" />');
lines.push('export = vscode;'); // this is to enable TS module resolution support
return lines.join('\n');
}
function getURLMatchingEngine(engine, callback) {
if (engine === '*') {
// master
return callback(null, {
url: 'https://raw.githubusercontent.com/Microsoft/vscode/master/src/vs/vscode.d.ts',
version: '*'
});
}
shared.getContents('https://vscode-update.azurewebsites.net/api/releases/stable', null, { "X-API-Version": "2" }, function (error, tagsRaw) {
if (error) {
exitWithError(error);
}
var tagsAndCommits;
try {
tagsAndCommits = JSON.parse(tagsRaw);
} catch (error) {
exitWithError(error);
}
var mapTagsToCommits = Object.create(null);
for (var i = 0; i < tagsAndCommits.length; i++) {
var tagAndCommit = tagsAndCommits[i];
mapTagsToCommits[tagAndCommit.version] = tagAndCommit.id;
}
var tags = Object.keys(mapTagsToCommits);
var tag = minSatisfying(tags, engine);
// check if master is on the version specified
if (!tag) {
return shared.getContents('https://raw.githubusercontent.com/Microsoft/vscode/master/package.json', process.env.GITHUB_TOKEN, null, function (error, packageJson) {
if (error) {
exitWithError(error);
}
var version = JSON.parse(packageJson).version;
if (semver.satisfies(version, engine)) {
// master
return callback(null, {
url: 'https://raw.githubusercontent.com/Microsoft/vscode/master/src/vs/vscode.d.ts',
version: version
});
}
exitWithError('Could not find satifying VSCode for version ' + engine + ' in the tags: [' + tags.join(', ') + '] or on master: ' + version);
});
}
console.log('Found minimal version that qualifies engine range: ' + tag);
return callback(null, {
url: 'https://raw.githubusercontent.com/Microsoft/vscode/' + mapTagsToCommits[tag] + '/src/vs/vscode.d.ts',
version: tag
});
});
}
function minSatisfying(versions, range) {
return versions.filter(function (version) {
try {
return semver.satisfies(version, range);
} catch (error) {
return false; // version might be invalid so we return as not matching
}
}).sort(function (a, b) {
return semver.compare(a, b);
})[0] || null;
}
function exitWithError(error) {
console.error('Error installing vscode.d.ts: ' + error.toString());
process.exit(1);
}

157
Client/node_modules/vscode/bin/test generated vendored Executable file
View File

@@ -0,0 +1,157 @@
#!/usr/bin/env node
var remote = require('gulp-remote-src-vscode');
var vzip = require('gulp-vinyl-zip');
var symdest = require('gulp-symdest');
var untar = require('gulp-untar');
var gunzip = require('gulp-gunzip');
var chmod = require('gulp-chmod');
var filter = require('gulp-filter');
var path = require('path');
var cp = require('child_process');
var fs = require('fs');
var shared = require('../lib/shared');
var request = require('request');
var source = require('vinyl-source-stream');
var version = process.env.CODE_VERSION || '*';
var isInsiders = version === 'insiders';
var testRunFolder = path.join('.vscode-test', isInsiders ? 'insiders' : 'stable');
var testRunFolderAbsolute = path.join(process.cwd(), testRunFolder);
var downloadPlatform = (process.platform === 'darwin') ? 'darwin' : process.platform === 'win32' ? 'win32-archive' : 'linux-x64';
var windowsExecutable;
var darwinExecutable;
var linuxExecutable;
if (isInsiders) {
windowsExecutable = path.join(testRunFolderAbsolute, 'Code - Insiders.exe');
darwinExecutable = path.join(testRunFolderAbsolute, 'Visual Studio Code - Insiders.app', 'Contents', 'MacOS', 'Electron');
linuxExecutable = path.join(testRunFolderAbsolute, 'VSCode-linux-x64', 'code-insiders');
} else {
windowsExecutable = path.join(testRunFolderAbsolute, 'Code.exe');
darwinExecutable = path.join(testRunFolderAbsolute, 'Visual Studio Code.app', 'Contents', 'MacOS', 'Electron');
linuxExecutable = path.join(testRunFolderAbsolute, 'VSCode-linux-x64', 'code');
if (['0.10.1', '0.10.2', '0.10.3', '0.10.4', '0.10.5', '0.10.6', '0.10.7', '0.10.8', '0.10.9'].indexOf(version) >= 0) {
linuxExecutable = path.join(testRunFolderAbsolute, 'VSCode-linux-x64', 'Code');
}
}
var testsFolder;
if (process.env.CODE_TESTS_PATH) {
testsFolder = process.env.CODE_TESTS_PATH;
} else if (fs.existsSync(path.join(process.cwd(), 'out', 'test'))) {
testsFolder = path.join(process.cwd(), 'out', 'test'); // TS extension
} else {
testsFolder = path.join(process.cwd(), 'test'); // JS extension
}
var testsWorkspace = process.env.CODE_TESTS_WORKSPACE || testsFolder;
var extensionsFolder = process.env.CODE_EXTENSIONS_PATH || process.cwd();
var executable = (process.platform === 'darwin') ? darwinExecutable : process.platform === 'win32' ? windowsExecutable : linuxExecutable;
console.log('### VS Code Extension Test Run ###');
console.log('Current working directory: ' + process.cwd());
function runTests() {
var args = [
testsWorkspace,
'--extensionDevelopmentPath=' + extensionsFolder,
'--extensionTestsPath=' + testsFolder
];
console.log('Running extension tests: ' + [executable, args.join(' ')].join(' '));
var cmd = cp.spawn(executable, args);
cmd.stdout.on('data', function (data) {
console.log(data.toString());
});
cmd.stderr.on('data', function (data) {
console.error(data.toString());
});
cmd.on('error', function (data) {
console.log('Failed to execute tests: ' + data.toString());
});
cmd.on('close', function (code) {
console.log('Tests exited with code: ' + code);
if (code !== 0) {
process.exit(code); // propagate exit code to outer runner
}
});
}
function downloadExecutableAndRunTests() {
getDownloadUrl(function (downloadUrl) {
console.log('Downloading VS Code into "' + testRunFolderAbsolute + '" from: ' + downloadUrl);
var version = downloadUrl.match(/\d+\.\d+\.\d+/)[0].split('\.');
var isTarGz = downloadUrl.match(/linux/) && version[0] >= 1 && version[1] >= 5;
var stream;
if (isTarGz) {
var gulpFilter = filter(['VSCode-linux-x64/code', 'VSCode-linux-x64/code-insiders', 'VSCode-linux-x64/resources/app/node_modules*/vscode-ripgrep/**/rg'], { restore: true });
stream = request(downloadUrl)
.pipe(source(path.basename(downloadUrl)))
.pipe(gunzip())
.pipe(untar())
.pipe(gulpFilter)
.pipe(chmod(493)) // 0o755
.pipe(gulpFilter.restore)
.pipe(symdest(testRunFolder));
} else {
stream = remote('', { base: downloadUrl })
.pipe(vzip.src())
.pipe(symdest(testRunFolder));
}
stream.on('end', runTests);
});
}
function getDownloadUrl(clb) {
if (process.env.CODE_DOWNLOAD_URL) {
return clb(process.env.CODE_DOWNLOAD_URL);
}
getTag(function (tag) {
return clb(['https://vscode-update.azurewebsites.net', tag, downloadPlatform, (isInsiders ? 'insider' : 'stable')].join('/'));
});
}
function getTag(clb) {
if (version !== '*' && version !== 'insiders') {
return clb(version);
}
shared.getContents('https://vscode-update.azurewebsites.net/api/releases/' + (isInsiders ? 'insider/' : 'stable/') + downloadPlatform, null, null, function (error, tagsRaw) {
if (error) {
exitWithError(error);
}
try {
clb(JSON.parse(tagsRaw)[0]); // first one is latest
} catch (error) {
exitWithError(error);
}
});
}
fs.exists(executable, function (exists) {
if (exists) {
runTests();
} else {
downloadExecutableAndRunTests();
}
});
function exitWithError(error) {
console.error('Error running tests: ' + error.toString());
process.exit(1);
}

38
Client/node_modules/vscode/lib/shared.js generated vendored Executable file
View File

@@ -0,0 +1,38 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var request = require('request');
var URL = require('url-parse');
function getContents(url, token, headers, callback) {
headers = headers || {
'user-agent': 'nodejs'
};
if (token) {
headers['Authorization'] = 'token ' + token;
}
var parsedUrl = new URL(url);
var options = {
url: url,
headers: headers
};
// We need to test the absence of true here because there is an npm bug that will not set boolean
// env variables if they are set to false.
if (process.env.npm_config_strict_ssl !== 'true') {
options.strictSSL = false;
}
if (process.env.npm_config_proxy && parsedUrl.protocol === 'http:') {
options.proxy = process.env.npm_config_proxy;
}
if (process.env.npm_config_https_proxy && parsedUrl.protocol === 'https:') {
options.proxy = process.env.npm_config_https_proxy;
}
request.get(options, function (error, response, body) {
if (!error && response && response.statusCode >= 400) {
error = new Error('Request returned status code: ' + response.statusCode + '\nDetails: ' + response.body);
}
callback(error, body);
});
}
exports.getContents = getContents;

36
Client/node_modules/vscode/lib/testrunner.d.ts generated vendored Executable file
View File

@@ -0,0 +1,36 @@
declare module 'vscode/lib/testrunner' {
export function configure(options: MochaSetupOptions): void;
interface MochaSetupOptions {
//milliseconds to wait before considering a test slow
slow?: number;
// timeout in milliseconds
timeout?: number;
// ui name "bdd", "tdd", "exports" etc
ui?: string;
//array of accepted globals
globals?: any[];
// reporter instance (function or string), defaults to `mocha.reporters.Dot`
reporter?: any;
// bail on the first test failure
bail?: boolean;
// ignore global leaks
ignoreLeaks?: boolean;
// grep string or regexp to filter tests with
grep?: any;
// colored output from test results
useColors?: boolean;
// causes test marked with only to fail the suite
forbidOnly?: boolean;
}
}

44
Client/node_modules/vscode/lib/testrunner.js generated vendored Executable file
View File

@@ -0,0 +1,44 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var paths = require("path");
var glob = require("glob");
// Linux: prevent a weird NPE when mocha on Linux requires the window size from the TTY
// Since we are not running in a tty environment, we just implementt he method statically
var tty = require('tty');
if (!tty.getWindowSize) {
tty.getWindowSize = function () { return [80, 75]; };
}
var Mocha = require("mocha");
var mocha = new Mocha({
ui: 'tdd',
useColors: true
});
function configure(opts) {
mocha = new Mocha(opts);
}
exports.configure = configure;
function run(testsRoot, clb) {
// Enable source map support
require('source-map-support').install();
// Glob test files
glob('**/**.test.js', { cwd: testsRoot }, function (error, files) {
if (error) {
return clb(error);
}
try {
// Fill into Mocha
files.forEach(function (f) { return mocha.addFile(paths.join(testsRoot, f)); });
// Run the tests
mocha.run(function (failures) {
clb(null, failures);
});
}
catch (error) {
return clb(error);
}
});
}
exports.run = run;

77
Client/node_modules/vscode/package.json generated vendored Executable file
View File

@@ -0,0 +1,77 @@
{
"_from": "vscode",
"_id": "vscode@1.1.21",
"_inBundle": false,
"_integrity": "sha512-tJl9eL15ZMm6vzCYYeQ26sSYRuXGMGPsaeIAmG2rOOYRn01jdaDg6I4b9G5Ed6FISdmn6egpKThk4o4om8Ax/A==",
"_location": "/vscode",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "vscode",
"name": "vscode",
"escapedName": "vscode",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/vscode/-/vscode-1.1.21.tgz",
"_shasum": "1c8253d6238aefb4112d6e58cf975ad25313dafc",
"_spec": "vscode",
"_where": "/home/nathan/Projects/Upsilon/UpsilonVsCodeLanguageServer/Client",
"author": {
"name": "Visual Studio Code Team"
},
"bin": {
"vscode-install": "./bin/install"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-extension-vscode/issues"
},
"bundleDependencies": false,
"dependencies": {
"glob": "^7.1.2",
"gulp-chmod": "^2.0.0",
"gulp-filter": "^5.0.1",
"gulp-gunzip": "1.0.0",
"gulp-remote-src-vscode": "^0.5.0",
"gulp-symdest": "^1.1.0",
"gulp-untar": "^0.0.7",
"gulp-vinyl-zip": "^2.1.0",
"mocha": "^4.0.1",
"request": "^2.83.0",
"semver": "^5.4.1",
"source-map-support": "^0.5.0",
"url-parse": "^1.4.3",
"vinyl-source-stream": "^1.1.0"
},
"deprecated": false,
"description": "The vscode NPM module provides VS Code extension authors tools to write extensions. It provides the vscode.d.ts node module (all accessible API for extensions) as well as commands for compiling and testing extensions.",
"devDependencies": {
"@types/glob": "^5.0.33",
"@types/mocha": "^2.2.43",
"@types/node": "^8.10.25",
"typescript": "^2.5.3"
},
"engines": {
"node": ">=8.9.3"
},
"homepage": "https://github.com/Microsoft/vscode-extension-vscode#readme",
"license": "MIT",
"name": "vscode",
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/vscode-extension-vscode.git"
},
"scripts": {
"compile": "tsc -p ./",
"prepare": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"typings": "vscode.d.ts",
"version": "1.1.21"
}

5
Client/node_modules/vscode/thenable.d.ts generated vendored Executable file
View File

@@ -0,0 +1,5 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
interface Thenable<T> extends PromiseLike<T> {}

27
Client/node_modules/vscode/thirdpartynotices.txt generated vendored Executable file
View File

@@ -0,0 +1,27 @@
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
For Microsoft vscode-extension-vscode
This project incorporates material from the project(s) listed below (collectively, “Third Party Code”). Microsoft is not the original author of the Third Party Code. The original copyright notice and license under which Microsoft received such Third Party Code are set out below. This Third Party Code is licensed to you under their original license terms set forth below. Microsoft reserves all other rights not expressly granted, whether by implication, estoppel or otherwise.
1. DefinitelyTyped version 0.0.1 (https://github.com/borisyankov/DefinitelyTyped)
This project is licensed under the MIT license.
Copyrights are respective of each contributor listed at the beginning of each definition file.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

8445
Client/node_modules/vscode/vscode.d.ts generated vendored Executable file

File diff suppressed because it is too large Load Diff