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
Johannes Rieken 2024-08-29 12:27:41 +02:00 committed by GitHub
parent cf26b311e6
commit 724ebf4d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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 };