From 8f2442f4e69c2812fab7934bce7b077f110aa1ec Mon Sep 17 00:00:00 2001 From: roblou Date: Thu, 13 Oct 2016 22:18:38 -0700 Subject: [PATCH] 1.2.0 --- CHANGELOG.md | 6 ++++++ gulpfile.js | 32 ++++++++++++++++++++++++++++++++ package.json | 24 +++++++++++++++++------- 3 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 gulpfile.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 7070c6b4..a003e27f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.2.0 +* Change the way that sourcemaps are downloaded, hoping to fix [#251](https://github.com/Microsoft/vscode-chrome-debug/issues/251) +* Fix breakpoints being moved around after refreshing the page - [#250](https://github.com/Microsoft/vscode-chrome-debug/issues/250) +* Fix global eval sometimes failing, and incorrect error handling - [#244](https://github.com/Microsoft/vscode-chrome-debug/issues/244) +* Fix error with sourcemaps for eval scripts - [#256](https://github.com/Microsoft/vscode-chrome-debug/issues/256) + ## 1.1.0 * Changed the way that targets are queried for, hoping to fix [#237](https://github.com/Microsoft/vscode-chrome-debug/issues/237) * Enable breakpoints for fsharp - [#243](https://github.com/Microsoft/vscode-chrome-debug/pull/243) - Thanks @octref diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 00000000..e1abe641 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,32 @@ +/*--------------------------------------------------------- + * Copyright (C) Microsoft Corporation. All rights reserved. + *--------------------------------------------------------*/ + +const gulp = require('gulp'); +const path = require('path'); +const fs = require('fs'); + +function verifyNotALinkedModule(modulePath) { + return new Promise((resolve, reject) => { + fs.lstat(modulePath, (err, stat) => { + if (stat.isSymbolicLink()) { + reject(new Error('Symbolic link found: ' + modulePath)); + } else { + resolve(); + } + }); + }); +} + +function verifyNoLinkedModules() { + return new Promise((resolve, reject) => { + fs.readdir('./node_modules', (err, files) => { + Promise.all(files.map(file => { + const modulePath = path.join('.', 'node_modules', file); + return verifyNotALinkedModule(modulePath); + })).then(resolve, reject); + }); + }); +} + +gulp.task('verify-no-linked-modules', cb => verifyNoLinkedModules().then(() => cb, cb)); diff --git a/package.json b/package.json index 32e45dc4..64498fb5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "debugger-for-chrome", "displayName": "Debugger for Chrome", - "version": "1.1.0", + "version": "1.2.0", "icon": "images/icon.png", "description": "Debug your JavaScript code in the Chrome browser, or any other target that supports the Chrome Debugger protocol.", "author": { @@ -21,7 +21,7 @@ ], "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { - "vscode-chrome-debug-core": "2.0.2", + "vscode-chrome-debug-core": "2.0.3", "vscode-debugadapter": "^1.12.0", "vscode-debugprotocol": "^1.12.0" }, @@ -30,6 +30,7 @@ "@types/mockery": "^1.4.29", "@types/node": "^6.0.41", "@types/source-map": "^0.1.27", + "gulp": "^3.9.1", "mocha": "^3.0.2", "mockery": "^1.7.0", "tslint": "^3.15.1", @@ -40,14 +41,23 @@ "test": "mocha -u tdd -c 'out/test/**/*.test.js'", "lint": "tslint -t verbose 'src/**/*.ts' 'test/**/*.ts'", "build": "tsc", - "watch": "tsc -w" + "watch": "tsc -w", + "vscode:prepublish": "gulp verify-no-linked-modules" }, "contributes": { "breakpoints": [ - { "language": "javascript" }, - { "language": "typescriptreact" }, - { "language": "javascriptreact" }, - { "language": "fsharp" } + { + "language": "javascript" + }, + { + "language": "typescriptreact" + }, + { + "language": "javascriptreact" + }, + { + "language": "fsharp" + } ], "debuggers": [ {