diff --git a/src/harness/client.ts b/src/harness/client.ts index ba2e920ac59..4f11c9d1a92 100644 --- a/src/harness/client.ts +++ b/src/harness/client.ts @@ -812,20 +812,20 @@ namespace ts.server { return notImplemented(); } - toggleLineComment(): ts.TextChange[] { - throw new Error("Method not implemented."); + toggleLineComment(): TextChange[] { + return notImplemented(); } - toggleMultilineComment(): ts.TextChange[] { - throw new Error("Method not implemented."); + toggleMultilineComment(): TextChange[] { + return notImplemented(); } - commentSelection(): ts.TextChange[] { - throw new Error("Method not implemented."); + commentSelection(): TextChange[] { + return notImplemented(); } - uncommentSelection(): ts.TextChange[] { - throw new Error("Method not implemented."); + uncommentSelection(): TextChange[] { + return notImplemented(); } dispose(): void { diff --git a/src/services/shims.ts b/src/services/shims.ts index 15b0c1cb488..e3082b114e6 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -279,7 +279,7 @@ namespace ts { getEmitOutputObject(fileName: string): EmitOutput; toggleLineComment(fileName: string, textChange: TextRange): string; - toggleMultilineComment(fileName: string, textChange:TextRange): string; + toggleMultilineComment(fileName: string, textChange: TextRange): string; commentSelection(fileName: string, textChange: TextRange): string; uncommentSelection(fileName: string, textChange: TextRange): string; }