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 b262954 commit b7d1c74Copy full SHA for b7d1c74
src/services/ConfigService.ts
@@ -0,0 +1,18 @@
1
+import * as vscode from 'vscode';
2
+
3
+export default class ConfigService {
4
5
+ /**
6
+ * The extension configuration object
7
+ */
8
+ static config: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration('ee');
9
10
11
+ * Check if user has suggestions enabled
12
+ *
13
+ * @return boolean
14
15
+ public static suggestionsEnabled(): boolean {
16
+ return ConfigService.config.get('suggestCompletions', true);
17
+ }
18
+}
0 commit comments