mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
deprecate old ctor but keep it working
This commit is contained in:
@@ -641,8 +641,8 @@ export class SymbolInformation {
|
||||
|
||||
if (locationOrUri instanceof Location) {
|
||||
this.location = locationOrUri;
|
||||
} else if(locationOrUri instanceof URI && rangeOrContainer instanceof Range) {
|
||||
this.location = new Location(locationOrUri, rangeOrContainer);
|
||||
} else if (rangeOrContainer instanceof Range) {
|
||||
this.location = new Location(<URI> locationOrUri, rangeOrContainer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user