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

Update upstream #2

Merged
merged 37 commits into from
Sep 21, 2020
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d3e29a2
Format signature and parameter documentation as Markdown
spahnke Sep 2, 2020
f7c5803
Add support for creating a custom webworker subclass
orta Aug 21, 2020
8a79538
Make a useful sample
orta Aug 21, 2020
0d7c406
Tidy up
orta Aug 21, 2020
9b45b1d
Settle on customTSWorkerFactory
orta Aug 21, 2020
381474e
Adds a vfs project
orta Aug 31, 2020
8bbaa32
Tightens the public API
orta Aug 31, 2020
be18981
update deps
alexdima Sep 7, 2020
07bac42
update to typescript@4.0.2
alexdima Sep 7, 2020
168d87e
Add prettier
alexdima Sep 7, 2020
afbf66e
Run prettier
alexdima Sep 7, 2020
b01b579
Use the global `monaco` only in the AMD case (see microsoft/monaco-ed…
alexdima Sep 7, 2020
230c203
Add deprecated diagnostic tag if a symbol is reported as deprecated
spahnke Sep 7, 2020
82c85c7
Add deprecated tag to suggestion if entry is marked as deprecated
spahnke Sep 7, 2020
1f51111
Include tags in documentation string of suggestion items
spahnke Sep 7, 2020
acdc720
Align tag representation in suggestion items and hovers
spahnke Sep 7, 2020
ec653d0
4.0.0
alexdima Sep 7, 2020
9f743ea
small style tweaks
alexdima Sep 8, 2020
5927170
4.0.1
alexdima Sep 8, 2020
ba0ff0d
improve `.npmignore`
alexdima Sep 8, 2020
a273b29
Allows setting lib with shortnames
orta Sep 8, 2020
37341a2
Remove declare modifiers (microsoft/monaco-editor#2121)
alexdima Sep 11, 2020
df25001
4.0.2
alexdima Sep 11, 2020
d91cd6c
Update import TS
orta Sep 11, 2020
c36feed
Use typescript language for hover tooltip header
SpencerSharkey Sep 13, 2020
013d278
update `package-lock.json`
alexdima Sep 16, 2020
8293f1d
Adopt `async`
alexdima Sep 18, 2020
a508d9a
Increase `printWidth`
alexdima Sep 18, 2020
a26bb99
`var` -> `let`
alexdima Sep 18, 2020
a90fae6
Fixes microsoft/monaco-editor#1937: Remove debugger statement
alexdima Sep 18, 2020
0f5ed5b
Fixes microsoft/monaco-editor#1638: Protect against failing `getCodeF…
alexdima Sep 18, 2020
6957b58
Fixes microsoft/monaco-editor#1998: make sure to always increase the …
alexdima Sep 18, 2020
a2f4b78
Adopt latest `monaco-editor-core`, update to TS 4.0.3
alexdima Sep 18, 2020
694e39b
4.1.0
alexdima Sep 18, 2020
d57c6c6
Add missing setWorkerOptions
Sep 21, 2020
0f5f2da
commit generated file
alexdima Sep 21, 2020
a85c903
update upstream and enable regex
Sep 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allows setting lib with shortnames
orta authored and Pierre Guillaume Herveou committed Sep 21, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a273b299a724c7c30b7d3ebea32e759ee9fd7b8f
3 changes: 3 additions & 0 deletions src/tsWorker.ts
Original file line number Diff line number Diff line change
@@ -71,11 +71,14 @@ export class TypeScriptWorker
_getScriptText(fileName: string): string | undefined {
let text: string;
let model = this._getModel(fileName);
const libizedFileName = 'lib.' + fileName + '.d.ts';
if (model) {
// a true editor model
text = model.getValue();
} else if (fileName in libFileMap) {
text = libFileMap[fileName];
} else if (libizedFileName in libFileMap) {
text = libFileMap[libizedFileName];
} else if (fileName in this._extraLibs) {
// extra lib
text = this._extraLibs[fileName].content;