From fc11a4c1abc97583ae8719ccc6359538bb15c80a Mon Sep 17 00:00:00 2001 From: Andre Weinand Date: Thu, 26 Jan 2017 00:13:17 +0100 Subject: [PATCH] use node's version of path.isAbsolute; fixes #19386 --- src/vs/workbench/parts/debug/node/debugAdapter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/debug/node/debugAdapter.ts b/src/vs/workbench/parts/debug/node/debugAdapter.ts index 41cdaa7b970..22cd7507d55 100644 --- a/src/vs/workbench/parts/debug/node/debugAdapter.ts +++ b/src/vs/workbench/parts/debug/node/debugAdapter.ts @@ -4,6 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import fs = require('fs'); +import path = require('path'); import * as nls from 'vs/nls'; import { TPromise } from 'vs/base/common/winjs.base'; import * as strings from 'vs/base/common/strings'; @@ -54,7 +55,7 @@ export class Adapter { if (details.command) { if (verifyAgainstFS) { - if (paths.isAbsolute(details.command)) { + if (path.isAbsolute(details.command)) { return new TPromise((c, e) => { fs.exists(details.command, exists => { if (exists) { -- GitLab