Skip to content

Commit 7eb0f63

Browse files
authored
(feat) vscode: expose language server for experiments (#761)
#725
1 parent 092e90c commit 7eb0f63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/svelte-vscode/src/extension.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,16 @@ export function activate(context: ExtensionContext) {
219219
}
220220
]
221221
});
222+
223+
// This API is considered private and only exposed for experimenting.
224+
// Interface may change at any time. Use at your own risk!
225+
return {
226+
/**
227+
* As a function, because restarting the server
228+
* will result in another instance.
229+
*/
230+
getLanguageServer: getLS
231+
};
222232
}
223233

224234
function addRenameFileListener(getLS: () => LanguageClient) {

0 commit comments

Comments
 (0)