Skip to content

Commit

Permalink
add failing/skipped test for microsoft/vscode#136955
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Nov 11, 2021
1 parent 37794df commit 5c720d5
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/vs/workbench/test/browser/api/mainThreadDiagnostics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,55 @@ suite('MainThreadDiagnostics', function () {
assert.strictEqual(changedData[0][0][1][0].message, 'forgein_owner');
});
});

test.skip('onDidChangeDiagnostics different behavior when "extensionKind" ui running on remote workspace #136955', function () {
return runWithFakedTimers({}, async () => {

const markerData: IMarkerData = {
code: '666',
startLineNumber: 1,
startColumn: 1,
endLineNumber: 1,
endColumn: 1,
severity: 1,
source: 'me',
message: 'message'
};
const target = URI.file('a');
markerService.changeOne('bar', target, [markerData]);

const changedData: [UriComponents, IMarkerData[]][][] = [];

let diag = new MainThreadDiagnostics(
new class implements IExtHostContext {
remoteAuthority = '';
extensionHostKind = ExtensionHostKind.LocalProcess;
assertRegistered() { }
set(v: any): any { return null; }
getProxy(): any {
return {
$acceptMarkersChange(data: [UriComponents, IMarkerData[]][]) {
changedData.push(data);
}
};
}
drain(): any { return null; }
},
markerService,
new class extends mock<IUriIdentityService>() {
override asCanonicalUri(uri: URI) { return uri; }
}
);


diag.$clear('bar');

// added one marker via the API and one via the ext host. the latter must not
// trigger an event to the extension host

await timeout(0);
assert.strictEqual(markerService.read().length, 1);
assert.strictEqual(changedData.length, 1);
});
});
});

0 comments on commit 5c720d5

Please sign in to comment.