mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
@@ -142,7 +142,7 @@ export class LabelService extends Disposable implements ILabelService {
|
||||
this.os = OS;
|
||||
this.userHome = pathService.defaultUriScheme === Schemas.file ? this.pathService.userHome({ preferLocal: true }) : undefined;
|
||||
|
||||
const memento = this.storedFormattersMemento = new Memento('cachedResourceFormatters', storageService);
|
||||
const memento = this.storedFormattersMemento = new Memento('cachedResourceLabelFormatters', storageService);
|
||||
this.storedFormatters = memento.getMemento(StorageScope.GLOBAL, StorageTarget.MACHINE);
|
||||
this.formatters = this.storedFormatters?.formatters || [];
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ suite('URI Label', () => {
|
||||
|
||||
|
||||
test('label caching', () => {
|
||||
const m = new Memento('cachedResourceFormatters', storageService).getMemento(StorageScope.GLOBAL, StorageTarget.MACHINE);
|
||||
const m = new Memento('cachedResourceLabelFormatters', storageService).getMemento(StorageScope.GLOBAL, StorageTarget.MACHINE);
|
||||
const makeFormatter = (scheme: string): ResourceLabelFormatter => ({ formatting: { label: `\${path} (${scheme})`, separator: '/' }, scheme });
|
||||
assert.deepStrictEqual(m, {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user