File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
packages/language-service/lib Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ export function createLanguageService(
109109 return provide ( ...args as any ) ;
110110 }
111111 }
112- throw `No service provide ${ key as any } ` ;
113112 } ,
114113 services : [ ] ,
115114 commands : {
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export interface ServiceContext {
5252 inject < Provide , K extends keyof Provide = keyof Provide > (
5353 key : K ,
5454 ...args : Provide [ K ] extends ( ...args : any ) => any ? Parameters < Provide [ K ] > : never
55- ) : ReturnType < Provide [ K ] extends ( ...args : any ) => any ? Provide [ K ] : never > ;
55+ ) : ReturnType < Provide [ K ] extends ( ...args : any ) => any ? Provide [ K ] : never > | undefined ;
5656 commands : {
5757 showReferences : ServiceCommand < [ uri : string , position : vscode . Position , locations : vscode . Location [ ] ] > ;
5858 rename : ServiceCommand < [ uri : string , position : vscode . Position ] > ;
You can’t perform that action at this time.
0 commit comments