File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,11 @@ async function completionComplexEdit(
150
150
151
151
if ( ! success ) {
152
152
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 } ` ) ;
153
156
154
157
if ( editor === undefined ) {
155
- outputChannel . show ( ) ;
156
- outputChannel . appendLine ( `${ componentName } Failed to make a complex text edit for completion.` ) ;
157
158
outputChannel . appendLine (
158
159
`${ componentName } Can't find visible document with uri.fsPath: '${ uri . fsPath } ' and uri.path: '${ uri . path } '`
159
160
) ;
@@ -170,7 +171,7 @@ async function completionComplexEdit(
170
171
) ;
171
172
}
172
173
173
- throw new Error ( 'Failed to make a complex text edit for completion.' ) ;
174
+ throw new Error ( ` ${ componentName } ${ errorMessage } ` ) ;
174
175
}
175
176
}
176
177
You can’t perform that action at this time.
0 commit comments