Commit Graph
13 Commits
Author SHA1 Message Date
Ofek c1985d64a1 Tsification binge #7 (#6974) 2024-10-25 12:19:04 +03:00
Ofek caca3ea6c7 Eliminate all google-analytics dead code (#6954)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2024-10-10 21:21:43 +03:00
Ofek 930ee1d4fc Fix and investigate weird exception in stack-usage-view (#6501) 2024-05-19 22:31:22 +03:00
Ofek 42533d8dbb Stop duplicating hasXXoutput + XXoutput (#6476)
When you need to check if `XXoutput` exists, check it directly.
+some TSification in CompilationResult
2024-05-14 20:11:09 +03:00
Ofek 2687f6a309 Make stack-usage display inline, same as opt-view (#6469)
Following the intention declaration
[here](https://github.com/compiler-explorer/compiler-explorer/pull/6393#issuecomment-2076787747):


![image](https://github.com/compiler-explorer/compiler-explorer/assets/73080/4c239691-07ac-4ab3-9745-43cf67dd5679)
2024-05-14 10:56:24 +03:00
Ofek 8559ea5937 Fix #6468: Don't trust hasStackUsageOutput/hasOptOutput (#6471) 2024-05-13 00:24:56 +03:00
Ofek 9d8c503b3d Improve initialization of decorations in MonacoPane (#6426)
Make MonacoPane calls `createDecorationsCollection` in a single place
instead of forcing many subclasses to remember to call
`initDecorations`. Some subclasses never use DecorationsCollection and
call init for no reason now, but it still seems healthier - this avoids
the possibility of a MonacoPane subclass trying to use an uninitialized
decoration collection.

Also remove the depracated `deltaDecorations` from stack-usage-view.
2024-05-05 10:17:57 +03:00
Ofek d2ee6e18a5 Replace the deprecated monaco.editor.ICodeEditor.deltaDecorations (#6078)
Replace the deprecated `monaco.editor.ICodeEditor.deltaDecorations` with `monaco.editor.IEditorDecorationsCollection`

Seems that today the official way of colouring monaco editors is having
them `createDecorationsCollection`, keep the resulting
decorations-collection and call `set` on it with new decorations
whenever needed.
There are many possible design choices on where to put it, I opted to
put `editorDecorations` in `MonacoPane`, and have
`MonacoPane.createEditor` initialize it only in panes where decorations
are actually used.
Also some signatures changed which had a broad (but non-interesting)
impact.
2024-02-04 18:12:53 +02:00
Ofek Shilon 266706f4c4 Revert "Remove usage of the depracated monaco.IEditor deltaDecorations (#6049)"
This reverts commit 9705843bb7.
2024-01-30 14:25:59 +02:00
Ofek 9705843bb7 Remove usage of the depracated monaco.IEditor deltaDecorations (#6049)
…in favor of createDecorationsCollection.
Minor drive-by cleanups.
2024-01-27 17:02:21 +02:00
Jeremy Rifkin 72e6b34d55 Improve pane typing (#5191)
Resolves #4365
2023-06-21 21:40:35 -04:00
Jeremy c9801e88bf Hot fixes for the print view as stuff gets merged 2023-06-19 22:21:15 -04:00
Guo Ci 7651874a98 add Stack Usage Viewer (#5160)
For #4834
2023-06-19 20:26:15 -05:00