Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run format post prettier dependency update
- Loading branch information
1 parent
28e2d9f
commit 893c23e
Showing
12 changed files
with
556 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
/*--------------------------------------------------------- | ||
* Copyright (C) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------*/ | ||
|
||
import vscode = require('vscode'); | ||
|
||
export abstract class GoBaseCodeLensProvider implements vscode.CodeLensProvider { | ||
protected enabled: boolean = true; | ||
private onDidChangeCodeLensesEmitter = new vscode.EventEmitter<void>(); | ||
|
||
public get onDidChangeCodeLenses(): vscode.Event<void> { | ||
return this.onDidChangeCodeLensesEmitter.event; | ||
} | ||
|
||
public setEnabled(enabled: false): void { | ||
if (this.enabled !== enabled) { | ||
this.enabled = enabled; | ||
this.onDidChangeCodeLensesEmitter.fire(); | ||
} | ||
} | ||
|
||
public provideCodeLenses( | ||
document: vscode.TextDocument, | ||
token: vscode.CancellationToken | ||
): vscode.ProviderResult<vscode.CodeLens[]> { | ||
return []; | ||
} | ||
} | ||
/*--------------------------------------------------------- | ||
* Copyright (C) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------*/ | ||
|
||
import vscode = require('vscode'); | ||
|
||
export abstract class GoBaseCodeLensProvider implements vscode.CodeLensProvider { | ||
protected enabled: boolean = true; | ||
private onDidChangeCodeLensesEmitter = new vscode.EventEmitter<void>(); | ||
|
||
public get onDidChangeCodeLenses(): vscode.Event<void> { | ||
return this.onDidChangeCodeLensesEmitter.event; | ||
} | ||
|
||
public setEnabled(enabled: false): void { | ||
if (this.enabled !== enabled) { | ||
this.enabled = enabled; | ||
this.onDidChangeCodeLensesEmitter.fire(); | ||
} | ||
} | ||
|
||
public provideCodeLenses( | ||
document: vscode.TextDocument, | ||
token: vscode.CancellationToken | ||
): vscode.ProviderResult<vscode.CodeLens[]> { | ||
return []; | ||
} | ||
} |
Oops, something went wrong.