FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactored code to make use of interface generics from `monaco-editor` by bkataru · Pull Request #2 · Exafunction/codeium-react-code-editor · GitHub

Refactored code to make use of interface generics from monaco-editor - #2

Open
bkataru wants to merge 2 commits into
Exafunction:mainfrom
codeium-editor:fork
Open

Refactored code to make use of interface generics from monaco-editor#2
bkataru wants to merge 2 commits into
Exafunction:mainfrom
codeium-editor:fork

Conversation

bkataru commented Dec 30, 2023

Copy link
Copy Markdown

Refactored MonacoInlineCompletion into its own file to reuse the class to redefine some interfaces as interface generics in accordance with the monaco-editor API because MonacoInlineCompletion is after all an implementation of the monaco.languages.InlineCompletion interface.

Also added the following type-guard for inlineCompletionItems to remove the type assertion as monaco.languages.InlineCompletion[]

      .filter(
        (item?: MonacoInlineCompletion): item is MonacoInlineCompletion =>
          !!item
      );

khou22 requested a review from andyzg February 7, 2024 18:59

andyzg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you for the refactor! Left one comment, and then I can test this and get this merged!

Comment thread tsconfig.json
"sourceMap": true,
"outDir": "dist",
"moduleResolution": "node",
"moduleResolution": "Bundler",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What's the reason for changing the module resolution to Bundler?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL