Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const revealRangeInEditor = (editor: TextEditor) => {
const { start, end } = params.range;
const startPosition = Position.create(start.line - 1, start.character - 1);
const endPosition = Position.create(end.line - 1, end.character - 1);
const range = Range.create(startPosition, endPosition);
editor.revealRange(range);
editor.selection = range;
};
const activeEditorWidget = this.editorManager.currentEditor;
const revealRangeInEditor = (editor: TextEditor) => {
const { start, end } = params.range;
const startPosition = Position.create(start.line - 1, start.character - 1);
const endPosition = Position.create(end.line - 1, end.character - 1);
const range = Range.create(startPosition, endPosition);
editor.revealRange(range);
editor.selection = range;
};
const activeEditorWidget = this.editorManager.currentEditor;