mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
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:
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user