Skip to content

Commit 4e319dd

Browse files
committed
doc: Add some documentation
1 parent b2861e2 commit 4e319dd

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/extensionConfiguration.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { loadConfigurationForExtension } from '@codingame/monaco-editor-wrapper/dist/features/extensionConfigurations'
22
import staticOptions, { LanguageClientId } from './staticOptions'
33

4+
/**
5+
* Load the configuration schemas from vscode extensions
6+
* @param forLanguageClientIds Load the extensions related to these language client ids
7+
* @param useMutualizedProxy The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
8+
*/
49
export async function loadExtensionConfigurations (forLanguageClientIds: LanguageClientId[], useMutualizedProxy: boolean): Promise<void> {
510
const extensionConfigurationToLoad = new Set<string>()
611
for (const languageClientId of forLanguageClientIds) {

src/languageClient.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,16 @@ export class LanguageClientManager implements LanguageClient {
248248

249249
const languageClientManagerByLanguageId: Partial<Record<string, LanguageClientManager>> = {}
250250

251+
/**
252+
* Create a language client manager
253+
* @param id The predefined id of the language client
254+
* @param sessionId An optional sessionId when connecting to the session-mutualized server
255+
* @param languageServerAddress The domain of the server
256+
* @param getSecurityToken A function which returns a valid JWT token to use to connect to the server
257+
* @param libraryUrls A list of urls which link to zip files containing libraries/resources
258+
* @param useMutualizedProxy The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
259+
* @returns A language client manager
260+
*/
251261
function createLanguageClientManager (
252262
id: LanguageClientId,
253263
sessionId: string | undefined,

0 commit comments

Comments
 (0)