Don't sync label formatters across machines

Fixes #150970
This commit is contained in:
Daniel Imms
2022-06-01 09:23:17 -07:00
parent 6a670d79c3
commit 74af95ec11

View File

@@ -143,7 +143,7 @@ export class LabelService extends Disposable implements ILabelService {
this.userHome = pathService.defaultUriScheme === Schemas.file ? this.pathService.userHome({ preferLocal: true }) : undefined;
const memento = this.storedFormattersMemento = new Memento('cachedResourceFormatters', storageService);
this.storedFormatters = memento.getMemento(StorageScope.GLOBAL, StorageTarget.USER);
this.storedFormatters = memento.getMemento(StorageScope.GLOBAL, StorageTarget.MACHINE);
this.formatters = this.storedFormatters?.formatters || [];
// Remote environment is potentially long running