File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 "default" : " phpactor" ,
3030 "description" : " phpactor bin path"
3131 },
32+ "phpactor.revealOutputChannelOn" : {
33+ "type" : " string" ,
34+ "enum" : [
35+ " info" ,
36+ " warn" ,
37+ " error" ,
38+ " never"
39+ ],
40+ "default" : " never" ,
41+ "description" : " Specifies message severity on which the output channel will be revealed."
42+ },
3243 "phpactor.enable" : {
3344 "type" : " boolean" ,
3445 "default" : true ,
Original file line number Diff line number Diff line change 44 ServerOptions ,
55 workspace ,
66 LanguageClientOptions ,
7- commands
7+ commands ,
8+ RevealOutputChannelOn
89} from "coc.nvim" ;
910
1011const LanguageID = 'php' ;
@@ -51,6 +52,7 @@ function createClient(config: any): LanguageClient {
5152 { language : LanguageID , scheme : 'file' } ,
5253 { language : LanguageID , scheme : 'untitled' }
5354 ] ,
55+ revealOutputChannelOn : fromStringToRevealOutputChannelOn ( config . revealOutputChannelOn ) ,
5456 initializationOptions : config . config
5557 } ;
5658
@@ -100,3 +102,17 @@ function status(): void {
100102
101103 languageClient . sendRequest ( 'system/status' ) ;
102104}
105+
106+ function fromStringToRevealOutputChannelOn ( value : string ) : RevealOutputChannelOn {
107+ switch ( value && value . toLowerCase ( ) ) {
108+ case 'info' :
109+ return RevealOutputChannelOn . Info
110+ case 'warn' :
111+ return RevealOutputChannelOn . Warn
112+ case 'error' :
113+ return RevealOutputChannelOn . Error
114+ case 'never' :
115+ default :
116+ return RevealOutputChannelOn . Never
117+ }
118+ }
You can’t perform that action at this time.
0 commit comments