Skip to content

Commit 95b6153

Browse files
committed
add middleware workspace.configuration
1 parent 8f7860b commit 95b6153

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

client/src/extension.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ export function activate(context: ExtensionContext) {
123123
markdown: {
124124
isTrusted: true,
125125
},
126+
middleware: {
127+
workspace: {
128+
configuration: async (_params, _token, _next) => {
129+
// For the experimental server, we don't want to send the full configuration
130+
// We send only setting inside rescript.settings, i.e, server settings
131+
return [workspace.getConfiguration("rescript.settings")]
132+
},
133+
},
134+
},
126135
};
127136

128137
const client = new LanguageClient(

0 commit comments

Comments
 (0)