-
${escape(localize('githubMarkdown', "We support GitHub-flavored Markdown. You will still be able to edit your issue when we preview it on GitHub."))}
+
${escape(localize('githubMarkdown', "We support GitHub-flavored Markdown. You will still be able to edit your issue and add screenshots when we preview it on GitHub."))}
${escape(localize('issueDescriptionRequired', "Please enter a description."))}
diff --git a/src/vs/code/electron-browser/sharedProcess/sharedProcess.js b/src/vs/code/electron-browser/sharedProcess/sharedProcess.js
index 5f4f1dae5bd..94481666801 100644
--- a/src/vs/code/electron-browser/sharedProcess/sharedProcess.js
+++ b/src/vs/code/electron-browser/sharedProcess/sharedProcess.js
@@ -6,6 +6,7 @@
'use strict';
const path = require('path');
+const fs = require('fs');
function assign(destination, source) {
return Object.keys(source)
@@ -40,6 +41,18 @@ function uriFromPath(_path) {
return encodeURI('file://' + pathName);
}
+function readFile(file) {
+ return new Promise(function(resolve, reject) {
+ fs.readFile(file, 'utf8', function(err, data) {
+ if (err) {
+ reject(err);
+ return;
+ }
+ resolve(data);
+ });
+ });
+}
+
function main() {
const args = parseURLQueryArgs();
const configuration = JSON.parse(args['config'] || '{}') || {};
@@ -57,6 +70,24 @@ function main() {
} catch (e) { /*noop*/ }
}
+ if (nlsConfig._resolvedLanguagePackCoreLocation) {
+ let bundles = Object.create(null);
+ nlsConfig.loadBundle = function(bundle, language, cb) {
+ let result = bundles[bundle];
+ if (result) {
+ cb(undefined, result);
+ return;
+ }
+ let bundleFile = path.join(nlsConfig._resolvedLanguagePackCoreLocation, bundle.replace(/\//g, '!') + '.nls.json');
+ readFile(bundleFile).then(function (content) {
+ let json = JSON.parse(content);
+ bundles[bundle] = json;
+ cb(undefined, json);
+ })
+ .catch(cb);
+ };
+ }
+
var locale = nlsConfig.availableLanguages['*'] || 'en';
if (locale === 'zh-tw') {
locale = 'zh-Hant';
diff --git a/src/vs/code/electron-main/app.ts b/src/vs/code/electron-main/app.ts
index 64c73d5b91c..06ce9b9d2f0 100644
--- a/src/vs/code/electron-main/app.ts
+++ b/src/vs/code/electron-main/app.ts
@@ -452,12 +452,6 @@ export class CodeApplication {
// Start shared process here
this.sharedProcess.spawn();
-
- // Launch Issue BrowserWindow if --issue is specified
- if (this.environmentService.args.issue) {
- const issueService = accessor.get(IIssueService);
- issueService.openReporter();
- }
}
private dispose(): void {
diff --git a/src/vs/code/electron-main/diagnostics.ts b/src/vs/code/electron-main/diagnostics.ts
index 8a3fb1445fd..926ce809c15 100644
--- a/src/vs/code/electron-main/diagnostics.ts
+++ b/src/vs/code/electron-main/diagnostics.ts
@@ -39,7 +39,6 @@ export interface ProcessInfo {
}
export interface DiagnosticInfo {
- versionInfo?: VersionInfo;
systemInfo?: SystemInfo;
processInfo?: ProcessInfo[];
workspaceInfo?: string;
@@ -80,7 +79,6 @@ export function buildDiagnostics(info: IMainProcessInfo): Promise