-
Notifications
You must be signed in to change notification settings - Fork 147
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
Feature/vscode 0325 #168
Merged
Merged
Feature/vscode 0325 #168
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ca82bfc
Update to version 0.3.25
dragonstyle 5782b24
poll for log files more frequently
dragonstyle 7a73130
Remove deserialization
dragonstyle e2ef7a7
Add positron viewer support
dragonstyle 6815a9b
Update changelog
dragonstyle ec7e04e
Avoid scrollbars on windows when showing progress
dragonstyle 70c01e3
Improve wrapping behavarior of scores
dragonstyle 24eac16
Revert "Remove deserialization"
dragonstyle 1ac6721
Merge branch 'main' into feature/vscode-0325
jjallaire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
"name": "Run Extension", | ||
"type": "extensionHost", | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
|
||
|
||
declare module 'positron' { | ||
|
||
import * as vscode from 'vscode'; | ||
|
||
export interface PositronApi { | ||
version: string; | ||
runtime: PositronRuntime; | ||
languages: PositronLanguages; | ||
window: PositronWindow; | ||
} | ||
|
||
export interface PositronRuntime { | ||
executeCode( | ||
languageId: string, | ||
code: string, | ||
focus: boolean | ||
): Thenable<boolean>; | ||
} | ||
|
||
export interface PositronLanguages { | ||
registerStatementRangeProvider( | ||
selector: vscode.DocumentSelector, | ||
provider: StatementRangeProvider | ||
): vscode.Disposable; | ||
} | ||
|
||
export interface StatementRangeProvider { | ||
provideStatementRange( | ||
document: vscode.TextDocument, | ||
position: vscode.Position, | ||
token: vscode.CancellationToken | ||
): vscode.ProviderResult<StatementRange>; | ||
} | ||
|
||
export interface StatementRange { | ||
readonly range: vscode.Range; | ||
readonly code?: string; | ||
} | ||
|
||
export interface PositronWindow { | ||
createPreviewPanel( | ||
viewType: string, | ||
title: string, | ||
preserveFocus?: boolean, | ||
options?: PreviewOptions | ||
): PreviewPanel; | ||
} | ||
|
||
export interface PreviewOptions { | ||
readonly enableScripts?: boolean; | ||
readonly enableForms?: boolean; | ||
readonly localResourceRoots?: readonly vscode.Uri[]; | ||
readonly portMapping?: readonly vscode.WebviewPortMapping[]; | ||
} | ||
|
||
export interface PreviewPanel { | ||
readonly viewType: string; | ||
title: string; | ||
readonly webview: vscode.Webview; | ||
readonly active: boolean; | ||
readonly visible: boolean; | ||
readonly viewColumn: vscode.ViewColumn; | ||
readonly onDidChangeViewState: vscode.Event<PreviewPanelOnDidChangeViewStateEvent>; | ||
readonly onDidDispose: vscode.Event<void>; | ||
reveal(preserveFocus?: boolean): void; | ||
dispose(): any; | ||
} | ||
|
||
export interface PreviewPanelOnDidChangeViewStateEvent { | ||
readonly previewPanel: PreviewPanel; | ||
} | ||
} | ||
|
||
|
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens now to Inspect View in VS Code when you do a full reload? Does it restore itself (seems like it might be able to, even if it just goes back to the default view). I'm concerned that by removing this code we end up with a dead Inspect View panel, but LMK what you observe here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I observe that it doesn't orphan a window, but I agree with you that this seems sketchy. I am reverting that change.