Skip to content

Commit

Permalink
New project solutions don't require adding files to solution
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair committed Oct 21, 2018
1 parent c96af39 commit cd965c6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions omnisharp-solution-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,6 @@ for the whole solution."
"took " (number-to-string time-elapsed-seconds) " seconds to complete.\n"))
(setq buffer-read-only t)))))))))

;; TODO create omnisharp-add-to-solution that lets user choose which
;; file to add.
(defun omnisharp-add-to-solution-current-file ()
(interactive)
(let ((params (omnisharp--get-request-object)))
(omnisharp-add-to-solution-worker params)
(message "Added %s to the solution."
(omnisharp--get-filename params))))

(defun omnisharp-add-to-solution-dired-selected-files ()
"Add the files currently selected in dired to the current solution."
(interactive)
(let ((selected-files (dired-get-marked-files)))
(--each selected-files
(let ((params
(cons (omnisharp--to-filename it)
(omnisharp--get-request-object))))
(omnisharp-add-to-solution-worker params))
(message "Added %s files to the solution."
(prin1-to-string (length selected-files))))))

(defun omnisharp-run-code-action-refactoring ()
"Gets a list of refactoring code actions for the current editor
position and file from the server. Asks the user what kind of
Expand Down

0 comments on commit cd965c6

Please sign in to comment.