@@ -5,7 +5,7 @@ import * as monaco from 'monaco-editor'
55import type * as vscode from 'vscode'
66import { getFile , updateFile } from './customRequests'
77import { LanguageClientManager } from './languageClient'
8- import { LanguageClientId } from './languageClientOptions'
8+ import { LanguageClientId , LanguageClientOptions } from './languageClientOptions'
99
1010export interface Infrastructure {
1111 /**
@@ -22,10 +22,11 @@ export interface Infrastructure {
2222 * Workspace folders
2323 */
2424 workspaceFolders ?: typeof vscode . workspace . workspaceFolders
25+
2526 /**
26- * The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
27+ * Does a mutualization proxy will be used, it means we don't need to load configurations for this server
2728 */
28- useMutualizedProxy : boolean
29+ useMutualizedProxy ( languageClientId : LanguageClientId , options : LanguageClientOptions ) : boolean
2930
3031 /**
3132 * Save a file on the filesystem
@@ -74,7 +75,7 @@ export abstract class CodinGameInfrastructure implements Infrastructure {
7475 * The domain of the server
7576 */
7677 public serverAddress : string ,
77- public useMutualizedProxy : boolean ,
78+ private _useMutualizedProxy : boolean ,
7879 /**
7980 * An optional sessionId when connecting to the session-mutualized server
8081 */
@@ -86,6 +87,10 @@ export abstract class CodinGameInfrastructure implements Infrastructure {
8687 ) {
8788 }
8889
90+ useMutualizedProxy ( languageClientId : LanguageClientId , options : LanguageClientOptions ) : boolean {
91+ return this . _useMutualizedProxy && options . mutualizable
92+ }
93+
8994 public readonly automaticTextDocumentUpdate = false
9095 public readonly rootUri = 'file:///tmp/project'
9196 public readonly workspaceFolders : typeof vscode . workspace . workspaceFolders = [ {
0 commit comments