- Hover provider showing entity information and type - Go-to-definition (F12) for entity references - Basic IFC file validation (ISO-10303-21 header check) - Entity parsing with regex-based detection - Proper CommonJS module system (avoiding ES module issues) This replaces the broken baseline from ifc-developer-tools which had: - Non-functional ES module configuration - Circular dependency issues - Parser crashes - Non-working PositionVisitor Built on Microsoft's LSP example template for a clean, maintainable foundation. Next: Add hierarchical entity dependency tree in hover tooltip."
16 lines
1,017 B
TypeScript
16 lines
1,017 B
TypeScript
import { RequestHandler, NotificationHandler, WorkspaceEdit, CreateFilesParams, RenameFilesParams, DeleteFilesParams, Disposable } from 'vscode-languageserver-protocol';
|
|
import type { Feature, _RemoteWorkspace } from './server';
|
|
/**
|
|
* Shape of the file operations feature
|
|
*
|
|
* @since 3.16.0
|
|
*/
|
|
export interface FileOperationsFeatureShape {
|
|
onDidCreateFiles(handler: NotificationHandler<CreateFilesParams>): Disposable;
|
|
onDidRenameFiles(handler: NotificationHandler<RenameFilesParams>): Disposable;
|
|
onDidDeleteFiles(handler: NotificationHandler<DeleteFilesParams>): Disposable;
|
|
onWillCreateFiles(handler: RequestHandler<CreateFilesParams, WorkspaceEdit | null, never>): Disposable;
|
|
onWillRenameFiles(handler: RequestHandler<RenameFilesParams, WorkspaceEdit | null, never>): Disposable;
|
|
onWillDeleteFiles(handler: RequestHandler<DeleteFilesParams, WorkspaceEdit | null, never>): Disposable;
|
|
}
|
|
export declare const FileOperationsFeature: Feature<_RemoteWorkspace, FileOperationsFeatureShape>;
|