@@ -15,7 +15,7 @@ import { IAutoFocus, Mode, IEntryRunContext } from 'vs/base/parts/quickopen/comm
1515import * as filters from 'vs/base/common/filters' ;
1616import * as strings from 'vs/base/common/strings' ;
1717import { Range } from 'vs/editor/common/core/range' ;
18- import { EditorInput , IWorkbenchEditorConfiguration } from 'vs/workbench/common/editor' ;
18+ import { IWorkbenchEditorConfiguration } from 'vs/workbench/common/editor' ;
1919import { symbolKindToCssClass } from 'vs/editor/common/modes' ;
2020import { IResourceInput } from 'vs/platform/editor/common/editor' ;
2121import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
@@ -71,10 +71,7 @@ class SymbolEntry extends EditorQuickOpenEntry {
7171 run ( mode : Mode , context : IEntryRunContext ) : boolean {
7272
7373 // resolve this type bearing if neccessary
74- if ( ! this . bearingResolve
75- && typeof this . provider . resolveWorkspaceSymbol === 'function'
76- && ! this . bearing . location . range
77- ) {
74+ if ( ! this . bearingResolve && typeof this . provider . resolveWorkspaceSymbol === 'function' && ! this . bearing . location . range ) {
7875 this . bearingResolve = Promise . resolve ( this . provider . resolveWorkspaceSymbol ( this . bearing , CancellationToken . None ) ) . then ( result => {
7976 this . bearing = result || this . bearing ;
8077
@@ -90,7 +87,7 @@ class SymbolEntry extends EditorQuickOpenEntry {
9087 return mode === Mode . OPEN ;
9188 }
9289
93- getInput ( ) : IResourceInput | EditorInput {
90+ getInput ( ) : IResourceInput {
9491 const input : IResourceInput = {
9592 resource : this . bearing . location . uri ,
9693 options : {
@@ -130,15 +127,15 @@ export class OpenSymbolHandler extends QuickOpenHandler {
130127
131128 static readonly ID = 'workbench.picker.symbols' ;
132129
133- private static readonly SEARCH_DELAY = 200 ; // This delay accommodates for the user typing a word and then stops typing to start searching
130+ private static readonly TYPING_SEARCH_DELAY = 200 ; // This delay accommodates for the user typing a word and then stops typing to start searching
134131
135132 private delayer : ThrottledDelayer < QuickOpenEntry [ ] > ;
136133 private options : IOpenSymbolOptions ;
137134
138135 constructor ( @IInstantiationService private instantiationService : IInstantiationService ) {
139136 super ( ) ;
140137
141- this . delayer = new ThrottledDelayer < QuickOpenEntry [ ] > ( OpenSymbolHandler . SEARCH_DELAY ) ;
138+ this . delayer = new ThrottledDelayer < QuickOpenEntry [ ] > ( OpenSymbolHandler . TYPING_SEARCH_DELAY ) ;
142139 this . options = Object . create ( null ) ;
143140 }
144141
0 commit comments