summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2019-06-04 15:04:15 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2019-06-17 08:04:14 +0000
commitc23e3196285ca5024ea6b86d974b8f358ec1b551 (patch)
tree7e03ab1f836ce5275dcb8a160141fb1d6f99c436
parent47d40aa4ad3dec54f4e2d4d3e9cc35bbdc2c1d76 (diff)
downloadqt-creator-c23e3196285ca5024ea6b86d974b8f358ec1b551.tar.gz
Doc: Describe new language client settings and features
Change-Id: I9d3e9e094b6256f202e6b7fea559d06f94c9d5be Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r--doc/images/qtcreator-language-client-options.pngbin15462 -> 10819 bytes
-rw-r--r--doc/src/editors/creator-locator.qdoc10
-rw-r--r--doc/src/editors/creator-only/creator-language-server.qdoc48
3 files changed, 45 insertions, 13 deletions
diff --git a/doc/images/qtcreator-language-client-options.png b/doc/images/qtcreator-language-client-options.png
index fef9889748..ab1a0e09d3 100644
--- a/doc/images/qtcreator-language-client-options.png
+++ b/doc/images/qtcreator-language-client-options.png
Binary files differ
diff --git a/doc/src/editors/creator-locator.qdoc b/doc/src/editors/creator-locator.qdoc
index 7d8f25dd07..e7c048f6d2 100644
--- a/doc/src/editors/creator-locator.qdoc
+++ b/doc/src/editors/creator-locator.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2018 The Qt Company Ltd.
+** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Creator documentation.
@@ -99,7 +99,7 @@
\section1 Using Locator Filters
The locator enables you to browse not only files, but any items defined by
- \b{locator filters}. By default, the locator contains filters for:
+ \b{locator filters}. The filters that are available depend on the file type:
\list
@@ -114,11 +114,11 @@
\li Locating bookmarks (\c {b}).
For more information, see \l{Using Bookmarks}.
- \li Locating class (\c {c}), enum, and function (m) definitions in your
- project or anywhere referenced from your project (\c {:})
+ \li Locating class (\c {c}), enum, and function (\c {m}) definitions in
+ your project or anywhere referenced from your project (\c {:})
\endif
- \li Locating QML methods (m)
+ \li Locating QML methods (\c {m})
\li Locating symbols in the current document (\c {.})
diff --git a/doc/src/editors/creator-only/creator-language-server.qdoc b/doc/src/editors/creator-only/creator-language-server.qdoc
index 4b75aae16e..705388802c 100644
--- a/doc/src/editors/creator-only/creator-language-server.qdoc
+++ b/doc/src/editors/creator-only/creator-language-server.qdoc
@@ -39,8 +39,9 @@
\list
\li \l{Completing Code}{Code completion}
\li Highlighting the symbol under cursor
- \li \l{Moving to Symbol Definition or Declaration}
- {Moving to the symbol definition}
+ \li Navigating in the code by using the \l{Searching with the Locator}
+ {locator} or \l{Moving to Symbol Definition or Declaration}
+ {moving to the symbol definition}
\li Inspecting code by viewing the document
\l{Viewing Defined Types and Symbols}{outline}
\li \l{Finding Symbols}{Finding references to symbols}
@@ -53,6 +54,8 @@
However, the experimental client does not support language servers that
require special handling.
+ \section1 Adding MIME Types for Language Servers
+
\QC uses the \l{https://www.iana.org/assignments/media-types/media-types.xhtml}
{MIME type} of the file to determine which language server to request
information from when you open a file for editing. Add new MIME types or
@@ -62,16 +65,12 @@
only sent to the languge server if they are known to be handled by it. For
more information about how \QC uses MIME types, see \l {Editing MIME Types}.
- The experimental language service client has been mostly tested with Python.
- If problems arise when you try some other language, please select
- \uicontrol Help > \uicontrol {Report Bug} to report them in the Qt Bug
- Tracker. The reports should include \QC console output with the environment
- variable \c {QT_LOGGING_RULES=qtc.languageclient.*=true} set.
+ \section1 Specifying Settings for Language Clients
To use a language server:
\list 1
- \li Enable the language server client by selecting \uicontrol Help >
+ \li Enable the language client by selecting \uicontrol Help >
\uicontrol {About Plugins} > \uicontrol {Other Languages} >
\uicontrol {Language Client} (or \uicontrol {Qt Creator} >
\uicontrol {About Plugins} > \uicontrol {Other Languages} >
@@ -86,15 +85,48 @@
language server.
\li Select \uicontrol Add to add language servers.
\li In the \uicontrol Name field, enter a name for the language server.
+ Select the \inlineimage replace.png
+ (\uicontrol {Variables}) button to use a variable for the server
+ name. For more information, see \l{Using Qt Creator Variables}.
\li In the \uicontrol {Language} field, select
\uicontrol {Set MIME Types} to select the MIME types of the files to
send to the language server. In the field below, you can enter file
patterns to extend the MIME types, separated by semicolons.
+ \li In the \uicontrol {Startup behavior} field, select whether the
+ language server is started when \QC starts or when a project or file
+ with a matching MIME type is opened. The
+ \uicontrol {General Messages} \l{Viewing Output}{output pane}
+ displays information about the connection to the language server.
+ \li In the \uicontrol Capabilities field, you can see the features
+ that are supported by the language server. Only some of them are
+ implemented by \QC.
\li In the \uicontrol Executable field, enter the path to the language
server executable.
\li In the \uicontrol Arguments field, enter any required command line
+ arguments. Select \uicontrol Variables to use variables as
arguments.
\endlist
To remove language servers from the list, select \uicontrol Delete.
+
+ \section1 Supported Locator Filters
+
+ The locator enables you to browse not only files, but any items defined by
+ \e {locator filters}. The language client plugin supports the following
+ locator filters:
+
+ \list
+ \li Locating symbols in the current project (\c {:})
+ \li Locating symbols in the current document (\c {.})
+ \li Locating class (\c {c}), enum, and function (\c {m})
+ definitions in your project
+ \endlist
+
+ \section1 Reporting Issues
+
+ The experimental language service client has been mostly tested with Python.
+ If problems arise when you try it or some other language, please select
+ \uicontrol Help > \uicontrol {Report Bug} to report them in the Qt Bug
+ Tracker. The reports should include \QC console output with the environment
+ variable \c {QT_LOGGING_RULES=qtc.languageclient.*=true} set.
*/