Coder Social home page Coder Social logo

Comments (4)

waruqi avatar waruqi commented on August 15, 2024

xmake-vscode/src/xmake.ts

Lines 193 to 205 in 32ab272

async onProjectFileUpdated(affectedPath: vscode.Uri) {
// trace
log.verbose("onProjectFileUpdated: " + affectedPath.fsPath);
// wait some times
await utils.sleep(2000);
// update project cache
let filePath = affectedPath.fsPath;
if (filePath.includes("xmake.lua")) {
this.loadCache();
this.updateIntelliSense();

The compile_commands.json file will only be generated when the xmake.lua file is changed. You can try to modify the xmake.lua file.

Sorry, I don’t have a windows+vscode environment. If this problem still exists, you can use vscode to open the xmake-vscode project source code, load and run it, and debug the following code.

from xmake-vscode.

waruqi avatar waruqi commented on August 15, 2024

@jprochazk have fixed it, you can try it again. I have uploaded v1.4.3 to vscode market.

from xmake-vscode.

RussellHaley avatar RussellHaley commented on August 15, 2024

The update was in the extensions window when I opened VS Code. I accepted the update and it restarted the project. It wouldn't compile right away. I changed a cpp file and compile_commands.json showed up. I couldn't get it to build until I restarted again, but I think that was my fumbling.

Xmake works as expected. Adding a new file to the project and to xmake.lua works (new entry in compile_comanes.json). The keymaps don't change from the defaults. To change the key mappings: Manage (Gear icon, bottom left) -> Keyboard Shortcuts. Type "xmake:" then change the shortcut. Is it possible to re-arrange keymaps in a VSCode extension?

I changed:
New window ctrl+shift+n -> ctrl + alt + n (re-assigned)
Build Task -> (removed)
xmake: build -> ctrl+shift+b (same as Visual Studio)
xmake: clean -> ctrl+shift+n
xmake: run -> shift + .

Thanks Ruki, @jprochazk.

from xmake-vscode.

waruqi avatar waruqi commented on August 15, 2024

Is it possible to re-arrange keymaps in a VSCode extension?

Currently you can only modify the key mapping manually. refer #50 (comment)

File > Preferences > Keyboard Shortcuts, write xmake into the search bar, find XMake: Debug, right click it and click Change Keybinding

from xmake-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.