File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace DynamicCustomSchemaRequestRegistration {
2525 export const type : NotificationType < { } , { } > = new NotificationType ( 'yaml/registerCustomSchemaRequest' ) ;
2626}
2727
28- let outputChannel : OutputChannel ;
28+ let client : LanguageClient ;
2929
3030export function activate ( context : ExtensionContext ) {
3131 // The YAML language server is implemented in node
@@ -59,7 +59,7 @@ export function activate(context: ExtensionContext) {
5959 } ;
6060
6161 // Create the language client and start it
62- let client = new LanguageClient ( 'yaml' , 'YAML Support' , serverOptions , clientOptions ) ;
62+ client = new LanguageClient ( 'yaml' , 'YAML Support' , serverOptions , clientOptions ) ;
6363 let disposable = client . start ( ) ;
6464
6565 const schemaExtensionAPI = new SchemaExtensionAPI ( client ) ;
@@ -135,8 +135,5 @@ function getSchemaAssociation(context: ExtensionContext): ISchemaAssociations {
135135}
136136
137137export function logToExtensionOutputChannel ( message : string ) {
138- if ( outputChannel === undefined ) {
139- outputChannel = window . createOutputChannel ( 'VS Code Yaml extension' ) ;
140- }
141- outputChannel . appendLine ( message ) ;
138+ client . outputChannel . appendLine ( message ) ;
142139}
You can’t perform that action at this time.
0 commit comments