mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
s
This commit is contained in:
@ -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)];
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user