-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run peek references when running go to definition on the only definit…
…ion, fixes #73081
- Loading branch information
Showing
2 changed files
with
84 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -8,7 +8,7 @@ import { createCancelablePromise, raceCancellation } from 'vs/base/common/async' | |||
import { CancellationToken } from 'vs/base/common/cancellation'; | ||||
import { KeyChord, KeyCode, KeyMod } from 'vs/base/common/keyCodes'; | ||||
import { isWeb } from 'vs/base/common/platform'; | ||||
import { ICodeEditor, isCodeEditor } from 'vs/editor/browser/editorBrowser'; | ||||
import { ICodeEditor, isCodeEditor, IActiveCodeEditor } from 'vs/editor/browser/editorBrowser'; | ||||
import { EditorAction, IActionOptions, registerEditorAction, ServicesAccessor } from 'vs/editor/browser/editorExtensions'; | ||||
import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService'; | ||||
import * as corePosition from 'vs/editor/common/core/position'; | ||||
|
@@ -35,9 +35,9 @@ import { isStandalone } from 'vs/base/browser/browser'; | |||
import { URI } from 'vs/base/common/uri'; | ||||
|
||||
export interface SymbolNavigationActionConfig { | ||||
openToSide: boolean;// = false | ||||
openInPeek: boolean;// = false | ||||
muteMessage: boolean;// = true | ||||
openToSide: boolean; | ||||
openInPeek: boolean; | ||||
muteMessage: boolean; | ||||
} | ||||
|
||||
abstract class SymbolNavigationAction extends EditorAction { | ||||
|
@@ -69,21 +69,23 @@ abstract class SymbolNavigationAction extends EditorAction { | |||
return; | ||||
} | ||||
|
||||
const referenceUnderCusor = references.referenceAt(model.uri, pos); | ||||
alert(references.ariaMessage); | ||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
V-ed
Contributor
|
export function alert(msg: string, disableRepeat?: boolean): void { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@jrieken Isn't that
alert()
problematic? I'm guessing it was useful to debug quickly, but it feels weird to see a default javascript'salert
method in the master branch x)