Skip to content

Commit 833cf82

Browse files
committed
Merge remote-tracking branch 'origin/master' into insiders
2 parents 3508a10 + ea8ab13 commit 833cf82

File tree

6 files changed

+38
-19
lines changed

6 files changed

+38
-19
lines changed

Extension/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# C/C++ for Visual Studio Code Change Log
22

3+
## Version 0.19.1-insiders2: October 11th, 2018
4+
* Add IntegratedTerminal support for Linux and Windows. [#35](https://github.com/microsoft/vscode-cpptools/issues/35)
5+
* Unify Visual Studio Code debug protocol parsing by using a shared library with Visual Studio.
6+
37
## Version 0.19.1-insiders: October 9th, 2018
48
* Fix IntelliSense-based `Go to Definition` on overloads. [#1071](https://github.com/Microsoft/vscode-cpptools/issues/1071)
59
* Fix IntelliSense failing if recursive includes removes all paths. [#2442](https://github.com/Microsoft/vscode-cpptools/issues/2442)

Extension/ThirdPartyNotices.txt

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
2-
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
1+

2+
THIRD PARTY SOFTWARE NOTICES AND INFORMATION
33
Do Not Translate or Localize
44

5-
Microsoft C/C++ Extension for Visual Studio Code incorporates components from the projects listed below. Microsoft licenses these components under the Microsoft C/C++ Extension for Visual Studio Code license terms, except as noted. The original copyright notices and the licenses under which Microsoft received such components are set forth below for informational purposes. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
5+
This Microsoft product may utilize material made available by third parties under the following license terms. Any source code that Microsoft is required to make available can be found at http://3rdpartysource.microsoft.com. You may also obtain a copy of any such source code (during the period provided by the license) by sending a check or money order for US $5.00 to:
6+
7+
Source Code Compliance Team
8+
Microsoft Corporation
9+
One Microsoft Way
10+
Redmond, WA 98052 USA
11+
12+
Please write “Source for [OSS PROJECT NAME]” in the memo line of your payment.
13+
614

715
1. agent-base (https://github.com/TooTallNate/node-agent-base)
816
2. ANTLR (http://www.antlr2.org/)

Extension/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@
15111511
},
15121512
{
15131513
"description": "Mono Framework Assemblies",
1514-
"url": "https://go.microsoft.com/fwlink/?LinkId=816539",
1514+
"url": "https://go.microsoft.com/fwlink/?LinkId=2027135",
15151515
"platforms": [
15161516
"linux",
15171517
"darwin"
@@ -1520,7 +1520,7 @@
15201520
},
15211521
{
15221522
"description": "Mono Runtime (Linux / x86)",
1523-
"url": "https://go.microsoft.com/fwlink/?LinkId=816540",
1523+
"url": "https://go.microsoft.com/fwlink/?LinkId=2027410",
15241524
"platforms": [
15251525
"linux"
15261526
],
@@ -1535,7 +1535,7 @@
15351535
},
15361536
{
15371537
"description": "Mono Runtime (Linux / x86_64)",
1538-
"url": "https://go.microsoft.com/fwlink/?LinkId=816541",
1538+
"url": "https://go.microsoft.com/fwlink/?LinkId=2027416",
15391539
"platforms": [
15401540
"linux"
15411541
],
@@ -1548,7 +1548,7 @@
15481548
},
15491549
{
15501550
"description": "Mono Runtime (OS X)",
1551-
"url": "https://go.microsoft.com/fwlink/?LinkId=816542",
1551+
"url": "https://go.microsoft.com/fwlink/?LinkId=2027403",
15521552
"platforms": [
15531553
"darwin"
15541554
],

Extension/src/LanguageServer/extension.ts

+14-11
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ async function installVsix(vsixLocation: string, updateChannel: string): Promise
242242
cmdFile = 'code.cmd';
243243
}
244244
const vsCodeExeDir: string = path.dirname(process.execPath);
245-
return '"' + path.join(vsCodeExeDir, 'bin', cmdFile) + '"';
245+
return path.join(vsCodeExeDir, 'bin', cmdFile);
246246
} else if (platformInfo.platform === 'darwin') {
247-
return '"' + path.join(process.execPath, '..', '..', '..', '..', '..',
248-
'Resources', 'app', 'bin', 'code') + '"';
247+
return path.join(process.execPath, '..', '..', '..', '..', '..',
248+
'Resources', 'app', 'bin', 'code');
249249
} else {
250250
const vsCodeBinName: string = path.basename(process.execPath);
251251
try {
@@ -262,8 +262,13 @@ async function installVsix(vsixLocation: string, updateChannel: string): Promise
262262

263263
// Install the VSIX
264264
return new Promise<void>((resolve, reject) => {
265-
let process: ChildProcess = spawn(vsCodeScriptPath, ['--install-extension', vsixLocation]);
266-
if (process.pid === undefined) {
265+
let process: ChildProcess;
266+
try {
267+
process = spawn(vsCodeScriptPath, ['--install-extension', vsixLocation]);
268+
if (process.pid === undefined) {
269+
throw new Error();
270+
}
271+
} catch (error) {
267272
reject(new Error('Failed to launch VS Code script process for installation'));
268273
return;
269274
}
@@ -296,10 +301,6 @@ async function installVsix(vsixLocation: string, updateChannel: string): Promise
296301
* @param updateChannel The user's updateChannel setting.
297302
*/
298303
async function checkAndApplyUpdate(updateChannel: string): Promise<void> {
299-
// Helper fn to avoid code duplication
300-
let logFailure: (error: Error) => void = (error: Error) => {
301-
telemetry.logLanguageServerEvent('installVsix', { 'error': error.message, 'success': 'false' });
302-
};
303304
// Wrap in new Promise to allow tmp.file callback to successfully resolve/reject
304305
// as tmp.file does not do anything with the callback functions return value
305306
const p: Promise<void> = new Promise<void>((resolve, reject) => {
@@ -344,8 +345,10 @@ async function checkAndApplyUpdate(updateChannel: string): Promise<void> {
344345
});
345346
await p.catch((error: Error) => {
346347
// Handle .then following getTargetBuildInfo rejection
347-
logFailure(error);
348-
throw error;
348+
if (error.message.indexOf('/') !== -1 || error.message.indexOf('\\') !== -1) {
349+
error.message = "Potential PII hidden";
350+
}
351+
telemetry.logLanguageServerEvent('installVsix', { 'error': error.message, 'success': 'false' });
349352
});
350353
}
351354

Extension/src/Support/copyDebuggerDependencies.ts

+2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ function copyBinaryDependencies(): void {
129129
copy(openDebugRoot, DebugAdapterBinPath, "OpenDebugAD7.exe.config");
130130
copy(openDebugRoot, DebugAdapterBinPath, "OpenDebugAD7.exe.mdb");
131131
copy(openDebugRoot, DebugAdapterBinPath, "Newtonsoft.Json.dll");
132+
copy(openDebugRoot, DebugAdapterBinPath, "WindowsDebugLauncher.exe");
133+
copy(openDebugRoot, DebugAdapterBinPath, "Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.dll");
132134
}
133135

134136
function copyMonoDependencies(): void {

Extension/src/githubAPI.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ function vsixNameForPlatform(info: PlatformInformation): string {
100100
case 'darwin': return 'cpptools-osx.vsix';
101101
default: {
102102
switch (platformInfo.architecture) {
103-
case 'x86': return 'cpptools-linux32.vsix';
104103
case 'x86_64': return 'cpptools-linux.vsix';
104+
case 'x86':
105+
case 'i386':
106+
case 'i686': return 'cpptools-linux32.vsix';
105107
}
106108
}
107109
}

0 commit comments

Comments
 (0)