Joh/friendly-hedgehog (#227056)
* Revert "disable code lense for the output editor (#226971)"
This reverts commit dea4412243
.
* ignore `output` scheme when logging code lens request
pull/227065/head
parent
cf26b311e6
commit
724ebf4d61
|
@ -2312,15 +2312,15 @@ export class ExtHostLanguageFeatures implements extHostProtocol.ExtHostLanguageF
|
|||
}
|
||||
|
||||
$provideCodeLenses(handle: number, resource: UriComponents, token: CancellationToken): Promise<extHostProtocol.ICodeLensListDto | undefined> {
|
||||
return this._withAdapter(handle, CodeLensAdapter, adapter => adapter.provideCodeLenses(URI.revive(resource), token), undefined, token);
|
||||
return this._withAdapter(handle, CodeLensAdapter, adapter => adapter.provideCodeLenses(URI.revive(resource), token), undefined, token, resource.scheme === 'output');
|
||||
}
|
||||
|
||||
$resolveCodeLens(handle: number, symbol: extHostProtocol.ICodeLensDto, token: CancellationToken): Promise<extHostProtocol.ICodeLensDto | undefined> {
|
||||
return this._withAdapter(handle, CodeLensAdapter, adapter => adapter.resolveCodeLens(symbol, token), undefined, undefined);
|
||||
return this._withAdapter(handle, CodeLensAdapter, adapter => adapter.resolveCodeLens(symbol, token), undefined, undefined, true);
|
||||
}
|
||||
|
||||
$releaseCodeLenses(handle: number, cacheId: number): void {
|
||||
this._withAdapter(handle, CodeLensAdapter, adapter => Promise.resolve(adapter.releaseCodeLenses(cacheId)), undefined, undefined);
|
||||
this._withAdapter(handle, CodeLensAdapter, adapter => Promise.resolve(adapter.releaseCodeLenses(cacheId)), undefined, undefined, true);
|
||||
}
|
||||
|
||||
// --- declaration
|
||||
|
|
|
@ -185,7 +185,6 @@ class OutputEditor extends AbstractTextResourceEditor {
|
|||
options.lineDecorationsWidth = 20;
|
||||
options.rulers = [];
|
||||
options.folding = false;
|
||||
options.codeLens = false;
|
||||
options.scrollBeyondLastLine = false;
|
||||
options.renderLineHighlight = 'none';
|
||||
options.minimap = { enabled: false };
|
||||
|
|
Loading…
Reference in New Issue