Commit Graph
123 Commits
Author SHA1 Message Date
Rubén d193739ecc Bring every file up-to-format-date 2017-10-02 22:01:38 +02:00
Rubén c4d6f1ab39 Fix the bugs caused by binding update
It totally slipped by. Sorry!
2017-09-25 13:58:53 +02:00
Rubén 1c3270b129 Remove almost every use of self in favor of _.bind()
Tested every change. I'd be suprised if it does not work somewhere

Turns out that _ is not defined at Hub creation. That is the only
	place where self remains. If a workaround is found, I'll
	be happy to implement it.

Once @jaredwy brings us to TS, this will have been for nothing,
	but ey, no biggie.
2017-09-19 08:22:36 +02:00
Rubén 060a4aa8b2 Fix a bug with asm highlighting of linked code
Also added a indication of which compiler emitted what widget
2017-09-16 22:07:48 +02:00
Matt Godbolt 476fde3c4c Identify lines referring to included files.
Now the API returns `source: {line: num, file: x}` where x
is null for the user-supplied file and a path otherwise.

Hopefully fixes #353, and #418 and #417 - previosuly we misidentified
external lines as being for this file, so the STL includes (for example)
would be misinterpreted as being local. As the STL includes are huge,
we'd try and colourise line 600, or similar.

Tests updated accordingly.
2017-07-30 08:49:24 -05:00
Matt Godbolt 9c0151997d Improvements to embedded views 2017-07-21 08:34:50 -05:00
Matt Godbolt df22d86a02 Make ctrl-C and ctrl-X work on whole lines; enable autoindent 2017-07-12 13:45:02 -05:00
Rubén 87f52939d1 Try to make minimap smaller 2017-07-12 04:53:21 +02:00
Rubén 11ff7a77a4 Add resize hub event to compensate for loss of onThemeChange
Technically we don't need it as much as it's used now, but better
be safe than sorry
2017-07-04 21:33:28 +02:00
Rubén 5ba8bb7495 Make minimap display togglable
Minor problem. Opt-view does not get the onSettingsChange events

Will fix once I know the cause
2017-07-04 21:20:54 +02:00
Rubén 22eed3795e Fix themes for Monaco 0.9.0
Undocumented changes for the win!
2017-07-04 21:16:32 +02:00
Rubén 4c15dd1bc7 Make opt-view use cppp 2017-07-04 21:00:53 +02:00
Rubén f84d14a35b Fix invalid keyword highlighting by defining new cppp language.
Closes #360
2017-07-04 20:26:11 +02:00
Rubén d23dda1021 Merge pull request #467 from mattgodbolt/conformance
Conformance viewer. Few things remain to be done, but that's not vital for the project
2017-06-21 07:12:55 +02:00
Matt Godbolt db8bf4e520 Early support for swift. test with make EXTRA_ARGS="--language Swift"
Huge thanks to @adamnemecek for his help: this is mostly a
merge of his branch.
2017-06-19 19:40:46 -05:00
Rubén 5aaa2014a4 Add Conformance viewer
It needs some improvements here and there, plus a good dose of
thinking about the hard-limits actually present, like the max of
6 compilers per view, and 1 view per editor. Maybe we can afford
more compilers per view?
(I think that limiting it to 1 view per editor is a good call tho)

A necessary point before merging would be to fix the fact that
when sharing by URL, the contents of the view are not saved.

Releated issues: #461
2017-06-16 18:23:11 +02:00
Rubén 3f97867af6 Stop storing the unexpanded source in the compiler
Minor improvements
2017-06-16 00:04:14 +02:00
Rubén 3f682f8a89 Implement Haskell as a Monaco Language
Cleaned up from https://github.com/byteally/monaco-haskell/
It is currently not working (The author has been contacted)
2017-06-11 21:10:59 +02:00
Joshua Sheard 933157308e Add highlighting for ISPC keywords 2017-06-05 01:01:10 +01:00
Rubén 2e76244c31 Add ability to disable Monaco's context menu
The custom context menu is enabled by default.

Thanks to @matt on Slack for the suggestion
2017-05-29 14:10:02 +02:00
Rubén Rincón 54dad1f010 Checkbox for quick suggestins. Disable dby default 2017-05-02 06:56:20 +02:00
Rubén Rincón 7f8d15c80b Merge branch 'master' of github.com:mattgodbolt/compiler-explorer 2017-04-28 18:32:51 +02:00
Matt Godbolt 97db811172 Merge branch 'master' into themes 2017-04-28 06:58:45 -05:00
Rubén Rincón 178d3b4d2f Avoid error when source is not defined 2017-04-28 03:38:27 +02:00
Rubén Rincón c4f8d3590a Fixed error for D files 2017-04-28 03:20:56 +02:00
Rubén Rincón 189e442e28 Bye! darkly. Almost finished themes. Opt viewer now behaves to the themes overlords 2017-04-28 02:39:32 +02:00
Matt Godbolt 419e677eec Merge branch 'master' into themes 2017-04-26 18:09:27 -05:00
Rubén Rincón 4ec5ae5414 Too many semicolons are a bad thing too 2017-04-26 02:35:34 +02:00
Rubén Rincón a28545ebb4 Removed features that are not ready yet. Oops! 2017-04-26 02:34:21 +02:00
Rubén Rincón 29adf57540 Highlight is now removed after leaving the corresponding editor for 5 seconds. 2017-04-26 02:29:47 +02:00
Rubén Rincón 9d0774f79c Merge branch 'master' of github.com:mattgodbolt/compiler-explorer into themes 2017-04-25 01:17:28 +02:00
Rubén Rincón a1b98b7dfe We embolden the linked text a bit. Maybe too distracting? 2017-04-25 01:15:45 +02:00
Rubén Rincón 20fc836d38 Merge branch 'master' of github.com:mattgodbolt/compiler-explorer into themes 2017-04-24 16:49:49 +02:00
Rubén Rincón 0080c27f52 Allow to save current text of the editor as a file. Load now only allows files with certain extensions 2017-04-24 16:22:50 +02:00
Rubén Rincón eb1ecd2e46 Adds a shortcut to toggle colourisation on editor and compiler. Ctrl + Shift + F1. Closes #388 . Thanks @Genfe for the suggestion 2017-04-19 08:51:55 +02:00
Carlos van Rooijen aa17326d1b made fira mono the new default font for code 2017-04-18 19:15:27 +02:00
Rubén 589934c88d Merge branch 'master' into themes 2017-04-12 23:40:38 +02:00
Rubén Rincón 1f1d0cdc87 Adds a global setting for width size. Closes #381 for now, until more changes are suggested 2017-04-12 21:04:48 +02:00
Rubén Rincón 33edf1dff5 Compiler output now obeys theme's laws 2017-04-11 01:16:36 +02:00
Rubén Rincón ce634f4d32 Editor widgets are not fixedOverflow too 2017-04-10 22:45:03 +02:00
Rubén Rincón 07909ee125 Theme on initialization is not needed anymore 2017-04-10 21:47:03 +02:00
Rubén Rincón 60e9d9290b Watching last @lefticus cppwekly made me realize we need a way to scroll to the linked code 2017-04-10 21:22:59 +02:00
Rubén Rincón 93541f82b3 New widgets correctly get notified of the current theme. More works towards h-c 2017-04-10 12:13:00 +02:00
Rubén Rincón 6b81f6940d Initial implementation of themes. Diff view now has font selector to the left 2017-04-06 21:40:12 +02:00
Matt Godbolt f9ef836096 Disable quick suggestions. They're pretty annoying. Ctrl-space still brings up the completions. See #359 2017-04-01 14:20:13 -05:00
Rubén Rincón 21170a2aa8 Renamed few paramateters (Now they are named positively). Documentation! 2017-03-30 18:58:56 +02:00
Rubén Rincón 47afedc2df Improvements based on Matt's notes 2017-03-30 15:54:21 +02:00
Rubén Rincón a7b0c71832 Renamed params. Hopefuly logic is ok. Compiler now uses params 2017-03-29 13:30:29 +02:00
Rubén Rincón 07f7a4643f Learning to spell 2017-03-28 20:24:13 +02:00
Rubén Rincón fa332141e5 Alert now stacks and is removed if one of same group is issued 2017-03-28 20:17:09 +02:00