text: 'use strict';
  Object.defineProperty(exports, "__esModule", { value: true });
  const path = require("path");
  const vscode_1 = require("vscode");
  const vscode_languageclient_1 = require("vscode-languageclient");
  function activate(context) {
      // The server is implemented in node
      let serverModule = context.asAbsolutePath(path.join('client', 'server', 'server.js'));
      // The debug options for the server
      let debugOptions = { execArgv: ["--nolazy", "--inspect=6009"] };
      // If the extension is launched in debug mode then the debug server options are used
      // Otherwise the run options are used
      let serverOptions = {
          run: { module: serverModule, transport: vscode_languageclient_1.TransportKind.ipc },
          debug: { module: serverModule, transport: vscode_languageclient_1.TransportKind.ipc, options: debugOptions }
      };
      // Options to control the language client
      let clientOptions = {
          // Register the server for dialogscript documents
          documentSelector: [{ scheme: 'file', language: 'dialogscript' }],
          synchronize: {
              // Synchronize the setting section 'languageServerExample' to the server
              configurationSection: 'lspSample',
              // Notify the server about file changes to '.clientrc files contain in the workspace
              fileEvents: vscode_1.workspace.createFileSystemWatcher('**/.clientrc')
          }
      };
      // Create the language client and start the client.
      let disposable = new vscode_languageclient_1.LanguageClient('lspSample', 'Language Server Example', serverOptions, clientOptions).start();
      // Push the disposable to the context's subscriptions so that the 
      // client can be deactivated on extension deactivation
      context.subscriptions.push(disposable);
  }
  exports.activate = activate;
  //# sourceMappingURL=extension.js.map