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(
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
You can’t perform that action at this time.
0 commit comments