提交 fc11a4c1 编写于 作者: A Andre Weinand

use node's version of path.isAbsolute; fixes #19386

上级 c043a0de
......@@ -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<IAdapterExecutable>((c, e) => {
fs.exists(details.command, exists => {
if (exists) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册