@@ -25,7 +25,7 @@ import * as fileSchemes from './utils/fileSchemes';
25
25
import { Logger } from './utils/logger' ;
26
26
import { isWeb } from './utils/platform' ;
27
27
import { TypeScriptPluginPathsProvider } from './utils/pluginPathsProvider' ;
28
- import { PluginManager } from './utils/plugins' ;
28
+ import { PluginManager , TypeScriptServerPlugin } from './utils/plugins' ;
29
29
import { TelemetryProperties , TelemetryReporter , VSCodeTelemetryReporter } from './utils/telemetry' ;
30
30
import Tracer from './utils/tracer' ;
31
31
import { inferredProjectCompilerOptions , ProjectType } from './utils/tsconfig' ;
@@ -644,7 +644,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
644
644
} ) ;
645
645
} else {
646
646
const args = previousState . type === ServerState . Type . Errored && previousState . error instanceof TypeScriptServerError
647
- ? getReportIssueArgsForError ( previousState . error , previousState . tsServerLogFile )
647
+ ? getReportIssueArgsForError ( previousState . error , previousState . tsServerLogFile , this . pluginManager . plugins )
648
648
: undefined ;
649
649
vscode . commands . executeCommand ( 'workbench.action.openIssueReporter' , args ) ;
650
650
}
@@ -1002,6 +1002,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
1002
1002
function getReportIssueArgsForError (
1003
1003
error : TypeScriptServerError ,
1004
1004
logPath : string | undefined ,
1005
+ globalPlugins : readonly TypeScriptServerPlugin [ ] ,
1005
1006
) : { extensionId : string ; issueTitle : string ; issueBody : string } | undefined {
1006
1007
if ( ! error . serverStack || ! error . serverMessage ) {
1007
1008
return undefined ;
@@ -1020,6 +1021,10 @@ function getReportIssueArgsForError(
1020
1021
3.` ,
1021
1022
] ;
1022
1023
1024
+ if ( globalPlugins . length ) {
1025
+ sections . push ( `**Global TS Server Plugins**\n\n` + globalPlugins . map ( plugin => `- \`${ plugin . name } \`` ) . join ( '\n' ) ) ;
1026
+ }
1027
+
1023
1028
if ( logPath ) {
1024
1029
sections . push ( `**TS Server Log**
1025
1030
@@ -1033,7 +1038,7 @@ The log file may contain personal data, including full paths and source code fro
1033
1038
1034
1039
sections . push ( `**TS Server Log**
1035
1040
1036
- ❗️Server logging disabled. To help us fix crashes like this, please enable logging by setting:
1041
+ ❗️ Server logging disabled. To help us fix crashes like this, please enable logging by setting:
1037
1042
1038
1043
\`\`\`json
1039
1044
"typescript.tsserver.log": "verbose"
0 commit comments