Skip to content

Commit

Permalink
Adjust to changed definition of UriComponents
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
  • Loading branch information
tsmaeder committed Feb 8, 2024
1 parent 641cdda commit a1b6172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin-ext/src/plugin/type-converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,10 @@ export function isModelRange(arg: unknown): arg is model.Range {
export function isUriComponents(arg: unknown): arg is UriComponents {
return isObject<UriComponents>(arg) &&
typeof arg.scheme === 'string' &&
(arg['$mid'] === 1 || (
typeof arg.path === 'string' &&
typeof arg.query === 'string' &&
typeof arg.fragment === 'string';
typeof arg.fragment === 'string'));
}

export function isModelCallHierarchyItem(arg: unknown): arg is model.CallHierarchyItem {
Expand Down

0 comments on commit a1b6172

Please sign in to comment.