How to use the @theia/editor/lib/browser.EditorCommands.SHOW_REFERENCES function in @theia/editor

To help you get started, we’ve selected a few @theia/editor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github theia-ide / yangster / theia-yang-extension / src / frontend / language / yang-commands.ts View on Github external
execute: (uri: string, position: Position, locations: Location[]) =>
                commands.executeCommand(EditorCommands.SHOW_REFERENCES.id, uri, position, locations)
        });
github eclipse-theia / theia / packages / monaco / src / browser / monaco-command.ts View on Github external
protected registerEditorCommandHandlers(): void {
        this.registry.registerHandler(EditorCommands.SHOW_REFERENCES.id, this.newShowReferenceHandler());
        this.registry.registerHandler(EditorCommands.CONFIG_INDENTATION.id, this.newConfigIndentationHandler());
        this.registry.registerHandler(EditorCommands.CONFIG_EOL.id, this.newConfigEolHandler());
        this.registry.registerHandler(EditorCommands.INDENT_USING_SPACES.id, this.newConfigTabSizeHandler(true));
        this.registry.registerHandler(EditorCommands.INDENT_USING_TABS.id, this.newConfigTabSizeHandler(false));
    }
github eclipse-theia / theia / packages / java / src / browser / java-commands.ts View on Github external
execute: (uri: string, position: Position, locations: Location[]) =>
                commands.executeCommand(EditorCommands.SHOW_REFERENCES.id, uri, position, locations)
        });