예제 #1
0
        private GetCodeActionsRequest CreateGetCodeActionsRequest(string source)
        {
            var   range     = TestHelpers.GetRangeFromDollars(source);
            Range selection = GetSelection(range);

            return(new GetCodeActionsRequest
            {
                Line = range.Start.Line,
                Column = range.Start.Column,
                FileName = bufferPath,
                Buffer = source.Replace("$", ""),
                Selection = selection
            });
        }
예제 #2
0
        private RunCodeActionRequest CreateRunCodeActionRequest(string source, string identifier, bool wantChanges)
        {
            var range     = TestHelpers.GetRangeFromDollars(source);
            var selection = GetSelection(range);

            return(new RunCodeActionRequest
            {
                Line = range.Start.Line,
                Column = range.Start.Column,
                Selection = selection,
                FileName = bufferPath,
                Buffer = source.Replace("$", ""),
                Identifier = identifier,
                WantsTextChanges = wantChanges
            });
        }