Skip to content

Revive autocomplete deephaven-core#682#67

Merged
JamesXNelson merged 2 commits intodeephaven:mainfrom
JamesXNelson:jxn/autocomplete
Jun 23, 2021
Merged

Revive autocomplete deephaven-core#682#67
JamesXNelson merged 2 commits intodeephaven:mainfrom
JamesXNelson:jxn/autocomplete

Conversation

@JamesXNelson
Copy link
Member

No description provided.

@JamesXNelson
Copy link
Member Author

Do NOT merge until deephaven/deephaven-core#682 merges, else we'll have very broken clients.

@JamesXNelson
Copy link
Member Author

Fixed imports. not sure if you want me to reorder the import that I do have to make it cleaner or not?

import { PromiseUtils } from '@deephaven/utils';
import { getCommandHistoryStorage } from '@deephaven/redux';
import MonacoUtils from './monaco/MonacoUtils';
import MonacoCompletionProvider from './MonacoCompletionProvider';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make sense to move this into console/src/monaco as well, then make an index file that exports all of them, so you can just do import { MonacoCompletionProvider, MonacoTheme, MonacoUtils } from './monaco', would be nice little cleanup.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that work for MonacoTheme, even though it is imported from ./monaco/MonacoTheme.module.scss ?

Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to update ScriptEditor as well, there's a couple of commented out lines there calling MonacoUtils.openDocument and MonacoUtils.closeDocument (it's already calling getCompletionItems)

@JamesXNelson JamesXNelson merged commit 31c0960 into deephaven:main Jun 23, 2021
@mofojed mofojed added the enhancement New feature or request label Jun 24, 2021
This was referenced Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants