|
1 |
| -;; -*- mode: Emacs-Lisp; lexical-binding: t; -*- |
2 |
| -;;; omnisharp.el --- Omnicompletion (intellisense) and more for C# |
3 |
| -;; Copyright (C) 2013 Mika Vilpas (GPLv3) |
4 |
| -;; Author: Mika Vilpas |
5 |
| -;; Version: 3.4 |
| 1 | +;;; omnisharp.el --- Omnicompletion (intellisense) and more for C# -*- lexical-binding: t; -*- |
| 2 | + |
| 3 | +;; Copyright (C) 2013-2017 Mika Vilpas and others (GPLv3) |
| 4 | +;; Author: Mika Vilpas and others |
| 5 | +;; Version: 4.0 |
6 | 6 | ;; Url: https://github.com/Omnisharp/omnisharp-emacs
|
7 |
| -;; Package-Requires: ((json "1.2") (flycheck "30") (dash "2.12.1") (auto-complete "1.4") (popup "0.5.1") (csharp-mode "0.8.7") (cl-lib "0.5") (s "1.10.0") (shut-up "0.3.2")) |
8 |
| -;; Keywords: csharp c# IDE auto-complete intellisense |
| 7 | +;; Package-Requires: ((emacs "24") (flycheck "30") (dash "2.12.0") (auto-complete "1.4") (popup "0.5.1") (csharp-mode "0.8.7") (cl-lib "0.5") (s "1.10.0") (shut-up "0.3.2")) |
| 8 | +;; Keywords: languages csharp c# IDE auto-complete intellisense |
9 | 9 |
|
10 | 10 | ;;; Commentary:
|
11 | 11 | ;; omnisharp-emacs is a port of the awesome OmniSharp server to the
|
@@ -305,7 +305,7 @@ the user selects a completion and the completion is inserted."
|
305 | 305 |
|
306 | 306 | (defun omnisharp--flycheck-start (checker callback)
|
307 | 307 | "Start an OmniSharp syntax check with CHECKER.
|
308 |
| -CALLBACK is the status callback passed by Flycheck." |
| 308 | +CALLBACK is the status callback passed by Flycheck." |
309 | 309 | ;; Put the current buffer into the closure environment so that we have access
|
310 | 310 | ;; to it later.
|
311 | 311 | (let ((buffer (current-buffer)))
|
@@ -346,8 +346,7 @@ locations in the json."
|
346 | 346 | cursor at that location"
|
347 | 347 | (let* ((element-line (cdr (assoc 'Line element)))
|
348 | 348 | (element-column (cdr (assoc 'Column element)))
|
349 |
| - (element-filename (omnisharp--get-filename element)) |
350 |
| - (use-buffer (current-buffer))) |
| 349 | + (element-filename (omnisharp--get-filename element))) |
351 | 350 | (save-excursion
|
352 | 351 | (omnisharp-go-to-file-line-and-column-worker
|
353 | 352 | element-line
|
@@ -376,12 +375,11 @@ cursor at that location"
|
376 | 375 | (error nil)))
|
377 | 376 |
|
378 | 377 | (defun omnisharp-format-find-output-to-ido (item)
|
379 |
| - (let (filename (omnisharp--get-filename item)) |
380 |
| - (cons |
381 |
| - (cons |
382 |
| - (car (car item)) |
383 |
| - (concat (car (last (split-string filename "/"))) ": " (s-trim (cdr (car item))))) |
384 |
| - (cdr item)))) |
| 378 | + (cons |
| 379 | + (cons |
| 380 | + (car (car item)) |
| 381 | + (concat (car (last (split-string filename "/"))) ": " (s-trim (cdr (car item))))) |
| 382 | + (cdr item))) |
385 | 383 |
|
386 | 384 | (defun omnisharp-format-symbol (item)
|
387 | 385 | (cons
|
@@ -428,7 +426,7 @@ cursor at that location"
|
428 | 426 | (condition-case nil
|
429 | 427 | (forward-sexp)
|
430 | 428 | (error nil))
|
431 |
| - |
| 429 | + |
432 | 430 | (when (> (point) start-point)
|
433 | 431 | (setq found-point test-point)
|
434 | 432 | (setq found-start t))
|
@@ -470,4 +468,3 @@ cursor at that location"
|
470 | 468 | (provide 'omnisharp)
|
471 | 469 |
|
472 | 470 | ;;; omnisharp.el ends here
|
473 |
| - |
0 commit comments