Skip to content

Commit

Permalink
Merge branches 'pm-master-commits', 'snippets' and 'semantic-tokens'
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Nov 20, 2021
3 parents c864839 + 2578f9e + c36927b commit f86e995
Show file tree
Hide file tree
Showing 8 changed files with 402 additions and 93 deletions.
2 changes: 2 additions & 0 deletions cpp/ycm/ClangCompleter/FixIt.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ struct FixIt {
/// multiple diagnostics offering different fixit options. The text is
/// displayed to the user, allowing them choose which diagnostic to apply.
std::string text;

bool is_completion{ false };
};

} // namespace YouCompleteMe
Expand Down
3 changes: 2 additions & 1 deletion cpp/ycm/ycm_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ PYBIND11_MODULE( ycm_core, mod )
.def_readonly( "text", &FixIt::text )
.def_property_readonly( "kind", [](const py::handle) {
return py::none();
});
})
.def_readonly( "is_completion", &FixIt::is_completion );

py::bind_vector< std::vector< FixIt > >( mod, "FixItVector" );

Expand Down
4 changes: 4 additions & 0 deletions ycmd/completers/completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ def ComputeSignaturesInner( self, request_data ):
return {}


def ComputeSemanticTokens( self, request_data ):
return {}


def DefinedSubcommands( self ):
subcommands = sorted( self.GetSubcommandsMap().keys() )
try:
Expand Down
Loading

0 comments on commit f86e995

Please sign in to comment.