Always use same range for jsdoc completions
For #87091 JSdoc completions do not have different behavior for replace vs insert
This commit is contained in:
parent
57c30ddb82
commit
c0c4eb6a51
|
@ -27,9 +27,8 @@ class JsDocCompletionItem extends vscode.CompletionItem {
|
|||
const prefix = line.slice(0, position.character).match(/\/\**\s*$/);
|
||||
const suffix = line.slice(position.character).match(/^\s*\**\//);
|
||||
const start = position.translate(0, prefix ? -prefix[0].length : 0);
|
||||
this.range = new vscode.Range(
|
||||
start,
|
||||
position.translate(0, suffix ? suffix[0].length : 0));
|
||||
const range = new vscode.Range(start, position.translate(0, suffix ? suffix[0].length : 0));
|
||||
this.range2 = { inserting: range, replacing: range };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue