Selected changesmerged Aug 30, 2026
editor: show session homes in breadcrumbsTypeScript · 261 + / 37 −
Introduces 4 new declarations in src/vs/workbench/services/label/common/labelService.ts.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
src/vs/workbench/services/label/common/labelService.ts ↗ · 21 files
@@ -178,36 +178,70 @@ export class LabelService extends Disposable implements ILabelService { this.userHome = await this.pathService.userHome(); } - findFormatting(resource: URI): ResourceLabelFormatting | undefined {- let bestResult: ResourceLabelFormatter | undefined;+ getUriHome(resource: URI): URI | undefined {+ const formatter = this.findHomeFormatter(resource);+ return formatter?.home ? resource.with({ path: formatter.home, query: null, fragment: null }) : undefined;+ } + private findHomeFormatter(resource: URI): ResourceLabelFormatter | undefined {+ let bestResult: ResourceLabelFormatter | undefined; for (const formatter of this.formatters) {- if (formatter.scheme === resource.scheme) {- if (!formatter.authority && (!bestResult || formatter.priority)) {- bestResult = formatter;- continue;- }-- if (!formatter.authority) {- continue;- }-- if (match(formatter.authority, resource.authority, { ignoreCase: true }) &&- (- !bestResult?.authority ||- formatter.authority.length > bestResult.authority.length ||- ((formatter.authority.length === bestResult.authority.length) && formatter.priority)- )- ) {- bestResult = formatter;- }+ if (!formatter.home || formatter.scheme !== resource.scheme || (formatter.authority && !match(formatter.authority, resource.authority, { ignoreCase: true }))) {
llama: improve TENSOR_READ_LAZY handlingC++ · 118 + / 28 −
Introduces 4 new declarations in src/llama-model-loader.cpp.
Adds new runtime rather than adjusting what was there. Read the linked PR for the surrounding test context.
src/llama-model-loader.cpp ↗ · 4 files
@@ -1070,11 +1070,52 @@ static ggml_backend_buffer_type_t select_weight_buft(const llama_hparams & hpara return nullptr; } +ggml_backend_buffer_type_t llama_model_loader::lazy_read::buft() {+ auto * cpu_dev = ggml_backend_dev_by_type(GGML_BACKEND_DEVICE_TYPE_CPU);+ if (!cpu_dev) {+ throw std::runtime_error("no CPU backend found");+ }+ return ggml_backend_dev_buffer_type(cpu_dev);+}++bool llama_model_loader::lazy_read::add(const std::string & name, const ggml_tensor * t, const llama_tensor_weight * w) {+ if (mode == LLAMA_LAZY_MODE_OFF) {+ return false;+ }++ // do not lazy-read small tensors, it has significant overhead and is not worth it+ constexpr size_t auto_min_size = 4ull * 1024 * 1024 * 1024;+ if (mode != LLAMA_LAZY_MODE_ON && ggml_nbytes(t) <= auto_min_size) {+ return false;+ }++ if (!llama_mmap::SUPPORTED) {+ LLAMA_LOG_WARN("%s: mmap is not available, so tensor %s (size = %zu MiB) is loaded into RAM in full\n",+ __func__, name.c_str(), ggml_nbytes(t)/1024/1024);+ return false;+ }++ if (w) {+ ranges[w->idx].emplace_back(w->offs, w->offs + ggml_nbytes(t));+ tensors.insert(name);++ LLAMA_LOG_INFO("%s: tensor %s (size = %zu MiB) lazy read enabled\n",
Rollup of 4 pull requestsRust · 94 + / 96 −
Introduces 9 new declarations in compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs.
Adds new language design rather than adjusting what was there. Read the linked PR for the surrounding test context.
compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/covfun.rs ↗ · 19 files
@@ -52,22 +52,22 @@ pub(crate) fn prepare_covfun_record<'tcx>( instance: Instance<'tcx>, is_used: bool, ) -> Option<CovfunRecord<'tcx>> {- let fn_cov_info = tcx.instance_mir(instance.def).function_coverage_info.as_deref()?;- let ids_info = tcx.coverage_ids_info(instance.def)?;+ let mir_info = tcx.instance_mir(instance.def).coverage_mir_info.as_deref()?;+ let cg_info = tcx.coverage_codegen_info(instance.def)?; - let expressions = prepare_expressions(ids_info);+ let expressions = prepare_expressions(cg_info); let mut covfun = CovfunRecord { _instance: instance, mangled_function_name: tcx.symbol_name(instance).name,- source_hash: if is_used { fn_cov_info.function_source_hash } else { 0 },+ source_hash: if is_used { mir_info.function_source_hash } else { 0 }, is_used, virtual_file_mapping: VirtualFileMapping::default(), expressions, regions: llvm_cov::Regions::default(), }; - fill_region_tables(tcx, fn_cov_info, ids_info, &mut covfun);+ fill_region_tables(tcx, mir_info, cg_info, &mut covfun); if covfun.regions.has_no_regions() { debug!(?covfun, "function has no mappings to embed; skipping");