mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Drop duplicate code
This commit is contained in:
@@ -61,10 +61,6 @@ export function activate(context: ExtensionContext) {
|
|||||||
type: (item.documentation as string)
|
type: (item.documentation as string)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const range = item.range;
|
|
||||||
if (range instanceof Range && range.end.isAfter(position) && range.start.isBeforeOrEqual(position)) {
|
|
||||||
item.range = { inserting: new Range(range.start, position), replacing: range };
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// testing the new completion
|
// testing the new completion
|
||||||
function updateProposals(r: CompletionItem[] | CompletionList | null | undefined): CompletionItem[] | CompletionList | null | undefined {
|
function updateProposals(r: CompletionItem[] | CompletionList | null | undefined): CompletionItem[] | CompletionList | null | undefined {
|
||||||
|
|||||||
Reference in New Issue
Block a user