@@ -371,6 +371,7 @@ export type LanguageClientOptions = {
371371 markdown ?: {
372372 isTrusted ?: boolean | { readonly enabledCommands : readonly string [ ] } ;
373373 supportHtml ?: boolean ;
374+ supportThemeIcons ?: boolean ;
374375 } ;
375376} & $NotebookDocumentOptions & $DiagnosticPullOptions & $ConfigurationOptions ;
376377
@@ -403,6 +404,7 @@ type ResolvedClientOptions = {
403404 markdown : {
404405 isTrusted : boolean | { readonly enabledCommands : readonly string [ ] } ;
405406 supportHtml : boolean ;
407+ supportThemeIcons : boolean ;
406408 } ;
407409} & Required < $NotebookDocumentOptions > & Required < $DiagnosticPullOptions > ;
408410namespace ResolvedClientOptions {
@@ -534,10 +536,15 @@ export abstract class BaseLanguageClient implements FeatureClient<Middleware, La
534536
535537 clientOptions = clientOptions || { } ;
536538
537- const markdown : ResolvedClientOptions [ 'markdown' ] = { isTrusted : false , supportHtml : false } ;
539+ const markdown : ResolvedClientOptions [ 'markdown' ] = {
540+ isTrusted : false ,
541+ supportHtml : false ,
542+ supportThemeIcons : false
543+ } ;
538544 if ( clientOptions . markdown !== undefined ) {
539545 markdown . isTrusted = ResolvedClientOptions . sanitizeIsTrusted ( clientOptions . markdown . isTrusted ) ;
540546 markdown . supportHtml = clientOptions . markdown . supportHtml === true ;
547+ markdown . supportThemeIcons = clientOptions . markdown . supportThemeIcons === true ;
541548 }
542549
543550 // const defaultInterval = (clientOptions as TestOptions).$testMode ? 50 : 60000;
@@ -618,7 +625,8 @@ export abstract class BaseLanguageClient implements FeatureClient<Middleware, La
618625 this . _p2c = p2c . createConverter (
619626 clientOptions . uriConverters ? clientOptions . uriConverters . protocol2Code : undefined ,
620627 this . _clientOptions . markdown . isTrusted ,
621- this . _clientOptions . markdown . supportHtml ) ;
628+ this . _clientOptions . markdown . supportHtml ,
629+ this . _clientOptions . markdown . supportThemeIcons ) ;
622630 this . _syncedDocuments = new Map < string , TextDocument > ( ) ;
623631 this . registerBuiltinFeatures ( ) ;
624632 }
0 commit comments