From b650ab8b4fa835eecb5a9348ad5e7e8d1d777308 Mon Sep 17 00:00:00 2001 From: Manzur Khan Sarguru Date: Tue, 12 Dec 2017 21:41:32 +0530 Subject: [PATCH] Update extHostTypes.ts --- src/vs/workbench/api/node/extHostTypes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/api/node/extHostTypes.ts b/src/vs/workbench/api/node/extHostTypes.ts index b0cc9b02062..eb0028b0b74 100644 --- a/src/vs/workbench/api/node/extHostTypes.ts +++ b/src/vs/workbench/api/node/extHostTypes.ts @@ -91,10 +91,10 @@ export class Position { constructor(line: number, character: number) { if (line < 0) { - throw illegalArgument('line must be positive'); + throw illegalArgument('line must be non-negative'); } if (character < 0) { - throw illegalArgument('character must be positive'); + throw illegalArgument('character must be non-negative'); } this._line = line; this._character = character; -- GitLab