fix tests

This commit is contained in:
isidor
2018-02-23 20:06:39 +01:00
parent 8a91e901ff
commit 4b4e5ce84c

View File

@@ -562,8 +562,10 @@ export class Process implements IProcess {
if (this.sources.has(source.uri.toString())) {
source = this.sources.get(source.uri.toString());
source.raw = mixin(source.raw, raw);
// Always take the latest presentation hint from adapter #42139
source.raw.presentationHint = raw.presentationHint;
if (source.raw && raw) {
// Always take the latest presentation hint from adapter #42139
source.raw.presentationHint = raw.presentationHint;
}
} else {
this.sources.set(source.uri.toString(), source);
}