コード例 #1
0
        public ILanguageServerTarget Create(
            JsonRpc jsonRpc,
            ICapabilitiesProvider capabilitiesProvider,
            ILspLogger logger)
        {
            var lspMiscellaneousFilesWorkspace = new LspMiscellaneousFilesWorkspace(logger);

            return(new LanguageServerTarget(
                       _dispatcherFactory,
                       jsonRpc,
                       capabilitiesProvider,
                       _lspWorkspaceRegistrationService,
                       lspMiscellaneousFilesWorkspace,
                       _globalOptions,
                       _listenerProvider,
                       logger,
                       ProtocolConstants.RoslynLspLanguages,
                       WellKnownLspServerKinds.CSharpVisualBasicLspServer));
        }
コード例 #2
0
        public ILanguageServerTarget Create(
            JsonRpc jsonRpc,
            ICapabilitiesProvider capabilitiesProvider,
            ILspLogger logger)
        {
            var lspMiscellaneousFilesWorkspace = new LspMiscellaneousFilesWorkspace(logger);

            return(new LanguageServerTarget(
                       _dispatcherFactory,
                       jsonRpc,
                       capabilitiesProvider,
                       _lspWorkspaceRegistrationService,
                       lspMiscellaneousFilesWorkspace,
                       _globalOptions,
                       _listenerProvider,
                       logger,
                       ProtocolConstants.RoslynLspLanguages,
                       clientName: null,
                       userVisibleServerName: UserVisibleName,
                       telemetryServerTypeName: this.GetType().Name));
        }