Commit Graph

124 Commits

Author SHA1 Message Date
Cyrus Najmabadi cbeeb519b1 Add a new findReferences API that buckets results with the definition they matched against. 2015-03-20 14:31:36 -07:00
Paul van Brenk 825c301ace We only need the 2 most significant digits. 2015-03-17 16:31:18 -07:00
Paul van Brenk bf16ab7535 fix typo 2015-03-17 15:52:37 -07:00
Paul van Brenk 667bc03db2 Add toolsversion to shim so we can read it from VS. 2015-03-17 15:26:55 -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
Cyrus Najmabadi 2b64e50489 Add support for limiting the number of NavigateTo results that you get back. 2015-02-19 15:13:03 -08:00
jramsay 9788acf475 Merge pull request #1990 from Microsoft/isDefaultLibFile
Replace endsWith() check with canonical normalized path comparison in getRenameInfo()
2015-02-17 15:17:38 -08:00
Jason Ramsay a51ce92500 switch to using host.getDefaultLibFileName(options) 2015-02-13 11:56:39 -08:00
Daniel Rosenwasser 3fea0aefbe classifyKeywordsInGenerics -> syntacticClassifierAbsent 2015-02-12 15:48:32 -08:00
Mohamed Hegazy 55aa240ade Merge branch 'master' into LSAPICleanup
Conflicts:
	src/services/services.ts
2015-02-06 17:17:23 -08:00
Mohamed Hegazy 0f3f2bcb56 add comment 2015-02-06 14:22:32 -08:00
Mohamed Hegazy 68fd9f8d40 Shim API changes to enable existing installations of VS to use the latest master builds 2015-02-06 14:20:29 -08:00
Cyrus Najmabadi 493327af34 Fix language service handling of diagnostics. 2015-02-05 02:10:36 -08:00
Cyrus Najmabadi b12be3db19 Remove dependency from the typechecker to the compiler host.
This also lets us not expose the compiler host from the Program instance.
The compiler host was only needed by the type checker to get the host newline.
The host newline was used for concatenating diagnostic message chains.  Now
we don't concatenate them up front.  Instead, we just store the message chain
in the diagnostic itself.  Then when we pass it to the host, it can then decide
what newline to use.
2015-02-04 23:20:26 -08:00
Mohamed Hegazy 40a01a81b3 Merge branch 'master' into fourslashCleanup
Conflicts:
	src/harness/fourslash.ts
	src/harness/harnessLanguageService.ts
2015-02-04 20:22:00 -08:00
Cyrus Najmabadi 95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Mohamed Hegazy c3bf36e783 Add missing definition to shims 2015-02-03 12:40:37 -08:00
Mohamed Hegazy e503f38272 Remove unused IScriptSnapshot.getLineStartPositions 2015-01-28 10:48:21 -08:00
Mohamed Hegazy 9628191a14 Allow the LS API to resolve referenced files 2015-01-28 00:08:05 -08:00
Mohamed Hegazy 66f8257fc8 Remove isOpen from souceFile and LanugageServiceHost interfaces 2015-01-16 21:23:51 -08:00
Mohamed Hegazy 3434aa0bdd Remove getDefaultLibFilename from the LS host interface as its result is never honored by the LS.
The LS operate only on a fixed list of files initialized by the host's getScriptFileNames(), if a file is not in this list, it will not be queried from the host, rather considered a missing file. Thus the result of getDefaultLibFilename()is either in the list, or will be ignored.
2015-01-14 17:20:27 -08:00
Mohamed Hegazy adee215e6c Make logger methods optional on the language service host 2015-01-14 17:05:50 -08:00
Cyrus Najmabadi 0391e02fee Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/parser.ts
	src/services/formatting/tokenSpan.ts
	src/services/text.ts
2014-12-11 18:08:57 -08:00
Mohamed Hegazy 1049b7139d Respond to code review comments 2014-12-11 17:08:11 -08:00
Mohamed Hegazy de73d50ee9 Remove compiletionSettings handeling from shims 2014-12-11 17:08:05 -08:00
Cyrus Najmabadi 63dbb78d02 Merge branch 'master' into sourceFileUpdate 2014-12-11 15:07:49 -08:00
Mohamed Hegazy 1fe19136d7 Remove unused parameter to getCompletionsAtPosition
Conflicts:
	tests/baselines/reference/APISample_node_compile.js
	tests/baselines/reference/APISample_node_compile.types
	tests/baselines/reference/APISample_standalone_compile.js
	tests/baselines/reference/APISample_standalone_compile.types
2014-12-11 13:44:38 -08:00
Cyrus Najmabadi 888b88ee43 Move textSpan and textChangeRange impls to the compiler layer. 2014-12-10 14:36:37 -08:00
Cyrus Najmabadi c2d4cd5887 Move TextSpan into the compiler layer. 2014-12-10 13:45:08 -08:00
Cyrus Najmabadi 5bd49fec1d Initial entrypoint in SourceFile for the LS to call to peform incremental parsing.
Right now the entrypoint just causes a full parse to happen.  But the LS code is
cleaned up to take advantage of it appropriately.
2014-12-10 11:45:33 -08:00
Vladimir Matveev 3469b4ce03 addressed CR feedback: rename getApiVersion to getServicesVersion 2014-12-07 21:41:15 -08:00
Vladimir Matveev a4a87f87fa removed dummy parameter from getApiVersion method 2014-12-07 15:17:20 -08:00
Vladimir Matveev 89a065185b added getApiVersion method to TypeScriptServicesFactory 2014-12-07 00:13:19 -08:00
Vladimir Matveev 80c67db75b add error\trace message that should be exposed by the host 2014-12-06 21:23:54 -08:00
Daniel Rosenwasser e4817b50b3 Merge pull request #1322 from Microsoft/exposeServices
Emit services as an external module
2014-12-02 15:34:36 -08:00
Daniel Rosenwasser 636a466552 Added comment. 2014-12-02 15:16:09 -08:00
Daniel Rosenwasser 55be530004 Get rid of emitted empty module. 2014-12-01 15:52:44 -08:00
Daniel Rosenwasser 7ba032be3d Emit services as an external module. 2014-12-01 15:32:52 -08:00
Mohamed Hegazy d3e70ecfbf Merge branch 'master' into es6typings
Conflicts:
	src/compiler/parser.ts
	src/compiler/tsc.ts
	src/harness/harness.ts
	src/harness/projectsRunner.ts
	tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.errors.txt
2014-11-27 09:59:46 -08:00
Sheetal Nandi c4a49acd8e Merge remote-tracking branch 'origin/release-1.3' 2014-11-20 20:38:25 -08:00
Sheetal Nandi 302c246934 Merge branch 'master' into signatureInfoApiRemoval 2014-11-20 16:47:14 -08:00
Yui T c417df4306 Remove unused getImplementorAtPosition 2014-11-18 17:54:39 -08:00
Vladimir Matveev ced8785bd3 eliminate usage of TypeScript module from services layer 2014-11-17 17:01:23 -08:00
Sheetal Nandi 3472119387 Remove the Obsolete api getSignatureAtPosition 2014-11-12 17:43:02 -08:00
Mohamed Hegazy 13a6487cd3 Merge branch 'master' into es6Typings
Conflicts:
	tests/baselines/reference/arrayTypeOfTypeOf.errors.txt
	tests/baselines/reference/redefineArray.errors.txt
2014-11-10 16:46:02 -08:00
Sheetal Nandi 45e4e16afc Consolidated normalizing slashes to use from typescript core in services 2014-11-10 16:09:00 -08:00
Yui T dc3c5c52f3 Merge branch 'master' into refactorRefFilesPath 2014-11-07 13:11:05 -08:00
Sheetal Nandi 28fa6029eb Fix the crash in getCompilerOptionsDiagnostics by not using file name as compiler options do not have file name
Fixes #988
2014-11-06 19:00:44 -08:00
Yui T 6c9c502218 Merge branch 'master' into refactorRefFilesPath
Conflicts:
	src/services/compiler/precompile.ts
	src/services/services.ts
	src/services/utilities.ts
2014-11-06 15:47:58 -08:00
Daniel Rosenwasser e119c575e8 Classify keywords in type args in the absence of syntactic classification. 2014-11-04 17:30:37 -08:00