1963 Commits
Author SHA1 Message Date
Rubén Rincón Blanco ed90053a4c Fixes Executor pane for Python (+ possibly more) (#3354)
* Fixes executor pane for Python

It possibly also fixes it for more languages that behave like it.

* Typerrror has .message
2022-02-11 14:57:02 +01:00
Rubén Rincón Blanco 43bc7afa65 Change codeLens font on setting change (#3347) 2022-02-08 17:31:57 +01:00
Rubén Rincón Blanco 786428d5a4 Move static/toggles.js to TypeScript (#3344)
* Rename toggles.js to ts

* TSfy toggles.ts

* TSfy toggles.ts
2022-02-08 17:30:50 +01:00
RabsRincon 370adddd30 Define themes only once 2022-02-08 08:37:56 +01:00
Rubén Rincón Blanco c60cd70f7e Move static/themes.js to TypeScript (#3332)
* Rename themes.js to themes.ts

* TSfy themes

* Address PR review
2022-02-07 07:22:33 +01:00
Rubén Rincón Blanco 3148a9784d Move history.js to TypeScript (#3337)
* Rename history.js to history.ts

* Only export necessary functions

* Address review comments
2022-02-06 21:26:25 +01:00
Patrick Quist 51047b6ad7 Frontend testing (#3169) 2022-02-04 18:35:04 +01:00
Rubén Rincón Blanco 2978b90ee5 IE11 is no longer supported, no need to shim includes (#3321) 2022-02-04 14:37:57 +01:00
Rubén Rincón Blanco 42c7b2b694 Make eslint work on static ts files (#3304) 2022-02-03 18:04:50 +01:00
Rubén Rincón Blanco 426aa40279 Fix formatOnCompile setting (#3314) 2022-02-02 03:48:50 +01:00
Rubén Rincón Blanco e9214b4491 Remove extra console.log (#3312) 2022-02-02 03:34:28 +01:00
Rubén Rincón Blanco 8a7534fcb6 Fix libs widget selection properly updating (#3313)
The .used flag was not being cleared on version change for the other
versions of the same library
2022-02-02 03:34:17 +01:00
Matt Godbolt fc99556c9b Upgrade to vis-network 2022-01-31 22:06:41 -06:00
Luca Natilla 4af294d613 Option to create a short link with Ctrl+s silently (#3305) 2022-01-31 21:28:56 -06:00
Rubén Rincón Blanco d8e580fe17 Update editor.js 2022-01-31 14:06:15 +01:00
Rubén Rincón Blanco fe7eb18408 Reimplement more options for Ctrl-S (#3300) 2022-01-31 14:03:38 +01:00
Mats Larsen 593a727445 Add setting for automatically formatting on compilation (#3302)
Adds a new checkbox setting for automatically formatting the code upon compilation request. I added a note in the setting text indicating that it only runs for languages that have a formatter set up.
2022-01-31 14:01:14 +01:00
Rubén Rincón BlancoandMats Larsen f4315c561b Move static/settings.js to TypeScript (#3297)
* Rename settings.js to ts

* Move Settings to TS

* Remove underscore from settings

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

* Improve Settings implementation

* Move Settings interfaces to same file

* Update static/settings.ts

Co-authored-by: Mats Larsen <me@supergrecko.com>

Co-authored-by: Mats Larsen <me@supergrecko.com>
2022-01-29 02:00:10 +01:00
Matt Godbolt c1fe085ca2 Revert "Some more Ctrl-S behaviours (#3283)"
This reverts commit be42b2f012.
2022-01-24 21:36:12 -06:00
Rubén Rincón BlancoandMats Larsen be42b2f012 Some more Ctrl-S behaviours (#3283)
* Adds more behaviours for Ctrl-S'ing an editor

It keeps backwards compatibility with the old setting
Fixes #3266

* Fix quotes

The new Node version did not run the commit checks

* Update static/panes/editor.js

Co-authored-by: Mats Larsen <me@supergrecko.com>

Co-authored-by: Mats Larsen <me@supergrecko.com>
2022-01-24 21:16:50 -06:00
Luca Natilla fc23b620b4 Add warning for -flto flag (#3242) 2022-01-24 20:53:36 -06:00
Jonathan Müller ff0cd78600 Improve numeric tool tip to display character value (#3280) 2022-01-23 16:06:43 +01:00
Mats Larsen 0976d65bdd Fix issue where changelog would not show, because it grabbed the entire ESModule (#3268) 2022-01-17 14:04:09 -06:00
RabsRincon fb9c718eed TSfy static/motd 2022-01-04 07:47:13 +01:00
RabsRincon 11717292ef Rename motd.js to ts 2022-01-04 07:47:12 +01:00
Rubén Rincón Blanco 44ea462509 Move GA to ts (#3220)
* Move GA to ts

* Hopefuly fix sentry init error
2021-12-31 13:54:19 +01:00
RabsRincon 9c2528000e Move fontscale to typescript 2021-12-31 11:08:21 +01:00
RabsRincon 70417bee98 Rename fontscale to ts 2021-12-31 09:57:25 +01:00
Mats Larsen da1a3ab7dc Make it possible to share types in /types directory between front and backend (#3211)
* Make it possible to share types in /types directory between front and backend

* Add new tsconfig files to gh-dist-files
2021-12-28 15:53:34 +01:00
Marc Poulhiès 86dd8f7814 Ada: new pane for GNAT Debug Tree (#3190)
Support for the GNAT Tree emitted by `-gnatdt` on stdout.
The pane is also available in the diff tool.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-12-28 15:35:11 +01:00
Matt Godbolt 5109414485 Fix privacy and cookie policy display post-webpack5 (presumably). See #3214 2021-12-24 08:51:35 -06:00
Matt Godbolt 4eccbf8742 Upgrade monaco and monaco-webpack-plugin (#3204) 2021-12-21 16:09:40 -06:00
Mats Larsen 112df32116 Use api.ts file for formatter api requests (#3160) 2021-12-15 19:30:03 +01:00
Matt Godbolt 883223f2f3 Fix up jscookie api 2021-12-14 12:13:08 -06:00
Matt Godbolt eb002af78f Update prettier, reformat json files 2021-12-13 23:12:25 -06:00
Matt Godbolt 8fcae9917e Upgrade tomselect to v2.0.0
Small migration needed: https://tom-select.js.org/docs/migration/
2021-12-13 22:19:30 -06:00
Mats Larsen 0b32c7e916 Automatically enable text search for language dropdown (#3162) 2021-12-12 17:43:19 +01:00
Rubén Rincón Blanco 845b633441 Add single quote for strings in asm mode (#3157)
* Add single quote for strings in asm mode

* Remove unreleated changes

* Change singlequote token
2021-12-12 17:42:52 +01:00
Rubén Rincón Blanco fc19400855 Move static/libs-widget-ext.js to TypeScript (#3077)
* Rename static/libs-widget-ext.js to static/libs-widget-ext.ts

* Initial Typescript copy&paste

* File now compiles its TS

* First TSfy pass

Types need to still be sorted out, but this now compiles and works
:)

* Further work towards porting libs widget to TS

* Expand the scope of the PR and fix some TS issues elsewhere

Still releated to libs though

* Renames

* Address PR review

* Fixes some minor errors and finishes the tests

* Remove unused interface properties
As suggested by partouf in the PR

* Remove unused this
Noticed by Partouf in the PR review

* Remove more unused options interface properties

* Fixes last issues with the ts libs widget

* Remove console.log
2021-12-12 17:42:44 +01:00
Mats Larsen d7c4eecbf7 Refactor and return 404 from AsmDocs APIs (#3143)
Refactors the handler for the AsmDocs API to reduce code duplication.

**Breaking changes proposed**

- API will now return 404. This used to return 200 with "Unknown opcode" which is what led to issue #3117. Following cases has been changed:
  1. archiecture was not found
  2. instruction opcode was not found
- API will now return 406 not acceptable when the accepted content type is not text or json
- There is no longer a `result` field on a 200 request, instead the assembly documentation object is returned.
- There is no longer a `found` field on any request, the HTTP codes indicate whether it was found or not (200 means found)

**New features**

- The frontend will only request the opcode for an instruction set at most once, caching every single outgoing request.
- The "There was an error fetching the documentation for this opcode" has been adjusted to contain what went wrong.

Relevant tests have been added and updated.
2021-12-07 11:43:08 +01:00
Mats Larsen 057c21b8ba Migrate the LLVM IR pane to the TypeScript Pane API (#3037)
Migrates the IR output pane to TypeScript
2021-12-07 11:39:58 +01:00
Marc Poulhiès 24693766d0 rust: HIR dump and small refactor with macro expansion (#3147)
Small refactoring for handling -Zunpretty calls:

- reuse options from main compiler invocation instead of crafting new ones.
- factor out common part.

Now also handles HIR output in a dedicated pane.
Still a lot of copy/pasting from the macro expansion.

fixes #2567

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-12-05 19:04:12 +01:00
RabsRincon ec00a10f49 Clear the compiler output on language change 2021-12-05 16:26:45 +01:00
Nico Lehmann 93a020bdc6 Migrate Cfg pane to typescript (#3110)
* Migrate the Cfg pane to typescript
2021-11-30 14:11:50 +01:00
Ivan Egorov 34c41900dc Fix loading a zip project (#3136)
* Fix loading a project

Chrome DevTools suggest that `.map()` does not exist here. I think that the right one is `.forEach()`.

https://stuk.github.io/jszip/documentation/api_jszip/for_each.html

* Remove `Promise.all()`

`zip.forEach()` does not return a value, hence waiting on it does not make sense.
2021-11-24 22:55:44 +01:00
Patrick Quist cdf295665b More Erlang keywords (#3130) 2021-11-22 00:06:24 +01:00
Patrick Quist 2bc71691ef Erlang highlight and add to amazon (#3129) 2021-11-21 23:53:43 +01:00
Rubén Rincón Blanco a92083a3a4 Adds some useful features for some people (#3081)
Closes #2974 and addresses a request made in Discord
2021-11-21 13:45:01 +01:00
Marc Poulhiès 9a773a75ac Enable diff view to use GNAT (Ada) expanded code (#3119)
This change allows for the selection of the GNAT (Ada) expanded code to
be used in the diff pane.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2021-11-18 07:38:26 +01:00
Marc PoulhièsandRubén Rincón Blanco 6f18695dc0 Refactor GCC dump handling (#3024)
This change allows for only dumping a single pass (the one selected). In order
to populate the list of available dumps, it now queries GCC for the enabled
passes.

It can still be misleading to users as a pass can be enabled but for some reason
does not dump anything. In order to avoid this, the only solution seems to be to
still dump all files and filter the list... This defeats the initial goal and
only adds complexity for the current compilers.

But this makes #2868 easier to implement (see #2985 that was a aborted first
attempt) and if someday another libgccjit-based compiler is added, it could be
easily hooked to this.

It also changes the naming in the drop down menu. For example, instead of :
'009t.omplower' it now uses 'omplower (tree)' (ie.
'<pass-name> (tree|ipa|rtl)').

Fixes #3014

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2021-11-08 18:52:30 +01:00