We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c4fe8 commit 6485cc7Copy full SHA for 6485cc7
1 file changed
src/services.ts
@@ -34,10 +34,7 @@ let services: Services | undefined
34
export namespace Services {
35
export type Provider = () => Services
36
export const get: Provider = () => {
37
- if (services == null) {
38
- throw new Error('Services has not been installed')
39
- }
40
- return services
+ return services ?? {}
41
}
42
export function install (_services: Services): vscode.Disposable {
43
if (services != null) {
0 commit comments