Skip to content

Commit 0954d5f

Browse files
committed
fix
1 parent 33231ac commit 0954d5f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lsptoolshost/commands.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,11 @@ async function completionComplexEdit(
150150

151151
if (!success) {
152152
const componentName = '[roslyn.client.completionComplexEdit]';
153+
const errorMessage = 'Failed to make a complex text edit for completion.';
154+
outputChannel.show();
155+
outputChannel.appendLine(`${componentName} ${errorMessage}`);
153156

154157
if (editor === undefined) {
155-
outputChannel.show();
156-
outputChannel.appendLine(`${componentName} Failed to make a complex text edit for completion.`);
157158
outputChannel.appendLine(
158159
`${componentName} Can't find visible document with uri.fsPath: '${uri.fsPath}' and uri.path: '${uri.path}'`
159160
);
@@ -170,7 +171,7 @@ async function completionComplexEdit(
170171
);
171172
}
172173

173-
throw new Error('Failed to make a complex text edit for completion.');
174+
throw new Error(`${componentName} ${errorMessage}`);
174175
}
175176
}
176177

0 commit comments

Comments
 (0)