This commit is contained in:
Peng Lyu
2019-03-11 11:42:21 -07:00
parent bf7606d1cf
commit a5868991ae
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export function activate(context: vscode.ExtensionContext) {
// commenting range provider
commentController.commentingRangeProvider = {
provideCommentingRange: (document: vscode.TextDocument, token: vscode.CancellationToken) => {
provideCommentingRanges: (document: vscode.TextDocument, token: vscode.CancellationToken) => {
let lineCount = document.lineCount;
return [new vscode.Range(0, 0, lineCount - 1, 0)];
}

View File

@ -131,7 +131,7 @@ declare module 'vscode' {
}
export interface CommentingRangeProvider {
provideCommentingRange(document: TextDocument, token: CancellationToken): ProviderResult<Range[]>;
provideCommentingRanges(document: TextDocument, token: CancellationToken): ProviderResult<Range[]>;
}
export interface EmptyCommentThreadFactory {