bundles/org.eclipse.orion.client.editor/web/orion/editor/contentAssist.js
function() {
			// figure out initial offset, it should be the minimum between 
			// the beginning of the selection and the current caret offset
			var offset = this.textView.getCaretOffset();
			var sel = this.textView.getSelection();
			var selectionStart = Math.min(sel.start, sel.end);			
			this._initialCaretOffset = Math.min(offset, selectionStart);
			this._computedProposals = null;
			delete this._autoApply;
			this._computeProposals(this._initialCaretOffset).then(function(proposals) {
				if (this.isActive()) {
					var flatProposalArray = this._flatten(proposals);
					//check if flattened proposals form a valid array with at least one entry
					if (flatProposalArray && Array.isArray(flatProposalArray) && (0 < flatProposalArray.length)) {
						this._computedProposals = proposals;
					}
					var autoApply = typeof this._autoApply === 'boolean' ? this._autoApply : !this._autoTriggerEnabled;
					this.dispatchEvent({type: "ProposalsComputed", data: {proposals: flatProposalArray}, autoApply: autoApply}); //$NON-NLS-0$
					if (this._computedProposals && this._filterText) {
						// force filtering here because user entered text after
						// computeProposals() was called but before the plugins
						// returned the computed proposals
						this.filterProposals(true);
					}
				}
			}.bind(this));
		}
function() {
			// figure out initial offset, it should be the minimum between 
			// the beginning of the selection and the current caret offset
			var offset = this.textView.getCaretOffset();
			var sel = this.textView.getSelection();
			var selectionStart = Math.min(sel.start, sel.end);			
			this._initialCaretOffset = Math.min(offset, selectionStart);
			this._computedProposals = null;
			delete this._autoApply;
			this._computeProposals(this._initialCaretOffset).then(function(proposals) {
				if (this.isActive()) {
					var flatProposalArray = this._flatten(proposals);
					//check if flattened proposals form a valid array with at least one entry
					if (flatProposalArray && Array.isArray(flatProposalArray) && (0 < flatProposalArray.length)) {
						this._computedProposals = proposals;
					}
					var autoApply = typeof this._autoApply === 'boolean' ? this._autoApply : !this._autoTriggerEnabled;
					this.dispatchEvent({type: "ProposalsComputed", data: {proposals: flatProposalArray}, autoApply: autoApply}); //$NON-NLS-0$
					if (this._computedProposals && this._filterText) {
						// force filtering here because user entered text after
						// computeProposals() was called but before the plugins
						// returned the computed proposals
						this.filterProposals(true);
					}
				}
			}.bind(this));
		}
function ( ) { // figure out initial offset, it should be the minimum between 
 // the beginning of the selection and the current caret offset
 var offset = this . textView . getCaretOffset ( ) ; var sel = this . textView . getSelection ( ) ; var selectionStart = Math . min ( sel . start , sel . end ) ; this . _initialCaretOffset = Math . min ( offset , selectionStart ) ; this . _computedProposals = null ; delete this . _autoApply ; this . _computeProposals ( this . _initialCaretOffset ) . then ( function ( proposals ) { if ( this . isActive ( ) ) { var flatProposalArray = this . _flatten ( proposals ) ; //check if flattened proposals form a valid array with at least one entry
 if ( flatProposalArray && Array . isArray ( flatProposalArray ) && ( 0 < flatProposalArray . length ) ) { this . _computedProposals = proposals ; } var autoApply = typeof this . _autoApply === 'boolean' ? this . _autoApply : ! this . _autoTriggerEnabled ; this . dispatchEvent ( { type : "ProposalsComputed" , data : { proposals : flatProposalArray } , autoApply : autoApply } ) ; //$NON-NLS-0$
 if ( this . _computedProposals && this . _filterText ) { // force filtering here because user entered text after
 // computeProposals() was called but before the plugins
 // returned the computed proposals
 this . filterProposals ( true ) ; } } } . bind ( this ) ) ; }
Computes the proposals at the TextView's current caret offset.
Computes the proposals at the TextView s current caret offset .