Jason Ramsay
5a19e30c27
In shims.ts resolveModuleName should only return resolved modules found in ts files (.ts, .d.ts, .tsx)
2017-05-10 11:38:10 -07:00
Jason Ramsay
257a4dc19e
Changes from CR feedback
2017-04-27 11:41:33 -07:00
Jason Ramsay
1f9bdef0fb
RulesProvider performance improvements
2017-04-24 17:32:02 -07:00
Jason Ramsay
d20cebf998
Merge branch 'master' into CancellationChecksForLowPriorityTasks
2017-03-27 14:49:41 -07:00
Jason Ramsay
21ef9078ad
Wrapping LSHost's cancellationtoken with a throttle
2017-02-24 17:14:04 -08:00
Jason Ramsay
e62108cf9b
Removing throttling until tests prove it is required
2017-02-22 17:47:18 -08:00
Jason Ramsay
497d8d3a58
Updates from CR comments
2017-02-22 15:33:57 -08:00
Jason Ramsay
a37053f780
Addressing CR comments
...
- Adding a throttle
- Refactor
- Navbar reset onCancel
2017-02-22 14:23:06 -08:00
Jason Ramsay
3f198e6751
Adding cancellation token checks for lower priority tasks
2017-02-21 13:30:55 -08:00
Jason Ramsay
8d1c9d5f9a
Addressing CR comments
2017-02-15 18:05:20 -08:00
Jason Ramsay
7e58afadc4
Bower_Components fix
2017-02-15 15:18:46 -08:00
Jason Ramsay
3480fcc69a
Always set allowNonTsExtensions for allowJs
2017-02-10 11:13:12 -08:00
Jason Ramsay
97641e7c3c
NavigateTo is not working correctly for declarations in IIFEs
...
Fix: visit the node's children even when the function declaration name is undefined
2016-12-13 16:47:32 -08:00
Jason Ramsay
c40508cf1c
getSupportedExtensions optimization to reduce allocations
2016-12-09 16:25:09 -08:00
Jason Ramsay
5829ca82d0
use localUse local updatedFileNames - this way we'll know that set of names is definitely cleared
2016-12-09 14:44:08 -08:00
Jason Ramsay
30bd84174a
Merge branch 'master' into tsconfigMixedContentSupport
2016-12-09 14:24:32 -08:00
Jason Ramsay
05160cae8e
Rename fileExtensionMap: fileExtensionMapItem[] to extraFileExtensions: FileExtensionInfo[]
2016-12-09 13:36:43 -08:00
Jason Ramsay
5f46e488b7
Mark containing project as dirty when file is closed
...
(Note: adding this until PR #12789 is merged in so that unit tests pass)
2016-12-09 11:12:00 -08:00
Jason Ramsay
4cb5a36cb4
Merge branch 'master' into tsconfigMixedContentSupport
2016-12-09 10:58:33 -08:00
Jason Ramsay
d52894302a
Changes due to CR comments
2016-12-08 17:56:08 -08:00
Jason Ramsay
7a11453e35
Fix merge issues
2016-12-07 15:45:41 -08:00
Jason Ramsay
1c3689edef
Merge branch 'master' into tsconfigMixedContentSupportRedux
2016-12-07 15:33:42 -08:00
Jason Ramsay
64dad30ca0
Reduced version from CR comments
2016-12-07 15:31:46 -08:00
Jason Ramsay
2b89d919a0
Addressing CR feedback
2016-11-22 17:08:43 -08:00
Jason Ramsay
70e130b08c
Maintain support for deprecated API typingOptions.enableAutoDiscovery
2016-11-21 18:17:27 -08:00
Jason Ramsay
5a9451ae23
Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable
2016-11-18 18:14:32 -08:00
Jason Ramsay
12971d2c65
Merge branch 'tsconfigMixedContentSupportRedux' into tsconfigMixedContentSupport
2016-11-18 16:18:19 -08:00
Jason Ramsay
464bc0e9e0
Merge branch 'master' into tsconfigMixedContentSupportRedux
2016-11-18 16:15:15 -08:00
Jason Ramsay
891173c9ed
Merge branch 'master' into tsconfigMixedContentSupport
2016-11-18 16:07:50 -08:00
Jason Ramsay
7dd30dbfd4
tsconfig.json mixed content support
2016-11-18 15:51:28 -08:00
Jason Ramsay
da7f824a2a
tsconfig.json mixed content support
2016-11-14 13:31:22 -08:00
Jason Ramsay
05c2c9b67b
Updating test due to CR changes. The order of the diagnostic messages has changed due to concatenation changes
2016-10-27 19:20:14 -07:00
Jason Ramsay
43bd2d8747
Changes from CR feedback
2016-10-27 16:38:59 -07:00
Jason Ramsay
1b16c0b94b
For JavaScript files, we report semantic errors for using TypeScript-only constructs
from within a JavaScript file as syntactic errors.
2016-10-25 18:09:04 -07:00
Jason Ramsay
dba03377b8
Adding JSXExpression check for isGlobalCompletion and associated tests
2016-10-18 14:04:21 -07:00
Jason Ramsay
deb3449077
Add getSyntacticDiagnostics unit test
2016-10-17 17:47:10 -07:00
Jason Ramsay
b71e8a2167
Add isSemantic check to getDiagnosticsWorker
2016-10-17 13:11:13 -07:00
Jason Ramsay
a69fc67986
Restrict IsGlobalCompletion to:
...
- SourceFile
- Template Expression
- Statements
2016-10-14 16:04:51 -07:00
Jason Ramsay
62fddba88e
Changes from CR feedback
2016-10-04 12:48:44 -07:00
Jason Ramsay
d186c83119
Add isGlobalCompletion to CompletionInfo for snippet injection
2016-10-03 17:45:11 -07:00
Jason Ramsay
b2199d31fc
Merge branch 'master' of https://github.com/Microsoft/TypeScript into JSCompletionCommitOnEnterFix
2016-09-27 13:39:08 -07:00
Jason Ramsay
0a83d797dd
Issue: Commit on enter isn't working correctly for JS completions in VS
...
Fix: revert the change to always return true for isNewIdentifierLocation for JavaScript files.
With recent Roslyn completion list changes and the new VS default statement completion settings to "Only use Tab or Enter to commit" this change is no longer required.
There is no longer a completion on space issue for JavaScript in VS and the previous fix is stopping completion on enter from working correctly.
2016-09-27 13:22:48 -07:00
Jason Ramsay
609e56ed8e
- Reorganize nodeTypingsInstaller and typingsInstaller for testing purposes
...
- Add throttle tests
- Add full npm path
2016-09-19 22:27:11 -07:00
Jason Ramsay
4b9e554494
Add throttle limit to typings installer requests
2016-09-16 18:36:13 -07:00
Jason Ramsay
7d0fc648d8
Adding typingsInstaller unit tests
2016-09-02 15:37:38 -07:00
Jason Ramsay
798232c975
Fixing unit tests, lint errors & addressing CR feedback
2016-09-01 18:28:37 -07:00
Jason Ramsay
511b3cd69b
Fix existing TypingsInstaller tests
2016-09-01 14:12:31 -07:00
Jason Ramsay
4f7a5185f8
switch to using npm ls -json instead npm install -json
2016-09-01 12:30:32 -07:00
Jason Ramsay
3a993c89f3
update runInstall
2016-08-31 21:14:24 -07:00
Jason Ramsay
48736dea20
onSourceFileChanged return immediately when info is undefined
2016-08-30 16:02:01 -07:00
Jason Ramsay
d15381682b
- invalidate typings fix
...
- update gc timer
2016-08-30 15:51:43 -07:00
Jason Ramsay
ba50c6eb25
Merge branch 'tsserverVS-WIP' into tsserverVS-Types2.0
2016-08-30 13:43:33 -07:00
Jason Ramsay
24ef426fbb
Install packages separately
2016-08-30 13:41:24 -07:00
Jason Ramsay
199e533059
- Command line should use spaces between types instead of comma
...
- if entry.typings is empty use entry.typings for default typings to install
2016-08-29 19:01:55 -07:00
Jason Ramsay
456227bbee
Move invalidate typings cache to UpdateGraphWorker
2016-08-29 16:43:34 -07:00
Jason Ramsay
6ea624a2fe
Merge branch 'tsserverVS-WIP' into tsserverVS-Types2.0
2016-08-29 16:23:10 -07:00
Jason Ramsay
a2f92aa583
invalidate cached typings on add or remove file
2016-08-29 15:44:33 -07:00
Jason Ramsay
7132fe5112
Merge branch 'tsserverVS-WIP' into tsserverVS-Types2.0
...
# Conflicts:
# src/server/typingsCache.ts
2016-08-26 16:41:50 -07:00
Jason Ramsay
7d3f22fc66
Changes from CR feedback
2016-08-26 16:37:31 -07:00
Jason Ramsay
1f9f20f043
Swap out TSD for Types 2.0
2016-08-25 16:25:34 -07:00
Jason Ramsay
5e37a310d7
types 2.0 WIP
2016-08-23 09:50:44 -07:00
Jason Ramsay
44476f1984
Update due to CR suggestion
2016-08-17 13:30:03 -07:00
Jason Ramsay
a66b38af56
Set isNewIdentifierLocation to true for JavaScript files
2016-08-16 13:59:13 -07:00
Jason Ramsay
8c503207be
Add fourslash tests & address CR comments
2016-06-24 13:16:58 -07:00
Jason Ramsay
369253bbc4
Fix case when a document contains multiple script blocks with different base indentations.
...
Use the base indent size if it is greater that the indentation of the inherited predecessor
2016-06-21 11:46:49 -07:00
Jason Ramsay
218a5ba0bb
Adding base indentation for script block formatting and smart indent
2016-06-17 13:02:15 -07: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
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
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
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
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
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
71bfefccb9
Switch let -> const from lint validation
2016-02-22 19:33:45 -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
Jason Ramsay
2da73b3340
Change to getScriptKindFromFileName to avoid unnecessary array allocation in split
2016-02-19 14:20:32 -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
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
Jason Ramsay
d1fa571113
replacing let with const
2015-08-20 15:17:04 -07:00
Jason Ramsay
e6c4019671
Updating the internal toolsVersion from 1.5 -> 1.6 in shims.ts
2015-08-20 14:48:03 -07:00
Jason Ramsay
dea66a66dc
Fix comment spacing for readDirectory in shims.ts
2015-07-15 14:19:54 -07:00
Jason Ramsay
785804edd8
Merge branch 'tsConfigExcludeLSSupport' of https://github.com/Microsoft/TypeScript into tsConfigExcludeLSSupport
2015-07-15 14:17:44 -07:00
Jason Ramsay
52423f0e6e
CoreServicesShimHost and CoreServicesShimHostAdapter changes to support TSConfig exclude from the language service
2015-07-15 14:07:48 -07:00
Jason Ramsay
6afb15c19e
CoreServicesShimHost and CoreServicesShimHostAdapter changes to support TSConfig exclude from the language service
2015-06-17 21:22:16 -07:00
Jason Ramsay
a16a95536b
Wrap getDefaultLibFileName API changes in a try/catch until TypeScript 1.5 has shipped.
2015-02-24 10:08:37 -08:00
Jason Ramsay
975f10c6a1
Adding getCanonicalFileName to ensure case-sensitive systems do not have issues
2015-02-17 14:44:45 -08:00
Jason Ramsay
93ca5ae970
Merge branch 'master' into isDefaultLibFile
2015-02-13 12:41:18 -08:00
Jason Ramsay
a51ce92500
switch to using host.getDefaultLibFileName(options)
2015-02-13 11:56:39 -08:00
Jason Ramsay
bf7bb517e0
Replace endsWith() with isDefaultLib()
...
There are a couple of issues with using the current endsWith() function to determine if we should allow a rename for default lib files:
1. XXXX-lib.d.ts would not allow renames even though it should as the preceding characters are not being verified for directory separators
2. There is the potential for false matches as there is currently no check to verify indexOf was successful (index >= 0)
2015-02-09 12:56:54 -08:00
Jason Ramsay
987dab9c9e
addressing CR comments
2015-02-05 16:05:54 -08:00