INNER CODE UNIT · TypeScript

PSRuleClient

microsoft/PSRule · src/vscode-ps-rule/client.ts:18

export class PSRuleClient implements vscode.Disposable {
    private _configurationWatcher?: vscode.Disposable;
    private _currentOptionsPath?: string;
    private _optionsFileWatcher?: vscode.FileSystemWatcher;
    private _languageClient?: lsp.LanguageClient;

    public async configure(
        context: vscode.ExtensionContext,
    ): Promise<lsp.LanguageClient> {
        // Prepare options for the language server.
        const serverOptions = this.getServerOptions(context);
        if (!serverOptions) {
            logger.error('Failed to configure server options.');
            return Promise.reject('Failed to configure server options.');
        }

        const clientOptions = this.getClientOptions();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…