Home
last modified time | relevance | path

Searched +full:ide +full:- +full:completion (Results 1 – 25 of 37) sorted by relevance

12

/third_party/rust/rust/src/tools/rust-analyzer/
DCargo.toml3 exclude = ["crates/proc-macro-test/imp"]
7 rust-version = "1.66"
9 license = "MIT OR Apache-2.0"
10 authors = ["rust-analyzer team"]
19 rowan.opt-level = 3
20 rustc-hash.opt-level = 3
21 smol_str.opt-level = 3
22 text-size.opt-level = 3
24 miniz_oxide.opt-level = 3
31 [patch.'crates-io']
[all …]
DCargo.lock8 source = "registry+https://github.com/rust-lang/crates.io-index"
17 source = "registry+https://github.com/rust-lang/crates.io-index"
21 name = "always-assert"
23 source = "registry+https://github.com/rust-lang/crates.io-index"
32 source = "registry+https://github.com/rust-lang/crates.io-index"
37 version = "1.0.0-beta.2"
38 source = "registry+https://github.com/rust-lang/crates.io-index"
44 source = "registry+https://github.com/rust-lang/crates.io-index"
50 source = "registry+https://github.com/rust-lang/crates.io-index"
56 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/
Dtidy.rs8 #[cfg(not(feature = "in-rust-tree"))]
11 #[cfg(not(feature = "in-rust-tree"))]
17 let out = cmd!(sh, "rustup run stable rustfmt --version").read().unwrap(); in check_code_formatting()
21 Please run `rustup component add rustfmt --toolchain stable` to install it.", in check_code_formatting()
25 let res = cmd!(sh, "rustup run stable cargo fmt -- --check").run(); in check_code_formatting()
38 .read_file(sourcegen::project_root().join("crates/rust-analyzer/src/lsp_ext.rs")) in check_lsp_extensions_docs()
45 sh.read_file(sourcegen::project_root().join("docs/dev/lsp-extensions.md")).unwrap(); in check_lsp_extensions_docs()
57 lsp_ext.rs was changed without touching lsp-extensions.md. in check_lsp_extensions_docs()
62 Please adjust docs/dev/lsp-extensions.md. in check_lsp_extensions_docs()
121 Some(s) if s.contains("dev-dependencies") => { in check_cargo_toml()
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/
DCargo.toml2 name = "ide"
9 rust-version.workspace = true
15 cov-mark = "2.0.0-pre.1"
16 crossbeam-channel = "0.5.5"
21 pulldown-cmark-to-cmark = "10.0.4"
22 pulldown-cmark = { version = "0.9.1", default-features = false }
27 nohash-hasher.workspace = true
31 ide-assists.workspace = true
32 ide-completion.workspace = true
33 ide-db.workspace = true
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/.github/workflows/
Dautopublish.yaml6 # - cron: "0 0 * * *" # midnight UTC
10 - release
15 runs-on: ubuntu-latest
17 - name: Checkout repository
20 fetch-depth: 0
22 - name: Install Rust toolchain
23 run: rustup update --no-self-update stable
25 - name: Install cargo-workspaces
26 run: cargo install cargo-workspaces
28 - name: Publish Crates
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/docs/dev/
Dguide.md1 # Guide to rust-analyzer
5 This guide describes the current state of rust-analyzer as of 2019-01-20 (git
6 tag [guide-2019-01]). Its purpose is to document various problems and
7 architectural solutions related to the problem of building IDE-first compiler
11 [guide-2019-01]: https://github.com/rust-lang/rust-analyzer/tree/guide-2019-01
15 On the highest possible level, rust-analyzer is a stateful component. A client may
27 ## IDE API
29 To see the bigger picture of how the IDE features work, let's take a look at the [`AnalysisHost`] a…
43 …`AnalysisHost`]: https://github.com/rust-lang/rust-analyzer/blob/guide-2019-01/crates/ra_ide_api/s…
44 [`Analysis`]: https://github.com/rust-lang/rust-analyzer/blob/guide-2019-01/crates/ra_ide_api/src/l…
[all …]
Darchitecture.md3 This document describes the high-level architecture of rust-analyzer.
9 See also these implementation-related blog posts:
11 * https://rust-analyzer.github.io/blog/2019/11/13/find-usages.html
12 * https://rust-analyzer.github.io/blog/2020/07/20/three-architectures-for-responsive-ide.html
13 * https://rust-analyzer.github.io/blog/2020/09/16/challeging-LR-parsing.html
14 * https://rust-analyzer.github.io/blog/2020/09/28/how-to-make-a-light-bulb.html
15 * https://rust-analyzer.github.io/blog/2020/10/24/introducing-ungrammar.html
17 …) and [another playlist](https://www.youtube.com/playlist?list=PL85XCvVPmGQho7MZkdW-wtPtuJcFpzycE).
22 ![](https://user-images.githubusercontent.com/4789492/107129398-0ab70f00-687a-11eb-9bfc-d4eb023aec0…
24 On the highest level, rust-analyzer is a thing which accepts input source code from the client and …
[all …]
DREADME.md3 rust-analyzer is an ordinary Rust project, which is organized as a Cargo workspace, builds on stabl…
12 To learn more about how rust-analyzer works, see [./architecture.md](./architecture.md).
13 It also explains the high-level layout of the source code.
16 We also publish rustdoc docs to pages: https://rust-lang.github.io/rust-analyzer/ide/.
23 rust-analyzer is a part of the [RLS-2.0 working
24 group](https://github.com/rust-lang/compiler-team/tree/6a769c13656c0a6959ebc09e7b1f7c09b86fb9c0/wor…
27 https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer
31 * [good-first-issue](https://github.com/rust-lang/rust-analyzer/labels/good%20first%20issue)
33 * [E-has-instructions](https://github.com/rust-lang/rust-analyzer/issues?q=is%3Aopen+is%3Aissue+lab…
35 * [Broken Window](https://github.com/rust-lang/rust-analyzer/issues?q=is:issue+is:open+label:%22Bro…
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-completion/
DCargo.toml2 name = "ide-completion"
9 rust-version.workspace = true
15 cov-mark = "2.0.0-pre.1"
23 base-db.workspace = true
24 ide-db.workspace = true
28 text-edit.workspace = true
29 # completions crate should depend only on the top-level `hir` package. if you need
30 # something from some `hir-xxx` subpackage, reexport the API via `hir`.
33 [dev-dependencies]
34 expect-test = "1.4.0"
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/src/
Dintegrated_benchmarks.rs1 //! Fully integrated benchmarks for rust-analyzer, which load real cargo
5 //! notice that, eg, completion is slow in some specific case, you can modify
6 //! code here exercise this specific completion, and thus have a fast
9 //! Note that "rust-analyzer: Run" action does not allow running a single test
10 //! in release mode in VS Code. There's however "rust-analyzer: Copy Run Command Line"
11 //! which you can use to paste the command in terminal and add `--release` manually.
13 use ide::{CallableSnippets, Change, CompletionConfig, FilePosition, TextSize};
31 // Load rust-analyzer itself. in integrated_highlighting_benchmark()
33 let file = "./crates/ide-db/src/apply_change.rs"; in integrated_highlighting_benchmark()
85 // Load rust-analyzer itself. in integrated_completion_benchmark()
[all …]
Dlsp_utils.rs1 //! Utilities for LSP-related boilerplate code.
15 pub(crate) fn invalid_params_error(message: String) -> LspError { in invalid_params_error()
21 ) -> bool { in notification_is()
33 pub(crate) fn fraction(done: usize, total: usize) -> f64 { in fraction()
99 /// rust-analyzer is resilient -- if it fails, this doesn't usually affect
103 /// We do however want to pester rust-analyzer developers with panics and
171 file_contents: impl FnOnce() -> String, in apply_document_changes()
173 ) -> String { in apply_document_changes()
179 .map(|idx| content_changes.len() - idx - 1) in apply_document_changes()
201 index: Arc::new(ide::LineIndex::new(&text)), in apply_document_changes()
[all …]
Dto_proto.rs1 //! Conversion of rust-analyzer specific types to lsp_types equivalents.
8 use ide::{
30 pub(crate) fn position(line_index: &LineIndex, offset: TextSize) -> lsp_types::Position { in position()
41 pub(crate) fn range(line_index: &LineIndex, range: TextRange) -> lsp_types::Range { in range()
47 pub(crate) fn symbol_kind(symbol_kind: SymbolKind) -> lsp_types::SymbolKind { in symbol_kind()
77 pub(crate) fn structure_node_kind(kind: StructureNodeKind) -> lsp_types::SymbolKind { in structure_node_kind()
86 ) -> Option<lsp_types::DocumentHighlightKind> { in document_highlight_kind()
94 pub(crate) fn diagnostic_severity(severity: Severity) -> lsp_types::DiagnosticSeverity { in diagnostic_severity()
101 pub(crate) fn documentation(documentation: Documentation) -> lsp_types::Documentation { in documentation()
109 ) -> lsp_types::CompletionItemKind { in completion_item_kind()
[all …]
Dconfig.rs14 use ide::{
42 // - Toggles (be it binary true/false or with more options in-between) should almost always suffix…
44 // - In general be wary of using the namespace of something verbatim, it prevents us from adding s…
45 // - Don't use abbreviations unless really necessary
46 // - foo_command = overrides the subcommand, foo_overrideCommand allows full overwriting, extra ar…
48 // Defines the server-side configuration of the rust-analyzer. We generate
50 // re-generate that file.
76 /// - "workspace": run build scripts for a workspace in the workspace's root directory.
77 …/// This is incompatible with `#rust-analyzer.cargo.buildScripts.invocationStrategy#` set to `on…
78 /// - "root": run build scripts in the project's root directory.
[all …]
Dmain_loop.rs1 //! The main loop of `rust-analyzer` responsible for dispatching LSP
29 pub fn main_loop(config: Config, connection: Connection) -> Result<()> { in main_loop()
38 // higher-priority thread. in main_loop()
40 // https://docs.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities in main_loop()
41 // https://docs.microsoft.com/en-us/windows/win32/procthread/priority-boosts in main_loop()
42 // https://github.com/rust-lang/rust-analyzer/issues/2835 in main_loop()
75 Report(ide::ParallelPrimeCachesProgress),
80 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
112 fn run(mut self, inbox: Receiver<lsp_server::Message>) -> Result<()> { in run()
175 fn next_event(&self, inbox: &Receiver<lsp_server::Message>) -> Option<Event> { in next_event()
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/editors/code/
DREADME.md1 # rust-analyzer
3 This extension provides support for the [Rust programming language](https://www.rust-lang.org/).
4 It is recommended over and replaces `rust-lang.rust`.
8 - [code completion] with [imports insertion]
9 - go to [definition], [implementation], [type definition]
10 - [find all references], [workspace symbol search], [symbol renaming]
11 - [types and documentation on hover]
12 - [inlay hints] for types and parameter names
13 - [semantic syntax highlighting]
14 - a lot of [assists (code actions)]
[all …]
/third_party/skia/site/docs/user/sample/
Dviewer.md2 ---
6 ---
10 * Observe rendering performance - placing the Viewer in stats mode displays average frame times.
11 * Try different rendering methods - it's possible to cycle among the three rendering methods: raste…
14 Some slides require resources stored outside the program. These resources are stored in the `<skia-
17 ----------------------------
21 bin/gn gen out/Release --args='is_debug=false'
22 ninja -C out/Release viewer
24 To load resources in the desktop Viewers, use the `--resourcePath` option:
26 <skia-path>/out/Release/viewer --resourcePath <skia-path>/resources
[all …]
/third_party/skia/m133/site/docs/user/sample/
Dviewer.md2 ---
6 ---
10 * Observe rendering performance - placing the Viewer in stats mode displays average frame times.
11 * Try different rendering methods - it's possible to cycle among the three rendering methods: raste…
14 Some slides require resources stored outside the program. These resources are stored in the `<skia-
17 ----------------------------
21 bin/gn gen out/Release --args='is_debug=false'
22 ninja -C out/Release viewer
24 To load resources in the desktop Viewers, use the `--resourcePath` option:
26 <skia-path>/out/Release/viewer --resourcePath <skia-path>/resources
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/
Dlib.rs1 //! ide crate provides "ide-centric" APIs for the rust-analyzer. That is,
7 //! However, IDE specific bits of the analysis (most notably completion) happen
147 pub fn new(range: TextRange, info: T) -> RangeInfo<T> { in new()
159 pub fn new(lru_capacity: Option<usize>) -> AnalysisHost { in new()
173 pub fn analysis(&self) -> Analysis { in analysis()
184 pub fn per_query_memory_usage(&mut self) -> Vec<(String, profile::Bytes, usize)> { in per_query_memory_usage()
190 pub fn raw_database(&self) -> &RootDatabase { in raw_database()
193 pub fn raw_database_mut(&mut self) -> &mut RootDatabase { in raw_database_mut()
203 fn default() -> AnalysisHost { in default()
226 // `AnalysisHost` for creating a fully-featured analysis.
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-db/src/imports/
Dimport_assets.rs20 /// A candidate for import, derived during various IDE activities:
21 /// * completion with imports on the fly proposals
22 /// * completion edit resolve requests
69 …/// Requires items with names that exactly match the given string, bool indicates case-sensitivity.
71 /// Requires items with names that case-insensitively contain all letters from the string,
77 pub fn exact_case_sensitive(s: String) -> NameToImport { in exact_case_sensitive()
83 pub fn text(&self) -> &str { in text()
103 ) -> Option<Self> { in for_method_call()
115 ) -> Option<Self> { in for_exact_path()
132 pub fn for_ident_pat(sema: &Semantics<'_, RootDatabase>, pat: &ast::IdentPat) -> Option<Self> { in for_ident_pat()
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/docs/user/
Dmanual.adoc4 :page-layout: post
6 :source-highlighter: rouge
10 IMPORTANT: the master copy of this document lives in the https://github.com/rust-lang/rust-analyzer…
13 At its core, rust-analyzer is a *library* for semantic analysis of Rust code as it changes over tim…
14 This manual focuses on a specific usage of the library -- running it as part of a server that imple…
15 https://microsoft.github.io/language-server-protocol/[Language Server Protocol] (LSP).
16 …itors, like VS Code, Emacs or Vim, to implement semantic features like completion or goto definiti…
22 https://github.com/rust-lang/rust-analyzer/blob/master/docs/user/manual.adoc[https://github.com/rus…
24 … which are generated from the source code. Run `cargo test` and `cargo test -p xtask` to create th…
27 If you have questions about using rust-analyzer, please ask them in the https://users.rust-lang.org…
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/
Drequest.rs11 use ide::{
49 pub(crate) fn handle_workspace_reload(state: &mut GlobalState, _: ()) -> Result<()> { in handle_workspace_reload()
58 pub(crate) fn handle_proc_macros_rebuild(state: &mut GlobalState, _: ()) -> Result<()> { in handle_proc_macros_rebuild()
70 ) -> Result<String> { in handle_analyzer_status()
115 pub(crate) fn handle_memory_usage(state: &mut GlobalState, _: ()) -> Result<String> { in handle_memory_usage()
128 pub(crate) fn handle_shuffle_crate_graph(state: &mut GlobalState, _: ()) -> Result<()> { in handle_shuffle_crate_graph()
136 ) -> Result<String> { in handle_syntax_tree()
148 ) -> Result<String> { in handle_view_hir()
158 ) -> Result<String> { in handle_view_mir()
168 ) -> Result<String> { in handle_interpret_function()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/
Dlangsvr.go7 // http://www.apache.org/licenses/LICENSE-2.0
31 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/parser"
32 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/schema"
34 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2"
35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol"
81 stream := jsonrpc2.NewHeaderStream(rSpy{"IDE", os.Stdin}, wSpy{"LS", os.Stdout})
228 func (s *server) Completion(ctx context.Context, p *lsp.CompletionParams) (*lsp.CompletionList, err… func
229 log.Println("server.Completion()")
369 lineInstOffsets, maxInstOffset, instOffset, curOffset := []int{}, 0, 0, -1
383 curOffset, instOffset = -1, 0
[all …]
/third_party/spirv-tools/utils/vscode/src/
Dlangsvr.go7 // http://www.apache.org/licenses/LICENSE-2.0
31 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/parser"
32 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/schema"
34 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2"
35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol"
81 stream := jsonrpc2.NewHeaderStream(rSpy{"IDE", os.Stdin}, wSpy{"LS", os.Stdout})
228 func (s *server) Completion(ctx context.Context, p *lsp.CompletionParams) (*lsp.CompletionList, err… func
229 log.Println("server.Completion()")
369 lineInstOffsets, maxInstOffset, instOffset, curOffset := []int{}, 0, 0, -1
383 curOffset, instOffset = -1, 0
[all …]
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/
Dlangsvr.go7 // http://www.apache.org/licenses/LICENSE-2.0
31 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/parser"
32 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/schema"
34 "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/jsonrpc2"
35 lsp "github.com/KhronosGroup/SPIRV-Tools/utils/vscode/src/lsp/protocol"
81 stream := jsonrpc2.NewHeaderStream(rSpy{"IDE", os.Stdin}, wSpy{"LS", os.Stdout})
228 func (s *server) Completion(ctx context.Context, p *lsp.CompletionParams) (*lsp.CompletionList, err… func
229 log.Println("server.Completion()")
369 lineInstOffsets, maxInstOffset, instOffset, curOffset := []int{}, 0, 0, -1
383 curOffset, instOffset = -1, 0
[all …]
/third_party/rust/rust/src/tools/miri/
DREADME.md4 [mid-level intermediate representation][mir] (MIR). It can run binaries and
6 [undefined behavior](https://doc.rust-lang.org/reference/behavior-considered-undefined.html),
9 * Out-of-bounds memory accesses and use-after-free
31 byte-level data manipulation works correctly both on little-endian and
32 big-endian systems. See
33 [cross-interpretation](#cross-interpretation-running-for-different-targets)
36 Miri has already discovered some [real-world bugs](#bugs-found-by-miri). If you
44 `MIRIFLAGS="-Zmiri-disable-isolation"` to access the real system APIs instead.
54 means a guarantee that it is UB-free when these questions get answered.
58 still run fine in Miri -- but might break (including causing UB) on different
[all …]

12