The type Range is being used to declare the return type of static function Ranger.getFullRange but later on it is also being used to create an instance using new Range. When you want to use a type to construct instances (or do anything else beyond declaring types), then you have to use the import statement instead of import type:
1 2 3 4 5 6 7 8 9 10
importtype { TextEditor } from'vscode'; import { Range } from'vscode';