mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Merge remote-tracking branch 'origin/master' into tyriar/75793
This commit is contained in:
@@ -55,7 +55,7 @@ export class MainThreadDiagnostics implements MainThreadDiagnosticsShape {
|
||||
}
|
||||
}
|
||||
if (marker.code && typeof marker.code !== 'string') {
|
||||
marker.code.link = URI.revive(marker.code.link);
|
||||
marker.code.target = URI.revive(marker.code.target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,11 +55,11 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
|
||||
|
||||
//#region --- revive functions
|
||||
|
||||
private static _reviveLocationDto(data: ILocationDto): modes.Location;
|
||||
private static _reviveLocationDto(data: ILocationDto[]): modes.Location[];
|
||||
private static _reviveLocationDto(data: ILocationDto | ILocationDto[]): modes.Location | modes.Location[] {
|
||||
private static _reviveLocationDto(data?: ILocationDto): modes.Location;
|
||||
private static _reviveLocationDto(data?: ILocationDto[]): modes.Location[];
|
||||
private static _reviveLocationDto(data: ILocationDto | ILocationDto[] | undefined): modes.Location | modes.Location[] | undefined {
|
||||
if (!data) {
|
||||
return <modes.Location>data;
|
||||
return data;
|
||||
} else if (Array.isArray(data)) {
|
||||
data.forEach(l => MainThreadLanguageFeatures._reviveLocationDto(l));
|
||||
return <modes.Location[]>data;
|
||||
|
||||
Reference in New Issue
Block a user