2132 Commits

Author SHA1 Message Date
Vladimir Matveev
112e4b1e80 Addressed PR feedback 2016-03-17 14:40:05 -07:00
Vladimir Matveev
6cfa64daa3 show completion in destructured parameter if containing function was contextually typed 2016-03-17 11:37:52 -07:00
Bill Ticehurst
1bc9157b76 Port NavBar for JS improvements 2016-03-15 09:21:06 -07:00
Vladimir Matveev
2b2092b1a2 find module augmentations in preprocessor 2016-03-14 13:30:38 -07:00
Zhengbo Li
e151d49e7f Merge pull request #7307 from zhengbli/fixFormatOnEnter
Avoid removing indentation on a new line as trailing white spaces
2016-03-10 09:18:56 -08:00
Jason Ramsay
ae2b7c2aa2 Removing cachePath from discoverTypings and DiscoverTypingsInfo.
With the move to using the packageNameToLocation map it is no longer required.
2016-03-03 15:17:52 -08:00
Basarat Ali Syed
1bebc711b0 fix(build) TypingResolutionHost interface is used by exported function discoverTypings 2016-03-03 10:32:07 +11:00
jramsay
de47fcc113 Merge pull request #7179 from Microsoft/jsTypingForAcquireDts
Salsa: JS support for discovering and acquiring d.ts files
2016-03-02 11:10:12 -08:00
Jason Ramsay
e8772bc0a2 - Adding new lines after { for single-line if statements
- Renaming DiscoverTypingsSettings to DiscoverTypingsInfo to match host
2016-03-02 10:11:13 -08:00
Jason Ramsay
4bbdf2a0bb - Removing filesToWatch from getTypingNamesFromNodeModuleFolder.
These modules are already installed and are not expected to change
2016-03-01 19:06:31 -08:00
Jason Ramsay
6aad783db8 - Adding DiscoverTypingsSettings
- Remove all references to Tsd.
Instead pass a map of package names to cached typing locations
2016-03-01 18:52:11 -08:00
zhengbli
1224013f77 Update the format span end position for formatOnEnter 2016-03-01 16:45:56 -08:00
Ryan Cavanaugh
6cdbc6cad0 Show aliases (e.g. imports) in JSX tag completion positions
Fixes #4577
2016-03-01 13:47:29 -08:00
Jason Ramsay
b3ceea3b3d - replacing TryParseJson with existing readConfig
- push error for invalid enableAutoDiscovery option
- adding interfaces for jsons
- removing updateNotFoundTypings
- node_modules normalize file names before using
- adding safeListPath to discoverTypings
2016-03-01 11:50:27 -08:00
zhengbli
c155de778a Avoid removing indentation on a new line as trailing white spaces 2016-02-29 17:11:01 -08:00
Jason Ramsay
0346a9889c - Removing ts. from jsTyping.js
- Adding ".json" file extension filter when retrieving json files from host and removoing filter
- simplify isTypingEnabled check
2016-02-29 08:14:00 -08:00
Jason Ramsay
f76ef47174 Adding optionalDependencies and peerDependencies to the list typings to merge in if present. 2016-02-26 15:33:34 -08:00
zhengbli
5981d8e60c CR feedback 2016-02-26 14:27:37 -08:00
zhengbli
39a51d3731 Unify the use of "filter", "map" and "Object.keys" functions 2016-02-26 14:15:07 -08:00
Jason Ramsay
70ca4bd8a8 - renaming resolveTypeDefinitions to discoverTypings for consistency with jsTypings
- simplifying typingOptions parsing after associated managed host changes
2016-02-25 12:32:43 -08:00
Josh Soref
bb85817d7d spelling fixes for src
Fixes:
* actual
* algorithm
* analyze
* applies
* collapse
* contrast
* definition
* diagnostic
* different
* displayed
* display
* documentation
* finite
* function
* highlight
* initialize
* intentional
* interface
* invariants
* items
* keystroke
* language
* literal
* original
* output
* position
* receive
* recorder
* response
* sequence
* simplicity
* statement

Changing a \ to a /
2016-02-25 20:08:44 +00:00
Jason Ramsay
18883f9d32 Using removeComments from commandLineParser. This is more robust as it removes both single and multiline comments 2016-02-23 13:30:24 -08:00
Jason Ramsay
20511f8be1 Adding devDependencies to the list of typings to merge 2016-02-23 10:31:56 -08:00
Jason Ramsay
317f5e2f56 Merge branch 'master' into jsTypingForAcquireDts 2016-02-22 19:01:09 -08:00
Jason Ramsay
5b06edbc54 Addressing CR comments
- Adding check to ensure TypingOptions 'include' and 'exclude' arrays are composed of strings
- Allow leading whitespace when removing comments from json
2016-02-22 19:00:06 -08:00
Jason Ramsay
0aaedc5df4 Fixing lint issues caught by Travis CI build
(Rules appear to be more strict - this was not caught on a local lint run)
2016-02-21 21:57:37 -08:00
Jason Ramsay
284d9f527c Salsa: JS support for discovering and acquiring d.ts files
(Mostly isolating VS host changes from PR#6448)
2016-02-21 21:35:02 -08:00
Mohamed Hegazy
9d6564239f Merge pull request #7164 from Microsoft/wordCleanup
removing some culturally sensitive words
2016-02-20 12:19:49 -08:00
jramsay
6b05ad7627 Merge pull request #7107 from Microsoft/ScriptBlockSupport
Salsa: adding ScriptKind to ensure script blocks are processed as JS.
2016-02-19 14:40:18 -08:00
Jason Ramsay
11acf3a4a8 Applying getScriptKindFRomFileName to HostFileInformation before we set the ScriptKind.
If the host returns ScriptKind 'Unknown' or 'undefined' we attempt to get the correct ScriptKind based on the file name.
If this cannot be determined we return the default ScriptKind 'TS'
2016-02-18 16:33:01 -08:00
Mohamed Hegazy
22142d2ccb removing some culturally senstive words 2016-02-18 16:25:16 -08:00
Kagami Sascha Rosylight
33970b8045 format jsx 2016-02-19 09:16:52 +09:00
Jason Ramsay
3e124ad35d parser and services changes due to CR comments
- Adding assert to ensure script kinds are not modified for registered docs
- setting script kind in parseSourceFile and consuming it initialize state and getLanguageVariant
2016-02-18 12:19:34 -08:00
Jason Ramsay
81df1cbc0b Addressing CR comments
- Adding ScriptKind to SourceFile
- Only update ScriptKind on creation, on update use the SourceFile's scriptKind
- If scriptKind is unknown, default to ScriptKind.Ts
- Replacing try-catch with in this.shimHost
2016-02-17 19:07:19 -08:00
Jason Ramsay
26e14dd76f Removing trailing whitespace from services.ts 2016-02-17 07:42:27 -08:00
Jason Ramsay
2aa8f05e64 Fix to test harness and addressing CR comments 2016-02-16 22:44:43 -08:00
Jason Ramsay
a71fa457bd Salsa: adding ScriptKind to ensure script blocks (.html, .aspx, .ascx, etc) are processed as JS 2016-02-16 17:37:24 -08:00
Daniel Rosenwasser
c5d5d13e61 Remove the 'module' option from 'tsconfig.json' files. 2016-02-12 17:28:10 -08:00
Bill Ticehurst
6a8ccd0b56 Dont default to CommonJS modules for ES6 target
(cherry picked from commit 4a67dc5e0823ca934eda4cd62b99bf4e7270a1dd)
2016-02-11 14:08:26 -08:00
Bill Ticehurst
3cf96529e7 Changed node_modules and module defaults
(cherry picked from commit b791fd89cdce0fd1eee7c9d1ee9c6767d2ca4ebe)
2016-02-11 14:05:24 -08:00
Josh Soref
95396cc2bc spelling fixes for services.ts
* aliases
* analyze
* asterisks
* constructor
* diagnostic
* existing
* referring
* revisiting
* search
* source
* visible
2016-02-05 21:03:27 +00:00
Tingan Ho
43d2054eac Fixes typo 2016-02-07 20:10:59 +08:00
Tingan Ho
3d8a472527 Updated comment 2016-02-07 20:09:14 +08:00
Tingan Ho
6b303271f0 Go to defininition should not go to named import 2016-02-07 19:54:38 +08:00
Ryan Cavanaugh
018429bd6e ❤️ linter 2016-02-02 13:39:02 -08:00
Ryan Cavanaugh
2c25bea0aa Always show file tokens in JS completion lists
Fixes #6654
2016-02-02 13:10:30 -08:00
Vladimir Matveev
a17dbd5c2b Merge pull request #6798 from Microsoft/dottedNamesInJsx
properly classify dotted tag names in jsx
2016-02-01 16:49:59 -08:00
Vladimir Matveev
e6c6d3090a properly classify dotted tag names in jsx 2016-02-01 13:35:57 -08:00
Vladimir Matveev
b0b0712c73 suppress validation of output paths in transpile scenarios 2016-02-01 10:36:47 -08:00
Ryan Cavanaugh
202c1e6e4b Merge pull request #6707 from RyanCavanaugh/fix6693
Don't show the currently-completing thing at the cursor in JS files
2016-02-01 10:03:22 -08:00