type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration | /** Cancel a previously requested snap. */
public cancelSnap(sessionId: string): void {
const request = this._snaps.get(sessionId);
if (undefined !== request) {
request.cancelSnap();
this._snaps.delete(sessionId);
}
} | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the IModel coordinate corresponding to each GeoCoordinate point in the input */
public async getIModelCoordinatesFromGeoCoordinates(requestContext: ClientRequestContext, props: string): Promise<IModelCoordinatesResponseProps> {
requestContext.enter();
const resultString: string = this.nativeDb.getIMod... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the GeoCoordinate (longitude, latitude, elevation) corresponding to each IModel Coordinate point in the input */
public async getGeoCoordinatesFromIModelCoordinates(requestContext: ClientRequestContext, props: string): Promise<GeoCoordinatesResponseProps> {
requestContext.enter();
const resultString: ... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Export meshes suitable for graphics APIs from arbitrary geometry in elements in this IModelDb.
* * Requests can be slow when processing many elements so it is expected that this function be used on a dedicated backend.
* * Vertices are exported in the IModelDb's world coordinate system, which is right-han... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the Model with the specified identifier.
* @param modelId The Model identifier.
* @throws [[IModelError]]
*/
public getModelProps<T extends ModelProps>(modelId: Id64String): T {
const json = this.getModelJson(JSON.stringify({ id: modelId.toString() }));
return JSON.parse(json) as... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the Model with the specified identifier.
* @param modelId The Model identifier.
* @throws [[IModelError]]
*/
public getModel<T extends Model>(modelId: Id64String): T { return this._iModel.constructEntity<T>(this.getModelProps(modelId)); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Read the properties for a Model as a json string.
* @param modelIdArg a json string with the identity of the model to load. Must have either "id" or "code".
* @return a json string with the properties of the model.
*/
public getModelJson(modelIdArg: string): string {
if (!this._iMod... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the sub-model of the specified Element.
* See [[IModelDb.Elements.queryElementIdByCode]] for more on how to find an element by Code.
* @param modeledElementId Identifies the modeled element.
* @throws [[IModelError]]
*/
public getSubModel<T extends Model>(modeledElementId: Id64String | G... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Create a new model in memory.
* See the example in [[InformationPartitionElement]].
* @param modelProps The properties to use when creating the model.
* @throws [[IModelError]] if there is a problem creating the model.
*/
public createModel<T extends Model>(modelProps: ModelProps): T { retur... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Insert a new model.
* @param props The data for the new model.
* @returns The newly inserted model's Id.
* @throws [[IModelError]] if unable to insert the model.
*/
public insertModel(props: ModelProps): Id64String {
if (props.isPrivate === undefined) // temporarily work around bug in... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Update an existing model.
* @param props the properties of the model to change
* @throws [[IModelError]] if unable to update the model.
*/
public updateModel(props: ModelProps): void {
const jsClass = this._iModel.getJsClass<typeof Model>(props.classFullName);
if (IModelStatus.Succes... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Delete one or more existing models.
* @param ids The Ids of the models to be deleted
* @throws [[IModelError]]
*/
public deleteModel(ids: Id64Arg): void {
Id64.toIdSet(ids).forEach((id) => {
const props = this.getModelProps(id);
const jsClass = this._iModel.getJsClass<type... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Read element data from iModel as a json string
* @param elementIdArg a json string with the identity of the element to load. Must have one of "id", "federationGuid", or "code".
* @return a json string with the properties of the element.
*/
public getElementJson<T extends ElementProps>(elem... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Get properties of an Element by Id, FederationGuid, or Code
* @throws [[IModelError]] if the element is not found.
*/
public getElementProps<T extends ElementProps>(elementId: Id64String | GuidString | Code | ElementLoadProps): T {
if (typeof elementId === "string")
elementId = I... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Get an element by Id, FederationGuid, or Code
* @param elementId either the element's Id, Code, or FederationGuid, or an ElementLoadProps
* @throws [[IModelError]] if the element is not found.
*/
public getElement<T extends Element>(elementId: Id64String | GuidString | Code | ElementLoadPr... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Query for the Id of the element that has a specified code.
* This method is for the case where you know the element's Code.
* If you only know the code *value*, then in the simplest case, you can query on that
* and filter the results.
* In the simple case, call [[IModelDb.queryEntit... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Create a new instance of an element.
* @param elProps The properties of the new element.
* @throws [[IModelError]] if there is a problem creating the element.
*/
public createElement<T extends Element>(elProps: ElementProps): T { return this._iModel.constructEntity<T>(elProps); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Insert a new element into the iModel.
* @param elProps The properties of the new element.
* @returns The newly inserted element's Id.
* @throws [[IModelError]] if unable to insert the element.
*/
public insertElement(elProps: ElementProps): Id64String {
const iModel = this._iM... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Update some properties of an existing element.
* @param el the properties of the element to update.
* @throws [[IModelError]] if unable to update the element.
*/
public updateElement(elProps: ElementProps): void {
const iModel = this._iModel;
const jsClass = iModel.getJsClass<typeof ... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /**
* Delete one or more elements from this iModel.
* @param ids The set of Ids of the element(s) to be deleted
* @throws [[IModelError]]
*/
public deleteElement(ids: Id64Arg): void {
const iModel = this._iModel;
Id64.toIdSet(ids).forEach((id) => {
const props = this.getEl... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Query for the child elements of the specified element.
* @returns Returns an array of child element identifiers.
* @throws [[IModelError]]
*/
public queryChildren(elementId: Id64String): Id64String[] {
const rows: any[] = this._iModel.executeQuery(`SELECT ECInstanceId FROM ${Element.classFu... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the root subject element. */
public getRootSubject(): Subject { return this.getElement(IModel.rootSubjectId); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Query for aspects of a particular class (polymorphically) associated with this element.
* @throws [[IModelError]]
*/
private _queryAspects(elementId: Id64String, aspectClassName: string): ElementAspect[] {
const rows = this._iModel.executeQuery(`SELECT * FROM ${aspectClassName} WHERE Element.Id=?... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Query for aspect by ECInstanceId
* @throws [[IModelError]]
*/
private _queryAspect(aspectInstanceId: Id64String, aspectClassName: string): ElementAspect {
const rows = this._iModel.executeQuery(`SELECT * FROM ${aspectClassName} WHERE ECInstanceId=?`, [aspectInstanceId]);
if (rows.length !=... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the ElementAspect instances (by class name) that are related to the specified element.
* @throws [[IModelError]]
*/
public getAspects(elementId: Id64String, aspectClassName: string): ElementAspect[] {
const aspects: ElementAspect[] = this._queryAspects(elementId, aspectClassName);
retu... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Insert a new ElementAspect into the iModel.
* @param aspectProps The properties of the new ElementAspect.
* @throws [[IModelError]] if unable to insert the ElementAspect.
*/
public insertAspect(aspectProps: ElementAspectProps): void {
if (!this._iModel.briefcase)
throw this._iModel... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Update an exist ElementAspect within the iModel.
* @param aspectProps The properties to use to update the ElementAspect.
* @throws [[IModelError]] if unable to update the ElementAspect.
*/
public updateAspect(aspectProps: ElementAspectProps): void {
if (!this._iModel.briefcase)
thr... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Delete one or more ElementAspects from this iModel.
* @param ids The set of Ids of the element(s) to be deleted
* @throws [[IModelError]]
*/
public deleteAspect(ids: Id64Arg): void {
Id64.toIdSet(ids).forEach((id) => {
const status = this._iModel.nativeDb.deleteElementAspect(id);
... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Query for the array of ViewDefinitionProps of the specified class and matching the specified IsPrivate setting.
* @param className Query for view definitions of this class.
* @param wantPrivate If true, include private view definitions.
*/
public queryViewDefinitionProps(className: string = "BisCo... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Iterate all ViewDefinitions matching the supplied query.
* @param params Specifies the query by which views are selected.
* @param callback Function invoked for each ViewDefinition matching the query. Return false to terminate iteration, true to continue.
* @return true if all views were iterated,... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration |
public getViewStateData(viewDefinitionId: string): ViewStateProps {
const viewStateData: ViewStateProps = {} as any;
const elements = this._iModel.elements;
const viewDefinitionElement = elements.getElement<ViewDefinition>(viewDefinitionId);
viewStateData.viewDefinitionProps = viewDefinitio... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration |
private getViewThumbnailArg(viewDefinitionId: Id64String): string {
const viewProps: FilePropertyProps = { namespace: "dgn_View", name: "Thumbnail", id: viewDefinitionId };
return JSON.stringify(viewProps);
} | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the thumbnail for a view.
* @param viewDefinitionId The Id of the view for thumbnail
* @return the ThumbnailProps, or undefined if no thumbnail exists.
*/
public getThumbnail(viewDefinitionId: Id64String): ThumbnailProps | undefined {
const viewArg = this.getViewThumbnailArg(viewDefinit... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Save a thumbnail for a view.
* @param viewDefinitionId The Id of the view for thumbnail
* @param thumbnail The thumbnail data.
* @returns 0 if successful
*/
public saveThumbnail(viewDefinitionId: Id64String, thumbnail: ThumbnailProps): number {
const viewArg = this.getViewThumbnailArg... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Set the default view property the iModel
* @param viewId The Id of the ViewDefinition to use as the default
*/
public setDefaultViewId(viewId: Id64String): void {
const spec = { namespace: "dgn_View", name: "DefaultView" };
const blob32 = new Uint32Array(2);
blob32[0] = Id64.getLowe... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
public async requestTileTreeProps(requestContext: ClientRequestContext, id: string): Promise<TileTreeProps> {
requestContext.enter();
if (!this._iModel.briefcase)
throw this._iModel.newNotOpenError();
return new Promise<TileTreeProps>((resolve, reject) => {
requ... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration |
private pollTileContent(resolve: (arg0: Uint8Array) => void, reject: (err: Error) => void, treeId: string, tileId: string, requestContext: ClientRequestContext) {
requestContext.enter();
if (!this._iModel.briefcase) {
reject(this._iModel.newNotOpenError());
return;
}
con... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
public async requestTileContent(requestContext: ClientRequestContext, treeId: string, tileId: string): Promise<Uint8Array> {
requestContext.enter();
if (!this._iModel.briefcase)
throw this._iModel.newNotOpenError();
return new Promise<Uint8Array>((resolve, reject) => {
... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration |
private _getElementClass(elClassName: string): typeof Element { return this._iModel.getJsClass(elClassName) as unknown as typeof Element; } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration |
private _getRelationshipClass(relClassName: string): typeof Relationship { return this._iModel.getJsClass<typeof Relationship>(relClassName); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
protected _onBeforeOutputsHandled(elClassName: string, elId: Id64String): void { this._getElementClass(elClassName).onBeforeOutputsHandled(elId, this._iModel); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
protected _onAllInputsHandled(elClassName: string, elId: Id64String): void { this._getElementClass(elClassName).onAllInputsHandled(elId, this._iModel); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
protected _onRootChanged(props: RelationshipProps): void { this._getRelationshipClass(props.classFullName).onRootChanged(props, this._iModel); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
protected _onValidateOutput(props: RelationshipProps): void { this._getRelationshipClass(props.classFullName).onValidateOutput(props, this._iModel); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
protected _onDeletedDependency(props: RelationshipProps): void { this._getRelationshipClass(props.classFullName).onDeletedDependency(props, this._iModel); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
protected _onBeginValidate() { this.validationErrors.length = 0; } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** @internal */
protected _onEndValidate() { } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Dependency handlers may call method this to report a validation error.
* @param error The error. If error.fatal === true, the transaction will cancel rather than commit.
*/
public reportError(error: ValidationError) { this.validationErrors.push(error); this._nativeDb.logTxnError(error.fatal); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the description of the operation that would be reversed by calling reverseTxns(1).
* This is useful for showing the operation that would be undone, for example in a menu.
*/
public getUndoString(): string { return this._nativeDb.getUndoString(); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get a description of the operation that would be reinstated by calling reinstateTxn.
* This is useful for showing the operation that would be redone, in a pull-down menu for example.
*/
public getRedoString(): string { return this._nativeDb.getRedoString(); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Begin a new multi-Txn operation. This can be used to cause a series of Txns, that would normally
* be considered separate actions for undo, to be grouped into a single undoable operation. This means that when reverseTxns(1) is called,
* the entire group of changes are undone together. Multi-Txn operations c... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** End a multi-Txn operation */
public endMultiTxnOperation(): DbResult { return this._nativeDb.endMultiTxnOperation(); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Return the depth of the multi-Txn stack. Generally for diagnostic use only. */
public getMultiTxnOperationDepth(): number { return this._nativeDb.getMultiTxnOperationDepth(); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Reverse (undo) the most recent operation(s) to this IModelDb.
* @param numOperations the number of operations to reverse. If this is greater than 1, the entire set of operations will
* be reinstated together when/if ReinstateTxn is called.
* @note If there are any outstanding uncommitted changes, they ... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Reverse the most recent operation. */
public reverseSingleTxn(): IModelStatus { return this.reverseTxns(1); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Reverse all changes back to the beginning of the session. */
public reverseAll(): IModelStatus { return this._nativeDb.reverseAll(); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Reverse all changes back to a previously saved TxnId.
* @param txnId a TxnId obtained from a previous call to GetCurrentTxnId.
* @returns Success if the transactions were reversed, error status otherwise.
* @see [[getCurrentTxnId]] [[cancelTo]]
*/
public reverseTo(txnId: TxnIdString) { return this.... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Reverse and then cancel (make non-reinstatable) all changes back to a previous TxnId.
* @param txnId a TxnId obtained from a previous call to [[getCurrentTxnId]]
* @returns Success if the transactions were reversed and cleared, error status otherwise.
*/
public cancelTo(txnId: TxnIdString) { return this... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Reinstate the most recently reversed transaction. Since at any time multiple transactions can be reversed, it
* may take multiple calls to this method to reinstate all reversed operations.
* @returns Success if a reversed transaction was reinstated, error status otherwise.
* @note If there are any outst... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the Id of the first transaction, if any. */
public queryFirstTxnId(): TxnIdString { return this._nativeDb.queryFirstTxnId(); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the successor of the specified TxnId */
public queryNextTxnId(txnId: TxnIdString): TxnIdString { return this._nativeDb.queryNextTxnId(txnId); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the predecessor of the specified TxnId */
public queryPreviousTxnId(txnId: TxnIdString): TxnIdString { return this._nativeDb.queryPreviousTxnId(txnId); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the Id of the current (tip) transaction. */
public getCurrentTxnId(): TxnIdString { return this._nativeDb.getCurrentTxnId(); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Get the description that was supplied when the specified transaction was saved. */
public getTxnDescription(txnId: TxnIdString): string { return this._nativeDb.getTxnDescription(txnId); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Test if a TxnId is valid */
public isTxnIdValid(txnId: TxnIdString): boolean { return this._nativeDb.isTxnIdValid(txnId); } | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
MethodDeclaration | /** Make a description of the changeset by combining all local txn comments. */
public describeChangeSet(endTxnId?: TxnIdString): string {
if (endTxnId === undefined)
endTxnId = this.getCurrentTxnId();
const changes = [];
const seen = new Set<string>();
let txnId = this.queryFirstTxnId();
... | Ranjith-K-Soman/imodeljs | core/backend/src/IModelDb.ts | TypeScript |
ArrowFunction |
() => {
return (
<View style={styles.footerContainer}>
<Button
size='small'
style={styles.footerControl}>
Accept
</Button>
<Button
size='small'
status='basic'>
Cancel
</Button>
</View> | ihranova/react-native-ui-kitten | src/playground/src/ui/screen/showcases/card/cardHeaderFooter.component.tsx | TypeScript |
ArrowFunction |
() => (
<CardHeader
title='Title' | ihranova/react-native-ui-kitten | src/playground/src/ui/screen/showcases/card/cardHeaderFooter.component.tsx | TypeScript |
ArrowFunction |
() => (
<Layout style={styles.container}>
<Card
header | ihranova/react-native-ui-kitten | src/playground/src/ui/screen/showcases/card/cardHeaderFooter.component.tsx | TypeScript |
FunctionDeclaration |
export function getActiveEditor(accessor: ServicesAccessor): IActiveCodeEditor | null {
let activeTextEditorControl = accessor.get(IEditorService).activeTextEditorControl;
if (isDiffEditor(activeTextEditorControl)) {
if (activeTextEditorControl.getOriginalEditor().hasTextFocus()) {
activeTextEditorControl = ac... | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
range => {
if ((range.startLineNumber <= hoverLine) && (range.endLineNumber >= hoverLine)) {
const beforeRange = new Range(range.startLineNumber, 1, hoverLine, 1);
const hoverRange = new Range(hoverLine, 1, hoverLine, 1);
const afterRange = new Range(hoverLine, 1, range.endLineNumber, 1);
comme... | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
(decoration, index) => decoration.id = this.decorationIds[index] | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
action => {
return (action.range.startLineNumber <= commentRange.startLineNumber) && (commentRange.endLineNumber <= action.range.endLineNumber);
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
actions => actions.action | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
count => {
if (count === 0) {
this.clearEditorListeners();
} else if (!this._editorDisposables) {
this.registerEditorListeners();
}
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
ownerId => {
delete this._pendingCommentCache[ownerId];
this.beginCompute();
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
_ => this.beginCompute() | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
e => {
const editorURI = this.editor && this.editor.hasModel() && this.editor.getModel().uri;
if (editorURI && editorURI.toString() === e.resource.toString()) {
this.setComments(e.commentInfos.filter(commentInfo => commentInfo !== null));
}
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
commentInfo => commentInfo !== null | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
e => this.onModelChanged(e) | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
e => this.onEditorMouseMove(e) | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
e => this.onEditorChangeCursorPosition(e.position) | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
() => this.onEditorChangeCursorPosition(this.editor.getPosition()) | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
disposable => disposable.dispose() | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
token => {
const editorURI = this.editor && this.editor.hasModel() && this.editor.getModel().uri;
if (editorURI) {
return this.commentService.getDocumentComments(editorURI);
}
return Promise.resolve([]);
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
commentInfos => {
this.setComments(coalesce(commentInfos));
this._computePromise = null;
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
() => {
const editorURI = this.editor && this.editor.hasModel() && this.editor.getModel().uri;
if (editorURI) {
return this.commentService.getDocumentComments(editorURI);
}
return Promise.resolve([]);
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
commentInfos => {
const meaningfulCommentInfos = coalesce(commentInfos);
this._commentingRangeDecorator.update(this.editor, meaningfulCommentInfos);
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
(err) => {
onUnexpectedError(err);
return null;
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
widget => widget.commentThread.threadId === threadId | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
_ => {
this.revealCommentThread(threadId, commentUniqueId, false);
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
(a, b) => {
if (reverse) {
const temp = a;
a = b;
b = temp;
}
if (a.commentThread.range.startLineNumber < b.commentThread.range.startLineNumber) {
return -1;
}
if (a.commentThread.range.startLineNumber > b.commentThread.range.startLineNumber) {
return 1;
}
if (a.commentThread... | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
widget => {
let lineValueOne = reverse ? after.lineNumber : widget.commentThread.range.startLineNumber;
let lineValueTwo = reverse ? widget.commentThread.range.startLineNumber : after.lineNumber;
let columnValueOne = reverse ? after.column : widget.commentThread.range.startColumn;
let columnValueTwo = reve... | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
widget => widget.dispose() | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
e => this.onEditorMouseDown(e) | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
e => this.onEditorMouseUp(e) | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
() => {
if (this._computeCommentingRangeScheduler) {
this._computeCommentingRangeScheduler.cancel();
}
this._computeCommentingRangeScheduler = null;
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
async () => {
this.beginComputeCommentingRanges();
} | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
async e => {
const editorURI = this.editor && this.editor.hasModel() && this.editor.getModel().uri;
if (!editorURI) {
return;
}
if (this._computePromise) {
await this._computePromise;
}
let commentInfo = this._commentInfos.filter(info => info.owner === e.owner);
if (!commentInfo || !comm... | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
ArrowFunction |
info => info.owner === e.owner | CUBETIQ/vscode | src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.