Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust twoslash inlay provider to use the new Monaco API for that #2273

Closed
wants to merge 1 commit into from

Conversation

Andarist
Copy link
Contributor

fixes #2247

this PR is related to this one since it also updated Monaco: #2267

⚠️ This PR is meant to be synced with TS 4.6 release.

cc @orta

@@ -31,12 +39,15 @@ export const createTwoslashInlayProvider = (sandbox: Sandbox) => {
// @ts-ignore
kind: 0,
position: new sandbox.monaco.Position(endPos.lineNumber, endPos.column + 1),
text,
whitespaceBefore: true,
label: text,
Copy link
Contributor Author

@Andarist Andarist Feb 16, 2022

Choose a reason for hiding this comment

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

this commit has changed text to label and also changed the return type of provideInlayHints:
microsoft/vscode@3677cc4

text,
whitespaceBefore: true,
label: text,
paddingLeft: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this commit has changed whitespaceBefore to paddingLeft:
microsoft/vscode@8ef8933

@orta orta mentioned this pull request Mar 1, 2022
@jakebailey
Copy link
Member

Merged as part of #2288.

@jakebailey jakebailey closed this May 18, 2023
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.

[Playground] Twoslash highlights don't work with TS 4.6
3 participants